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