Skip to content

Commit

Permalink
Frontend bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jian7061 committed Dec 27, 2020
2 parents 9f199bc + 0f5c02b commit a00e030
Show file tree
Hide file tree
Showing 33 changed files with 18,112 additions and 17,934 deletions.
5 changes: 3 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
REACT_APP_API_URL=localhost
REACT_APP_API_STATUS=$SERVICE_PUBLIC
REACT_APP_API_URL=http://172.28.128.3
REACT_APP_API_STATUS="y"

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ yarn-debug.log*
yarn-error.log*

db_data
.vscode
.vscode
.env
5 changes: 3 additions & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false,
"useTabs": true,
"vueIndentScriptAndStyle": false,
"endOfLine":"auto"
"endOfLine":"auto",
"editor.formatOnSave": true
}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ COPY ./package.json /data
COPY ./src /data/src
COPY ./public /data/public
COPY ./entrypoint.sh /data
COPY ./dotenv /data/.env

## Build of node runs
RUN npm i -s dotenv
Expand All @@ -26,7 +27,7 @@ RUN npm install
## You can define the environment variable if you have some configurations.
## For example, if you have seperated database server, you can make a configuration as below.
#ENV MYSQL_SERVER "mysql.test.com"

ENV SERVICE_PUBLIC "n"
## Make sure the port number for service expose
EXPOSE 3000

Expand Down
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![exporterhub](./assets/ExporterHub_Logo_H.png)
![exporterhub](https://raw.githubusercontent.com/NexClipper/exporterhub.io/master/assets/ExporterHub_Logo_H.png)
# [Exporterhub.io](https://exporterhub.io/)
> ### A Curated List of Prometheus Exporters
> #### (powered by [nexclipper](https://nexclipper.io))
Expand All @@ -18,7 +18,7 @@
- [License](https://github.com/NexClipper/exporterhub.io#license)

## What is [ExporterHub.io](https://exporterhub.io/)
![landingpage](./assets/screen_01.png)
![landingpage](https://raw.githubusercontent.com/NexClipper/exporterhub.io/master/assets/screen_01.png)

### ExporterHub.io is a front-end(React) & API(python) application for the Prometheus Exporters community .
ExporterHub.io is not just a curated list, but also provides exporter installation guide, alert rule configuration, and dashboard configuration.
Expand Down Expand Up @@ -53,7 +53,7 @@ ExporterHub.io recommends the best-fit exporter(s) to support Prometheus monitor
### Ready: Token Requires for Github infomation crawling
* ___Create Token 1st before the App runs as below.___
* https://github.com/settings/tokens/new
![Token Generator](assets/create_a_token_first_N.png)
![Token Generator](https://raw.githubusercontent.com/NexClipper/exporterhub.io/master/assets/create_a_token_first_N.png)

### Run by default(in localhost)
* Run the docker-compose as below
Expand All @@ -70,31 +70,29 @@ services:
ports:
- "8080:3000"
environment:
# SERVICE_URL: "localhost"
SERVICE_URL: "192.168.10.11"
# SERVICE_URL: "http://localhost"
SERVICE_URL: "http://192.168.10.11"
```

### Check & Set
* And Input the generated Token to landing page as below. (http://localhost:8080)
* ![Token input](./assets/token.png)

#### Details
#### Docker image
#### Registry
- nexclipper/exporterhub: https://hub.docker.com/repository/docker/nexclipper/exporterhub
- nexclipper/exporterhub-api: https://hub.docker.com/repository/docker/nexclipper/exporterhub-api
* ![Token input](https://raw.githubusercontent.com/NexClipper/exporterhub.io/master/assets/token.png)


#### Maintenance
#### Tag rule for Build in the hub.docker.com
## Maintenance
### Tag rule for Build in the hub.docker.com
#### exporterhub Frontend build tag
* Source pattern of Tag: `/^fe([0-9.]+)$/`
* ex) `fe0.2.0` -> `nexclipper/exporterhub:release-fe0.2.0`
#### exporterhub API server build tag
* Source pattern of Tag: `/^api([0-9.]+)$/`
* ex) `api0.3` -> `nexclipper/exporterhub-api:release-api0.3`

### Docker image registry
- nexclipper/exporterhub: https://hub.docker.com/repository/docker/nexclipper/exporterhub
- nexclipper/exporterhub-api: https://hub.docker.com/repository/docker/nexclipper/exporterhub-api


## References
- [Official Exporters AND Integrations](https://prometheus.io/docs/instrumenting/exporters/)
Expand Down
Binary file added assets/exporterhub_favicon.zip
Binary file not shown.
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ services:
ports:
- "8080:3000"
environment:
SERVICE_PUBLIC: "y"
# SERVICE_URL: "192.168.10.11"
SERVICE_URL: "localhost"
SERVICE_PUBLIC: "n"
#SERVICE_URL: "http://172.28.128.3"
SERVICE_URL: "http://localhost"
depends_on:
- api
volumes:
- ./dotenv:/data/.env
maria_db:
image: mariadb:10.4.17
command: --default-authentication-plugin=mysql_native_password
Expand Down
Loading

0 comments on commit a00e030

Please sign in to comment.