mirror of
https://github.com/balena-io/open-balena.git
synced 2025-03-25 05:25:37 +00:00
buiild api from source
This commit is contained in:
parent
44aa02424c
commit
d08a287af5
@ -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
|
||||
|
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user