-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Development: Restructure docker compose setups (#5915)
- Loading branch information
Showing
99 changed files
with
2,706 additions
and
1,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
#!/bin/sh | ||
|
||
cd src/main/docker/cypress | ||
|
||
# HOST_HOSTNAME not really necessary for shutdown but otherwise docker-compose complains | ||
export HOST_HOSTNAME=$(hostname) | ||
docker compose -f cypress-E2E-tests.yml -f cypress-E2E-tests-coverage-override.yml down -v | ||
# show all running docker containers and volumes after the cleanup to detect issues | ||
echo "SHOW RUNNING Docker containers and volumes:" | ||
docker ps -a | ||
docker volume ls | ||
# first kill ALL containers on the bamboo agent | ||
echo "KILLING Docker containers, volumes and networks:" | ||
docker container stop $(docker ps -a -q) || true | ||
docker container rm $(docker ps -a -q) || true | ||
docker volume rm $(docker volume ls -q) || true | ||
|
||
# then kill remaining project volumes and networks which should be easy removable as not bound to containers anymore | ||
docker compose -f ./docker/cypress-E2E-tests.yml -f ./docker/cypress-E2E-tests-coverage-override.yml down -v | ||
|
||
|
||
# show all running docker containers and volumes after the cleanup to detect issues | ||
echo "SHOW RUNNING Docker containers and volumes:" | ||
docker ps -a | ||
docker volume ls | ||
|
||
# show docker and docker compose version | ||
echo "VERSIONS:" | ||
docker compose version || true | ||
docker-compose version || true | ||
docker version || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
#!/bin/sh | ||
|
||
cd src/main/docker/cypress | ||
|
||
# HOST_HOSTNAME not really necessary for shutdown but otherwise docker-compose complains | ||
export HOST_HOSTNAME=$(hostname) | ||
docker compose -f cypress-E2E-tests.yml down -v | ||
# show all running docker containers and volumes after the cleanup to detect issues | ||
echo "SHOW RUNNING Docker containers and volumes:" | ||
docker ps -a | ||
docker volume ls | ||
# first kill ALL containers on the bamboo agent | ||
echo "KILLING Docker containers, volumes and networks:" | ||
docker container stop $(docker ps -a -q) || true | ||
docker container rm $(docker ps -a -q) || true | ||
docker volume rm $(docker volume ls -q) || true | ||
|
||
docker compose -f ./docker/cypress-E2E-tests.yml down -v | ||
|
||
# show all running docker containers and volumes after the cleanup to detect issues | ||
echo "SHOW RUNNING Docker containers and volumes:" | ||
docker ps -a | ||
docker volume ls | ||
|
||
# show docker and docker compose version | ||
echo "VERSIONS:" | ||
docker compose version || true | ||
docker-compose version || true | ||
docker version || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# https://docs.docker.com/engine/reference/builder/#dockerignore-file | ||
classes/ | ||
generated-sources/ | ||
generated-test-sources/ | ||
h2db/ | ||
maven-archiver/ | ||
maven-status/ | ||
reports/ | ||
surefire-reports/ | ||
test-classes/ | ||
test-results/ | ||
www/ | ||
!*.jar | ||
!*.war | ||
|
||
# exclude hidden directories like .idea, .gradle, .cache, .github | ||
.* | ||
# do not exclude .git as it's necessary to insert the commit id into the build | ||
!.git | ||
# do not exclude .eslint files as they are required in the build process | ||
!.eslintignore | ||
!.eslintrc | ||
# do not exclude .npmrc as it's required in the build process for setting the correct node options | ||
!.npmrc | ||
# exclude node_modules if installed locally | ||
node_modules | ||
# exclude build binaries except a pre-built .war file | ||
build/* | ||
!build/libs/*.war | ||
|
||
# exclude the docker files and the /docker/.docker-data folders | ||
docker/ | ||
|
||
# files inside of the root directory not needed | ||
CITATION.cff | ||
CODE_OF_CONDUCT.md | ||
LICENSE | ||
README.md | ||
SECURITY.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
.idea/runConfigurations/Remote_Java_Debugging_for_Docker.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.