From a912f48b5f661356a2b3b36dca31165cd2944baa Mon Sep 17 00:00:00 2001 From: Nicolas Carlier Date: Mon, 15 Jan 2018 10:51:15 +0000 Subject: [PATCH] chore(docker): add default scripts --- Dockerfile | 3 ++- scripts/echo.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 scripts/echo.sh diff --git a/Dockerfile b/Dockerfile index 3f82fa5..c13d23b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/scripts/echo.sh b/scripts/echo.sh new file mode 100755 index 0000000..6405367 --- /dev/null +++ b/scripts/echo.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "Echo from script..." + +echo "hostname: `hostname`" + +echo "user-agent: $user_agent" +