Skip to content

Commit 5c171d1

Browse files
committed
Fixes and improvemens for osparc.local
1 parent 17303bb commit 5c171d1

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed

scripts/deployments/start_simcore_locally.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ if [[ "$devel_repo_path" = "0" ]] ; then
7272
# IF GETREPO DOESNT EXIST
7373
if [ ! -d osparc-simcore ]; then
7474
export GIT_SIMCORE_REPO_URL="https://github.com/ITISFoundation/osparc-simcore.git"
75-
git clone "$GIT_SIMCORE_REPO_URL"
75+
git clone --depth 1 "$GIT_SIMCORE_REPO_URL"
7676
fi
7777
# FI
7878
#

services/monitoring/docker-compose.yml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,9 @@ configs:
408408
prometheus_config_federation:
409409
name: ${STACK_NAME}_prometheus_config_federation_{{ "./prometheus/prometheus-federation.yml" | sha256file | substring(0,10) }}
410410
file: ./prometheus/prometheus-federation.yml
411+
prometheus_config:
412+
name: ${STACK_NAME}_prometheus_config_{{ "./prometheus/prometheus.yml" | sha256file | substring(0,10) }}
413+
file: ./prometheus/prometheus.yml
411414
prometheus_rules:
412415
name: ${STACK_NAME}_prometheus_rules_{{ "./prometheus/prometheus.rules.yml" | sha256file | substring(0,10) }}
413416
file: ./prometheus/prometheus.rules.yml

services/simcore/docker-compose.deploy.local.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ services:
99
catalog:
1010
deploy:
1111
replicas: ${SIMCORE_CATALOG_REPLICAS}
12+
sto-worker-cpu-bound:
13+
secrets:
14+
- source: storageca.crt
15+
target: /usr/local/share/ca-certificates/osparc.crt
16+
environment:
17+
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
18+
sto-worker:
19+
secrets:
20+
- source: storageca.crt
21+
target: /usr/local/share/ca-certificates/osparc.crt
22+
environment:
23+
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
1224
storage:
1325
secrets:
1426
- source: storageca.crt
@@ -113,6 +125,8 @@ services:
113125
webserver:
114126
deploy:
115127
replicas: 1
128+
healthcheck:
129+
test: ["CMD", "echo", "health"]
116130
secrets:
117131
- source: rootca.crt
118132
target: /usr/local/share/ca-certificates/osparc.crt

services/traefik/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ traefik_dynamic_config.yml:
4242

4343

4444
.PHONY: ${TEMP_COMPOSE}-local
45-
${TEMP_COMPOSE}-local: docker-compose.yml docker-compose.local.yml .env
45+
${TEMP_COMPOSE}-local: docker-compose.yml docker-compose.local.yml .env traefik_dynamic_config.yml
4646
@set -o allexport; \
4747
source .env; \
4848
set +o allexport; \

services/traefik/config/customCAInit.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# If necessary.
55
#
66
#Uncomment this to debug:
7-
#echo Remaining arguments passed to Traefik: "$@"
7+
echo Running custom entrypointsh to add self-signed CAs
8+
echo Remaining arguments passed to Traefik: "$@"
89
#
910
# Add cp statements for the certificates here:
1011
cp /secrets/storageca.crt /usr/local/share/ca-certificates

services/traefik/docker-compose.local.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ services:
6363
- source: customEntrypoint.sh
6464
target: /customEntrypoint.sh
6565
secrets:
66-
- domain.key
67-
- domain.crt
66+
- source: domain.key
67+
target: /etc/traefik_certs/osparc.local.key
68+
- source: domain.crt
69+
target: /etc/traefik_certs/osparc.local.crt
6870
- source: storageca.crt
6971
target: /secrets/storageca.crt
7072

0 commit comments

Comments
 (0)