|
@@ -69,19 +69,11 @@ docker-build-knora-sipi-image: # build and publish knora-sipi docker image local |
|
|
docker-publish-knora-sipi-image: # publish knora-sipi image to Dockerhub |
|
|
@bazel run //docker/knora-sipi:push |
|
|
|
|
|
.PHONY: docker-build-knora-salsah1-image |
|
|
docker-build-knora-salsah1-image: # build and publish knora-salsah1 docker image locally |
|
|
@bazel run //docker/knora-salsah1:image |
|
|
|
|
|
.PHONY: docker-publish-knora-salsah1-image |
|
|
docker-publish-knora-salsah1-image: # publish knora-salsah1 image to Dockerhub |
|
|
@bazel run //docker/knora-salsah1:push |
|
|
|
|
|
.PHONY: docker-build |
|
|
docker-build: docker-build-knora-api-image docker-build-knora-jena-fuseki-image docker-build-knora-sipi-image docker-build-knora-salsah1-image ## build and publish all Docker images locally |
|
|
docker-build: docker-build-knora-api-image docker-build-knora-jena-fuseki-image docker-build-knora-sipi-image ## build and publish all Docker images locally |
|
|
|
|
|
.PHONY: docker-publish |
|
|
docker-publish: docker-publish-knora-api-image docker-publish-knora-jena-fuseki-image docker-publish-knora-sipi-image docker-publish-knora-salsah1-image ## publish all Docker images to Dockerhub |
|
|
docker-publish: docker-publish-knora-api-image docker-publish-knora-jena-fuseki-image docker-publish-knora-sipi-image ## publish all Docker images to Dockerhub |
|
|
|
|
|
################################# |
|
|
## Docker-Compose targets |
|
@@ -114,7 +106,7 @@ endif |
|
|
################################# |
|
|
|
|
|
.PHONY: stack-up |
|
|
stack-up: docker-build env-file ## starts the knora-stack: fuseki, sipi, redis, api, salsah1. |
|
|
stack-up: docker-build env-file ## starts the knora-stack: fuseki, sipi, redis, api. |
|
|
docker-compose -f docker-compose.yml up -d db |
|
|
$(CURRENT_DIR)/webapi/scripts/wait-for-db.sh |
|
|
docker-compose -f docker-compose.yml up -d |
|
@@ -126,11 +118,11 @@ stack-up-fast: docker-build-knora-api-image env-file ## starts the knora-stack b |
|
|
|
|
|
.PHONY: stack-up-ci |
|
|
stack-up-ci: KNORA_DB_REPOSITORY_NAME := knora-test-unit |
|
|
stack-up-ci: docker-build env-file print-env-file ## starts the knora-stack using 'knora-test-unit' repository: fuseki, sipi, redis, api, salsah1. |
|
|
stack-up-ci: docker-build env-file print-env-file ## starts the knora-stack using 'knora-test-unit' repository: fuseki, sipi, redis, api. |
|
|
docker-compose -f docker-compose.yml up -d |
|
|
|
|
|
.PHONY: stack-restart |
|
|
stack-restart: stack-up ## re-starts the knora-stack: fuseki, sipi, redis, api, salsah1. |
|
|
stack-restart: stack-up ## re-starts the knora-stack: fuseki, sipi, redis, api. |
|
|
@docker-compose -f docker-compose.yml restart |
|
|
|
|
|
.PHONY: stack-restart-api |
|
@@ -170,10 +162,6 @@ stack-logs-api: ## prints out and follows the logs of the 'api' container runnin |
|
|
stack-logs-api-no-follow: ## prints out the logs of the 'api' container running in knora-stack. |
|
|
docker-compose -f docker-compose.yml logs api |
|
|
|
|
|
.PHONY: stack-logs-salsah1 |
|
|
stack-logs-salsah1: ## prints out and follows the logs of the 'salsah1' container running in knora-stack. |
|
|
docker-compose -f docker-compose.yml logs -f salsah1 |
|
|
|
|
|
.PHONY: stack-health |
|
|
stack-health: |
|
|
curl -f 0.0.0.0:3333/health |
|
@@ -196,19 +184,14 @@ stack-config: env-file |
|
|
|
|
|
## stack without api |
|
|
.PHONY: stack-without-api |
|
|
stack-without-api: stack-up ## starts the knora-stack without knora-api: fuseki, sipi, redis, salsah1. |
|
|
stack-without-api: stack-up ## starts the knora-stack without knora-api: fuseki, sipi, redis. |
|
|
@docker-compose -f docker-compose.yml stop api |
|
|
|
|
|
.PHONY: stack-without-api-and-sipi |
|
|
stack-without-api-and-sipi: stack-up ## starts the knora-stack without knora-api and sipi: fuseki, redis, salsah1. |
|
|
stack-without-api-and-sipi: stack-up ## starts the knora-stack without knora-api and sipi: fuseki, redis. |
|
|
@docker-compose -f docker-compose.yml stop api |
|
|
@docker-compose -f docker-compose.yml stop sipi |
|
|
|
|
|
.PHONY: stack-without-api-and-salsah1 |
|
|
stack-without-api-and-salsah1: stack-up ## starts the knora-stack without knora-api and salsah1: fuseki, redis, sipi. |
|
|
@docker-compose -f docker-compose.yml stop api |
|
|
@docker-compose -f docker-compose.yml stop salsah1 |
|
|
|
|
|
.PHONY: stack-db-only |
|
|
stack-db-only: docker-build-knora-jena-fuseki-image env-file ## starts only fuseki. |
|
|
docker-compose -f docker-compose.yml up -d db |
|
@@ -253,10 +236,6 @@ client-test-data: docker-build ## runs the dsp-api e2e tests and generates clien |
|
|
test-it: docker-build ## runs the dsp-api integration tests. |
|
|
bazel test //webapi/src/test/scala/org/knora/webapi/it/... |
|
|
|
|
|
.PHONY: test-salsah1 |
|
|
test-salsah1: docker-build ## runs salsah1 headless browser tests |
|
|
bazel test //salsah1/... |
|
|
|
|
|
.PHONY: test-repository-upgrade |
|
|
test-repository-upgrade: init-db-test-minimal ## runs DB upgrade integration test |
|
|
@rm -rf $(CURRENT_DIR)/.tmp/knora-test-data/v7.0.0/ |
|
|