Skip to content

Commit

Permalink
fix(certs): remove certs from client docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Jun 10, 2024
1 parent 70fca4a commit c64c897
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/sztp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
cache-to: type=gha,mode=max

sztp-client-push:
needs: sztp-server-push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ services:
condition: service_healthy
redirecter:
condition: service_healthy
setup-cert:
condition: service_completed_successfully
volumes:
- client-certs:/certs
- dhcp-leases-folder:/var/lib/dhclient/
- /etc/os-release:/etc/os-release
networks:
Expand Down
7 changes: 0 additions & 7 deletions sztp-agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,5 @@ RUN apk add --no-cache --no-check-certificate curl && rm -rf /var/cache/apk/*
COPY ./*.json /tmp/
# hadolint ignore=DL3022
COPY --from=builder /opi-sztp-agent /
# hadolint ignore=DL3022
COPY --from=ghcr.io/opiproject/opi-sztp-server:main /opi.pem /certs/
# hadolint ignore=DL3022
COPY --from=ghcr.io/opiproject/opi-sztp-server:main /tmp/sztpd-simulator/pki/client/end-entity/my_cert.pem /certs/
# hadolint ignore=DL3022
COPY --from=ghcr.io/opiproject/opi-sztp-server:main /tmp/sztpd-simulator/pki/client/end-entity/private_key.pem /certs/
# TODO: consider generating iDevID certificates using https://github.com/usnistgov/iDevIDCerts

CMD [ "/opi-sztp-agent" ]

0 comments on commit c64c897

Please sign in to comment.