fixes to curl commands
This commit is contained in:
@@ -6,17 +6,37 @@ services:
|
||||
context: netdisco-postgresql
|
||||
volumes:
|
||||
- "./netdisco/pgdata:/var/lib/postgresql/data"
|
||||
# netdisco-base:
|
||||
# image: netdisco-base:latest
|
||||
# build:
|
||||
# context: netdisco-base
|
||||
# netdisco-backend:
|
||||
# image: netdisco-backend:latest
|
||||
# build:
|
||||
# context: netdisco-backend
|
||||
# volumes:
|
||||
# - "./netdisco/config:/home/netdisco/environments"
|
||||
# depends_on:
|
||||
# - netdisco-base
|
||||
# links:
|
||||
# - netdisco-postgresql:db
|
||||
netdisco-base:
|
||||
image: netdisco-base:latest
|
||||
build:
|
||||
context: netdisco-base
|
||||
netdisco-backend:
|
||||
image: netdisco-backend:latest
|
||||
build:
|
||||
context: netdisco-backend
|
||||
volumes:
|
||||
- "./netdisco/config:/home/netdisco/environments"
|
||||
depends_on:
|
||||
- netdisco-base
|
||||
links:
|
||||
- netdisco-postgresql:db
|
||||
netdisco-web:
|
||||
image: netdisco-web:latest
|
||||
build:
|
||||
context: netdisco-web
|
||||
volumes:
|
||||
- "./netdisco/config:/home/netdisco/environments"
|
||||
depends_on:
|
||||
- netdisco-base
|
||||
links:
|
||||
- netdisco-postgresql:db
|
||||
netdisco-do:
|
||||
image: netdisco-do:latest
|
||||
build:
|
||||
context: netdisco-do
|
||||
volumes:
|
||||
- "./netdisco/config:/home/netdisco/environments"
|
||||
depends_on:
|
||||
- netdisco-base
|
||||
links:
|
||||
- netdisco-postgresql:db
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -9,6 +9,7 @@ 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 \
|
||||
git \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
for url in $(echo $BUILD_TRIGGERS | sed "s/,/ /g"); do
|
||||
curl -X POST -H "Content-Type: application/json" --data "{ \"build\": true, \"source_name\": \"$SOURCE_BRANCH\" }" $url
|
||||
curl -sL -X POST -H "Content-Type: application/json" --data "{ \"build\": true, \"source_name\": \"$SOURCE_BRANCH\" }" $url
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user