Skip to content

Commit

Permalink
Updated containers to allow our local-ca container to double as our a…
Browse files Browse the repository at this point in the history
…cme container as needed
  • Loading branch information
alexlovelltroy committed Apr 19, 2024
1 parent 89b215d commit 7d21354
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=sha
- name: setup Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM cgr.dev/chainguard/wolfi-base
#install step dependencies
RUN apk add --no-cache wget step step-ca bash
RUN apk add --no-cache wget step step-ca bash acme.sh

ENV CONFIGPATH="/home/step/config/ca.json"
ENV PWDPATH="/home/step/secrets/password"
ENV STEPPATH="/home/step"

RUN mkdir /root-ca
RUN mkdir /root/.acme.sh

VOLUME ["/home/step", "/root-ca"]

Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function step_ca_init () {
# First we put the root ca cert and intermediate cert in the easiest place to find it in the volume
cp /home/step/certs/root_ca.crt /root-ca/root_ca.crt
cp /home/step/certs/intermediate_ca.crt /root-ca/intermediate_ca.crt
chmod 444 /root-ca/*.crt
# Then we set up the files in the right place for the step client to find them
mkdir -p /root-ca/step/certs
cp /home/step/certs/root_ca.crt /root-ca/step/certs/root_ca.crt
Expand Down

0 comments on commit 7d21354

Please sign in to comment.