This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from hacker-h/refactoring
Refactoring
- Loading branch information
Showing
4 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM python:2-alpine | ||
FROM python:3-alpine | ||
MAINTAINER Pedro César de Azevedo <[email protected]> | ||
|
||
RUN mkdir -p /app/speedtest/ | ||
RUN apk add --update curl | ||
RUN curl https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py -o /app/speedtest/speedtest-cli | ||
RUN chmod +x /app/speedtest/speedtest-cli | ||
RUN mkdir -p /app/speedtest/ &&\ | ||
apk add --no-cache --update curl &&\ | ||
curl https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py -o /app/speedtest/speedtest-cli &&\ | ||
chmod +x /app/speedtest/speedtest-cli | ||
|
||
ADD scripts/ /app/speedtest/ | ||
COPY scripts/ /app/speedtest/ | ||
|
||
CMD sh -c /app/speedtest/init_test_connection.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM grafana/grafana | ||
MAINTAINER Pedro César de Azevedo <[email protected]> | ||
|
||
ADD conf/grafana.db /var/lib/grafana/grafana.db | ||
ADD conf/home.json /usr/share/grafana/public/dashboards/home.json | ||
COPY conf/grafana.db /var/lib/grafana/grafana.db | ||
COPY conf/home.json /usr/share/grafana/public/dashboards/home.json | ||
|
||
ENV GF_SERVER_ROOT_URL http://localhost | ||
ENV GF_SECURITY_ADMIN_PASSWORD admin | ||
|