From d08a287af5fce05848b5516159a32d5b3158aac6 Mon Sep 17 00:00:00 2001 From: Akis Kesoglou Date: Thu, 18 Oct 2018 14:53:34 +0200 Subject: [PATCH] buiild api from source --- compose/services.yml | 6 +++++- scripts/gen-root-cert | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/compose/services.yml b/compose/services.yml index 2ab9208..8cc43c6 100644 --- a/compose/services.yml +++ b/compose/services.yml @@ -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 diff --git a/scripts/gen-root-cert b/scripts/gen-root-cert index 0377d72..4e75c67 100755 --- a/scripts/gen-root-cert +++ b/scripts/gen-root-cert @@ -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}"