This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
getssl
mirror of
https://github.com/srvrco/getssl
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
51
Wiki
Activity
Browse Source
docker-entrypoint scripting
pull/340/head
Dan Schaper
8 years ago
parent
5b13c91f80
commit
4b196d21a4
No known key found for this signature in database
GPG Key ID:
FFF1A1AD0113C344
2 changed files
with
15 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-2
Dockerfile
+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
"
$@
"
Write
Preview
Loading…
Cancel
Save