Browse Source

docker-entrypoint scripting

pull/340/head
Dan Schaper 8 years ago
parent
commit
4b196d21a4
No known key found for this signature in database GPG Key ID: FFF1A1AD0113C344
2 changed files with 15 additions and 2 deletions
  1. +3
    -2
      Dockerfile
  2. +12
    -0
      docker-entrypoint.sh

+ 3
- 2
Dockerfile View File

@ -8,6 +8,7 @@ RUN apk --no-cache --virtual .run-depends add \
COPY getssl /usr/local/bin/getssl
WORKDIR /
ENTRYPOINT [ "/usr/local/bin/getssl", "--nocheck" ]
CMD [ "--help" ]
COPY ./docker-entrypoint.sh /
ENTRYPOINT [ "/docker-entrypoint.sh" ]

+ 12
- 0
docker-entrypoint.sh View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
WORKING_DIR="/getssl"
cd $WORKING_DIR
if [ "$1" == "" ] && [ ! -f $WORKING_DIR/getssl.cfg ]; then
echo "Type <getssl -c DOMAIN> to initialize configuration files."
fi
getssl --nocheck -w $WORKING_DIR "$@"

Loading…
Cancel
Save