mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 08:33:06 +00:00
Merge pull request #1858 from fabric8io/docker-consoles-dir
Docker: Move console dirs to /usr/share/prometheus
This commit is contained in:
commit
603b3e50b9
10
Dockerfile
10
Dockerfile
@ -4,8 +4,10 @@ MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
|
||||
COPY prometheus /bin/prometheus
|
||||
COPY promtool /bin/promtool
|
||||
COPY documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml
|
||||
COPY console_libraries/ /etc/prometheus/console_libraries/
|
||||
COPY consoles/ /etc/prometheus/consoles/
|
||||
COPY console_libraries/ /usr/share/prometheus/console_libraries/
|
||||
COPY consoles/ /usr/share/prometheus/consoles/
|
||||
|
||||
RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/
|
||||
|
||||
EXPOSE 9090
|
||||
VOLUME [ "/prometheus" ]
|
||||
@ -13,5 +15,5 @@ WORKDIR /prometheus
|
||||
ENTRYPOINT [ "/bin/prometheus" ]
|
||||
CMD [ "-config.file=/etc/prometheus/prometheus.yml", \
|
||||
"-storage.local.path=/prometheus", \
|
||||
"-web.console.libraries=/etc/prometheus/console_libraries", \
|
||||
"-web.console.templates=/etc/prometheus/consoles" ]
|
||||
"-web.console.libraries=/usr/share/prometheus/console_libraries", \
|
||||
"-web.console.templates=/usr/share/prometheus/consoles" ]
|
||||
|
Loading…
Reference in New Issue
Block a user