feat: create ssh key for automation tasks

includes refactoring for build process
This commit is contained in:
Stephan Lüscher 2023-05-04 15:02:05 +00:00
parent fe6e5d59f3
commit 717998b801
No known key found for this signature in database
GPG key ID: 445779060FF3D3CF
5 changed files with 50 additions and 17 deletions

View file

@ -1,10 +1,13 @@
# Source Image
FROM docker.io/library/golang:1.20
# Copy script
WORKDIR /certs
COPY certificates.sh .
RUN chmod +x ./certificates.sh
# Install minica
RUN go install github.com/jsha/minica@latest
# Generate wildcard certificate
WORKDIR /certs
RUN minica --domains "*.ublue.local,ublue.local,localhost" \
--ip-addresses 127.0.0.1
# Container start command
CMD ["/certs/certificates.sh"]