move common parts to netdisco-base
This commit is contained in:
@@ -5,9 +5,6 @@ FROM docker.io/netdisco/netdisco:${TAG}-base
|
||||
LABEL org.netdisco.maintainer="The Netdisco Project"
|
||||
LABEL org.netdisco.version=${TAG}
|
||||
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME/netdisco-mibs
|
||||
RUN curl -s https://api.github.com/repos/netdisco/netdisco-mibs/tags | \
|
||||
jq '.[]|.tarball_url|select(test("tarball/\\d+\\.\\d+$"))' | \
|
||||
|
||||
@@ -39,4 +39,7 @@ RUN mkdir $NETDISCO_HOME/bin && \
|
||||
ENV PATH $NETDISCO_HOME/bin:$PATH
|
||||
ENV SHELL "/bin/bash"
|
||||
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME
|
||||
CMD ["bash"]
|
||||
|
||||
@@ -5,9 +5,5 @@ FROM docker.io/netdisco/netdisco:${TAG}-base
|
||||
LABEL org.netdisco.maintainer="The Netdisco Project"
|
||||
LABEL org.netdisco.version=${TAG}
|
||||
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME
|
||||
ENTRYPOINT ["/home/netdisco/bin/netdisco-do"]
|
||||
CMD [""]
|
||||
|
||||
@@ -6,9 +6,5 @@ LABEL org.netdisco.maintainer="The Netdisco Project"
|
||||
LABEL org.netdisco.version=${TAG}
|
||||
|
||||
EXPOSE 5000
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME
|
||||
ENTRYPOINT ["/home/netdisco/bin/netdisco-web"]
|
||||
CMD ["foreground"]
|
||||
|
||||
Reference in New Issue
Block a user