Skip to content

Commit c187cd4

Browse files
authored
Maintenance/minio endpoint and qooxdoo compiler logs (#1442)
* auto follow qx compiler logs in devel mode * set minio to use the docker0 interface
1 parent bb65bab commit c187cd4

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.env-devel

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ DIRECTOR_REGISTRY_CACHING_TTL=900
3232

3333
S3_ACCESS_KEY=12345678
3434
S3_BUCKET_NAME=simcore
35-
S3_ENDPOINT=minio:9000
35+
# 172.17.0.1 is the docker0 interface, which redirect from inside a container onto the host network interface.
36+
S3_ENDPOINT=172.17.0.1:9001
3637
S3_SECRET_KEY=12345678
3738
S3_SECURE=0
3839

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,11 @@ endif
190190

191191
up-devel: .stack-simcore-development.yml .init-swarm $(CLIENT_WEB_OUTPUT) ## Deploys local development stack, qx-compile+watch and ops stack (pass 'make ops_disabled=1 up-...' to disable)
192192
# Start compile+watch front-end container [front-end]
193-
$(MAKE) -C services/web/client compile-dev flags=--watch
193+
$(MAKE_C) services/web/client compile-dev flags=--watch
194194
# Deploy stack $(SWARM_STACK_NAME) [back-end]
195195
@docker stack deploy -c $< $(SWARM_STACK_NAME)
196196
$(MAKE) .deploy-ops
197+
$(MAKE_C) services/web/client follow-dev-logs
197198

198199

199200
up-prod: .stack-simcore-production.yml .init-swarm ## Deploys local production stack and ops stack (pass 'make ops_disabled=1 up-...' to disable)

services/web/client/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ docker_compose := docker-compose -f tools/docker-compose.yml
1111
docker_file := tools/qooxdoo-kit/builder/Dockerfile
1212
docker_image := client/$(subst /Dockerfile,,$(docker_file)):latest
1313

14+
container_name := qooxdoo-compiler
1415

1516
# qx compile --------------------------
1617

@@ -25,13 +26,18 @@ source-output:
2526
.PHONY: compile-dev
2627
compile-dev: qx_packages source-output ## qx compiles host' 'source' -> host's 'source-output'. Use 'make compile-dev flags=--watch' for continuous compilation.
2728
# qx compile 'source' $(flags) --> 'source-output' [itisfoundation/qooxdoo-kit:${QOOXDOO_KIT_TAG}]
28-
$(docker_compose) run --detach --rm qooxdoo-kit \
29+
$(docker_compose) run --detach --rm --name=$(container_name) qooxdoo-kit \
2930
qx compile $(flags) \
3031
--set-env osparc.vcsRef="${VCS_REF}" \
3132
--set-env osparc.vcsRefClient="${VCS_REF_CLIENT}" \
3233
--set-env osparc.vcsStatusClient="${VCS_STATUS_CLIENT}" \
3334
--set-env osparc.vcsOriginUrl="${VCS_URL}"
3435

36+
.PHONY: follow-dev-logs
37+
follow-dev-logs: ## follow the logs of the qx compiler
38+
@docker logs --follow $(container_name)
39+
40+
3541
.PHONY: compile touch upgrade
3642
compile compile-x: ## qx compiles host' 'source' -> image's 'build-output'
3743
# qx compile 'source' within $(docker_image) image [itisfoundation/qooxdoo-kit:${QOOXDOO_KIT_TAG}]

0 commit comments

Comments
 (0)