Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.goat
config
doc
docker
fixtures
services
.dockerignore
.gitignore
Dockerfile
README.md

README.md

CICD (Continuous Integration / Continuous Deployment)

It is firmom CICD configuration

SSH keys

You should prepare a ssh key on your deployment remote machine

mkdir -p /dockerdata/firmom/cicd/ssh
ssh-keygen -b 4096 -t rsa -f /dockerdata/firmom/cicd/ssh/id_rsa -q -N ""
cat "/dockerdata/firmom/cicd/ssh/id_rsa.pub" >> ~/.ssh/authorized_keys

install-ssh-keys-host.sh Next add result to your REMOTE_DEPLOYMENT_MACHINE_SSH environment variable via docker-compose.yaml

Let's encrypt

Domain verification code (letsencrypt with docker):

DOMAIN=YOUR_DOMAIN_TO_CERTIFICATE
CERT_EMAIL=YOUR_PUBLIC_EMAIL
SERVER="https://acme-v02.api.letsencrypt.org/directory"
docker run -it --rm --name certbot \
  -v "/etc/letsencrypt:/etc/letsencrypt" \
  -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
  -v "/var/logs/letsencrypt:/var/logs/letsencrypt" \
  certbot/certbot \
  certonly --manual --preferred-challenges dns-01 --agree-tos --cert-name "$DOMAIN" -d "$DOMAIN" -d "*.$DOMAIN" --email "$CERT_EMAIL" --server "$SERVER"

You can verification DNS record deployment by:

nslookup -q=txt _acme-challenge.gamein.pl

Presentations

You can’t perform that action at this time.