chore(docker): add default scripts

This commit is contained in:
Nicolas Carlier 2018-01-15 10:51:15 +00:00
parent faf5da7a33
commit a912f48b5f
2 changed files with 10 additions and 1 deletions

View File

@ -37,8 +37,9 @@ RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
# Install deps
RUN apk add --no-cache git openssh-client jq
# Install binary
# Install binary and default scripts
COPY --from=builder /go/src/$REPOSITORY/$ARTIFACT/release/$ARTIFACT-linux-amd64 /usr/local/bin/$ARTIFACT
COPY --from=builder /go/src/$REPOSITORY/$ARTIFACT/scripts /opt/scripts
# Define command
CMD webhookd

8
scripts/echo.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
echo "Echo from script..."
echo "hostname: `hostname`"
echo "user-agent: $user_agent"