-
-
Notifications
You must be signed in to change notification settings - Fork 446
chore: added docker support for osx #6696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,8 +14,7 @@ VOLUME /dashboards | |
| ENV GF_SECURITY_ADMIN_USER=admin | ||
| ENV GF_SECURITY_ADMIN_PASSWORD=admin | ||
|
|
||
| # Modified datasource to work with a network_mode: host | ||
| ENV PROMETHEUS_URL=http://prometheus:9090 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to override those here? Might be better to just do it in the compose file where
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unclear to me why it was done like that in the first place. Maybe there are other ways those Dockerfile are used?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, we publish those to docker hub, users might rely on host being set to |
||
| ENV PROMETHEUS_URL=http://host.docker.internal:9090 | ||
| ENV DASHBOARDS_DIR=/dashboards | ||
|
|
||
| CMD [ \ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,12 +4,8 @@ COPY prometheus.yml /etc/prometheus/prometheus.yml | |
| COPY --chown=nobody:nobody entrypoint.sh /etc/prometheus/entrypoint.sh | ||
| RUN chmod +x /etc/prometheus/entrypoint.sh | ||
|
|
||
| # Modified datasource to work with a network_mode: host | ||
| # Docker DNS: "beacon_node:8008" | ||
| # net host: "localhost:8008" | ||
| # MacOSX: "host.docker.internal:8008" | ||
| ENV BEACON_URL='beacon_node:8008' | ||
| ENV VC_URL='validator:5064' | ||
| ENV BEACON_URL='host.docker.internal:8008' | ||
|
||
| ENV VC_URL='host.docker.internal:5064' | ||
| VOLUME /prometheus | ||
|
|
||
| ENTRYPOINT ["/etc/prometheus/entrypoint.sh"] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.