Sets up nginx on image for config app with ssl
Move copying entry scripts to quay-entrypoint
This commit is contained in:
parent
2b19e1d93f
commit
69c155ef4f
11 changed files with 139 additions and 2 deletions
12
config_app/init/certs_create.sh
Executable file
12
config_app/init/certs_create.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#! /bin/bash
|
||||
set -e
|
||||
QUAYPATH=${QUAYPATH:-"."}
|
||||
QUAYCONF=${QUAYCONF:-"$QUAYPATH/conf"}
|
||||
cd ${QUAYDIR:-"/"}
|
||||
|
||||
echo 'Creating self-signed certs for quay-config app'
|
||||
|
||||
# Create certs to secure connections while uploading config for secrets
|
||||
echo '{"CN":"CA","key":{"algo":"rsa","size":2048}}' | cfssl gencert -initca - | cfssljson -bare quay-config
|
||||
cp quay-config-key.pem $QUAYDIR/config_app/quay-config.key
|
||||
cp quay-config.pem $QUAYDIR/config_app/quay-config.cert
|
Reference in a new issue