create docker image for acme-nginx

This commit is contained in:
2020-05-25 23:51:55 -04:00
parent db9b35211c
commit 9e1743e1b5
42 changed files with 588 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
echo -e "\033[36mTODO\033[39m: Implement this command"
CONFIG='run/docker-compose.yml'
docker-compose -f ${CONFIG} run --rm app \
-k /path/to/account.key \
--domain-private-key /path/to/domain.key \
--virtual-host /etc/nginx/sites-enabled/customvhost \
-o /path/to/signed_certificate.pem \
-d example.com -d www.example.com

View File

@@ -0,0 +1,3 @@
ARGS - The arguments you wish to provide to this command
TODO: Fill out the help information for this command.

View File

@@ -0,0 +1 @@
ARGS...

View File

@@ -0,0 +1,13 @@
---
version: '3.4'
services:
app:
image: dkregistry.xai-corp.net:5000/xaicorp/acme-nginx:latest
volumes:
- /etc/nginx:/etc/nginx
pid: host
command:
- -h

View File

@@ -0,0 +1,17 @@
pipeline {
agent { label 'docker' }
triggers {
cron('@monthly')
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '2'))
}
stages {
stage('Update Certificates') {
steps {
sh 'echo TODO: run docker'
}
}
}
}