create docker image for acme-nginx
This commit is contained in:
0
dockerfiles/tasks/acme-nginx/cli/.bash_cli
Normal file
0
dockerfiles/tasks/acme-nginx/cli/.bash_cli
Normal file
11
dockerfiles/tasks/acme-nginx/cli/update-scripts
Executable file
11
dockerfiles/tasks/acme-nginx/cli/update-scripts
Executable 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
|
||||
3
dockerfiles/tasks/acme-nginx/cli/update-scripts.help
Normal file
3
dockerfiles/tasks/acme-nginx/cli/update-scripts.help
Normal file
@@ -0,0 +1,3 @@
|
||||
ARGS - The arguments you wish to provide to this command
|
||||
|
||||
TODO: Fill out the help information for this command.
|
||||
1
dockerfiles/tasks/acme-nginx/cli/update-scripts.usage
Normal file
1
dockerfiles/tasks/acme-nginx/cli/update-scripts.usage
Normal file
@@ -0,0 +1 @@
|
||||
ARGS...
|
||||
13
dockerfiles/tasks/acme-nginx/run/docker-compose.yml
Normal file
13
dockerfiles/tasks/acme-nginx/run/docker-compose.yml
Normal 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
|
||||
|
||||
17
dockerfiles/tasks/acme-nginx/run/update_certs.Jenkinsfile
Normal file
17
dockerfiles/tasks/acme-nginx/run/update_certs.Jenkinsfile
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user