buiild api from source

This commit is contained in:
Akis Kesoglou 2018-10-18 14:53:34 +02:00
parent 44aa02424c
commit d08a287af5
2 changed files with 6 additions and 2 deletions

View File

@ -11,7 +11,11 @@ services:
extends:
file: ./common.yml
service: component
image: resin/resin-api:${OPENBALENA_API_VERSION_TAG:-master}
# image: resin/open-balena-api:${OPENBALENA_API_VERSION_TAG:-master}
build: ../src/api
volumes: [
'../src/api:/usr/src/app'
]
depends_on:
- db
- s3

View File

@ -23,7 +23,7 @@ OUT="$(realpath "${2:-.}")"
source "${DIR}/ssl-common.sh"
# generate default CSR and sign (root + wildcard)
"$easyrsa_bin" --pki-dir="${ROOT_PKI}" --days="${CRT_EXPIRY_DAYS}" --subject-alt-name="DNS:${CN}" build-server-full "*.${CN}" nopass 2>/dev/null
"$easyrsa_bin" --pki-dir="${ROOT_PKI}" --days="${CRT_EXPIRY_DAYS}" --subject-alt-name="DNS:api.${CN}" build-server-full "*.${CN}" nopass 2>/dev/null
ROOT_CRT="${ROOT_PKI}"'/issued/*.'"${CN}"'.crt'
ROOT_KEY="${ROOT_PKI}"'/private/*.'"${CN}"'.key'
echo "ROOT_CRT=${ROOT_CRT//$OUT/\$OUT}"