fixes to curl commands

This commit is contained in:
Oliver Gorwits
2018-01-13 09:37:12 +00:00
parent 3918913b18
commit 97cdaf3ea7
4 changed files with 38 additions and 17 deletions

View File

@@ -6,9 +6,9 @@ LABEL org.netdisco.maintainer="The Netdisco Project"
LABEL org.netdisco.version=${TAG}
WORKDIR $NETDISCO_HOME/netdisco-mibs
RUN curl -s https://api.github.com/repos/netdisco/netdisco-mibs/tags | \
RUN curl -sL 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 -
sort -rg | head -n1 | xargs -n1 curl -sL | tar --strip-components=1 -zxf -
WORKDIR $NETDISCO_HOME
ENTRYPOINT ["/home/netdisco/bin/netdisco-backend"]