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"]
|
||||
|
||||
Reference in New Issue
Block a user