reference docker images at docker.io
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# vim: ft=Dockerfile
|
||||
FROM netdisco-base:latest
|
||||
ARG TAG=master
|
||||
FROM docker.io/netdisco:${TAG}-base
|
||||
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME/netdisco-mibs
|
||||
@@ -8,6 +11,5 @@ RUN curl -s https://api.github.com/repos/netdisco/netdisco-mibs/tags | \
|
||||
sort -rg | head -n1 | xargs -n1 curl -L | tar --strip-components=1 -zxf -
|
||||
|
||||
WORKDIR $NETDISCO_HOME
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
ENTRYPOINT ["/home/netdisco/bin/netdisco-backend"]
|
||||
CMD ["foreground"]
|
||||
|
||||
2
docker/netdisco-backend/hooks/build
Executable file
2
docker/netdisco-backend/hooks/build
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker build --build-arg TAG=$SOURCE_BRANCH -t $IMAGE_NAME .
|
||||
@@ -1,8 +1,10 @@
|
||||
# vim: ft=Dockerfile
|
||||
FROM netdisco-base:latest
|
||||
ARG TAG=master
|
||||
FROM docker.io/netdisco:${TAG}-base
|
||||
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
ENTRYPOINT ["/home/netdisco/bin/netdisco-do"]
|
||||
CMD [""]
|
||||
|
||||
2
docker/netdisco-do/hooks/build
Executable file
2
docker/netdisco-do/hooks/build
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker build --build-arg TAG=$SOURCE_BRANCH -t $IMAGE_NAME .
|
||||
@@ -6,6 +6,11 @@ RUN apk add --no-cache \
|
||||
jq \
|
||||
tar
|
||||
|
||||
COPY netdisco-db-entrypoint.sh /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/netdisco-db-entrypoint.sh
|
||||
|
||||
RUN PGDATA=/var/lib/postgresql/netdisco-pgdata /usr/local/bin/docker-entrypoint.sh postgres --version
|
||||
|
||||
WORKDIR /var/lib/postgresql/netdisco-sql
|
||||
RUN curl -s https://api.github.com/repos/netdisco/netdisco/tags | \
|
||||
jq '.[]|.name|select(test("^\\d+\\.\\d+$"))|"https://api.github.com/repos/netdisco/netdisco/tarball/"+.' | \
|
||||
@@ -14,12 +19,8 @@ RUN curl -s https://api.github.com/repos/netdisco/netdisco/tags | \
|
||||
curl -sLO "https://raw.githubusercontent.com/netdisco/upstream-sources/master/ieee/oui.sql" && \
|
||||
curl -sLO "https://raw.githubusercontent.com/netdisco/netdisco/master/lib/App/Netdisco/DB.pm"
|
||||
|
||||
RUN PGDATA=/var/lib/postgresql/netdisco-pgdata /usr/local/bin/docker-entrypoint.sh postgres --version
|
||||
|
||||
COPY netdisco-db-entrypoint.sh /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/netdisco-db-entrypoint.sh
|
||||
VOLUME ["/var/lib/postgresql/data"]
|
||||
|
||||
WORKDIR /
|
||||
VOLUME ["/var/lib/postgresql/data"]
|
||||
ENTRYPOINT ["/usr/local/bin/netdisco-db-entrypoint.sh"]
|
||||
CMD ["postgres"]
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# vim: ft=Dockerfile
|
||||
FROM netdisco-base:latest
|
||||
ARG TAG=master
|
||||
FROM docker.io/netdisco:${TAG}-base
|
||||
|
||||
EXPOSE 5000
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
|
||||
USER netdisco:netdisco
|
||||
WORKDIR $NETDISCO_HOME
|
||||
VOLUME ["/home/netdisco/environments", "/home/netdisco/nd-site-local"]
|
||||
ENTRYPOINT ["/home/netdisco/bin/netdisco-web"]
|
||||
CMD ["foreground"]
|
||||
|
||||
2
docker/netdisco-web/hooks/build
Executable file
2
docker/netdisco-web/hooks/build
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker build --build-arg TAG=$SOURCE_BRANCH -t $IMAGE_NAME .
|
||||
Reference in New Issue
Block a user