Skip to content

Commit

Permalink
build: Add new backup target for local environment
Browse files Browse the repository at this point in the history
This commit adds a new target to the Makefile,
which runs the TeamForCapella backup, but doesn't push it to a Git repository.
  • Loading branch information
MoritzWeber0 committed Sep 20, 2023
1 parent aa46088 commit 9ef90fb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,23 @@ run-t4c/client/backup: t4c/client/base
-e CONNECTION_TYPE="$(CONNECTION_TYPE)" \
$(DOCKER_PREFIX)t4c/client/base:$$(echo "$(DOCKER_TAG_SCHEMA)" | envsubst) backup

run-t4c/client/backup-local: t4c/client/base
docker run $(DOCKER_RUN_FLAGS) --rm -it \
-v $$(pwd)/volumes/backup:/tmp/model \
-e FILE_HANDLER=local \
-e T4C_REPO_HOST="$(T4C_SERVER_HOST)" \
-e T4C_REPO_PORT="$(T4C_SERVER_PORT)" \
-e T4C_REPO_NAME="$(T4C_IMPORTER_REPO)" \
-e T4C_PROJECT_NAME="$(T4C_IMPORTER_PROJECT)" \
-e T4C_USERNAME="$(T4C_USERNAME)" \
-e T4C_PASSWORD="$(T4C_PASSWORD)" \
-e HTTP_LOGIN="$(HTTP_LOGIN)" \
-e HTTP_PASSWORD="$(HTTP_PASSWORD)" \
-e HTTP_PORT="$(HTTP_PORT)" \
-e LOG_LEVEL="$(LOG_LEVEL)" \
-e CONNECTION_TYPE="$(CONNECTION_TYPE)" \
$(DOCKER_PREFIX)t4c/client/base:$$(echo "$(DOCKER_TAG_SCHEMA)" | envsubst) backup

run-t4c/client/exporter: t4c/client/base
docker run $(DOCKER_RUN_FLAGS) \
-e GIT_REPO_URL="$(GIT_REPO_URL)" \
Expand Down

0 comments on commit 9ef90fb

Please sign in to comment.