all dockerfiles
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
# vim: ft=Dockerfile
|
||||
FROM netdisco-base:latest
|
||||
|
||||
RUN mkdir $NETDISCO_HOME/netdisco-mibs && cd $NETDISCO_HOME/netdisco-mibs && \
|
||||
curl -s https://api.github.com/repos/netdisco/netdisco-mibs/tags | \
|
||||
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+$"))' | \
|
||||
sort -rg | head -n1 | xargs -n1 curl -L | tar --strip-components=1 -zxf -
|
||||
|
||||
CMD bash
|
||||
WORKDIR $NETDISCO_HOME
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
ENTRYPOINT ["/home/netdisco/bin/netdisco-backend"]
|
||||
CMD ["foreground"]
|
||||
|
||||
@@ -5,10 +5,8 @@ RUN bash -c 'mkdir -p /usr/share/man/man{1..8}' && \
|
||||
apt-get -yq update && \
|
||||
apt-get install -yq --no-install-recommends \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
cpanminus \
|
||||
curl \
|
||||
daemontools-run \
|
||||
git \
|
||||
jq \
|
||||
libdbd-pg-perl \
|
||||
@@ -23,7 +21,9 @@ RUN bash -c 'mkdir -p /usr/share/man/man{1..8}' && \
|
||||
ENV NETDISCO_HOME "/home/netdisco"
|
||||
RUN groupadd -r netdisco -g 901 && \
|
||||
useradd -u 901 -r -p x -g netdisco -m -d $NETDISCO_HOME -s /bin/bash -c "netdisco user" netdisco
|
||||
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME
|
||||
|
||||
RUN curl -s https://api.github.com/repos/netdisco/netdisco/tags | \
|
||||
jq '.[]|.name|select(test("^\\d+\\.\\d+$"))|"https://github.com/netdisco/netdisco.git@"+.' | \
|
||||
@@ -35,5 +35,4 @@ RUN mkdir $NETDISCO_HOME/bin && \
|
||||
ENV PATH $NETDISCO_HOME/bin:$PATH
|
||||
ENV SHELL "/bin/bash"
|
||||
|
||||
WORKDIR $NETDISCO_HOME
|
||||
CMD bash
|
||||
CMD ["bash"]
|
||||
|
||||
8
docker/netdisco-do/Dockerfile
Normal file
8
docker/netdisco-do/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
# vim: ft=Dockerfile
|
||||
FROM netdisco-base:latest
|
||||
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
ENTRYPOINT ["/home/netdisco/bin/netdisco-do"]
|
||||
CMD [""]
|
||||
@@ -20,6 +20,6 @@ COPY netdisco-db-entrypoint.sh /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/netdisco-db-entrypoint.sh
|
||||
|
||||
WORKDIR /
|
||||
VOLUME /var/lib/postgresql/data
|
||||
VOLUME ["/var/lib/postgresql/data"]
|
||||
ENTRYPOINT ["/usr/local/bin/netdisco-db-entrypoint.sh"]
|
||||
CMD ["postgres"]
|
||||
|
||||
8
docker/netdisco-web/Dockerfile
Normal file
8
docker/netdisco-web/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
# vim: ft=Dockerfile
|
||||
FROM netdisco-base:latest
|
||||
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
ENTRYPOINT ["/home/netdisco/bin/netdisco-web"]
|
||||
CMD ["foreground"]
|
||||
Reference in New Issue
Block a user