Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ STOPSIGNAL SIGTERM
HEALTHCHECK CMD step ca health 2>/dev/null | grep "^ok" >/dev/null

COPY entrypoint.sh /entrypoint.sh
COPY step-ca.sh /step-ca.sh

EXPOSE 9000/tcp

ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
CMD ["/usr/bin/step-ca","--password-file","$PWDPATH","$CONFIGPATH"]
CMD ["/step-ca.sh"]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ if [ ! -f "${STEPPATH}/config/ca.json" ]; then
init_if_possible
fi

exec "${@}"
exec "${@}"
7 changes: 7 additions & 0 deletions step-ca.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
PWDPATH="${PWDPATH:-/home/step/secrets/password}"
CONFIGPATH="${CONFIGPATH:-/home/step/config/ca.json}"

export STEPPATH="${STEPPATH:-/home/step}"

/usr/bin/step-ca --password-file "$PWDPATH" "$CONFIGPATH"