-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Docker Compose V2 * Revert wait * SC-8299: added test images * Fix docker-compose version check bug. (#265) With newer Version docker the "docker-compose version --short" command gives out a version number string with "v" at the beginning, so the later comparison failed with this misleading error message: `Docker Compose version v2.1.1 is not supported. Please update Docker Compose to at least 1.22.0. ` With the help of "tr" to remove the leading "v" will fix this problem. * SC-8301: warning functionality * Docker Compose V2 + Mutage * Update compose.sh * Adjust docker compose runner * SC-8242: adjusted templates for choosing compose version * SC-8242: provided env variable for compose version * SC-8301: updated organisation for socat image * SC-8301: added new version of services * SC-8301: fix typo jenkins version * SC-8301: reverted default version * SC-8242: updated after QA * SC-8242: updated troubleshooting * Update docker-compose.sh * SC-8301: adjusted prerelease version * SC-8301: adjusted local version * SC-8301: adjusted local version * SC-8301: added jenkins csrf protection * SC-8301: added jenkins csrf protection * fix missing ; in the templates * SC-8259: update troubleshooting * SC-8259: renamed csrf-protection property to csrf-protection-enabled * SC-8259: updated service version compatibility validation * SC-8259: updated README.md * SC-8259: added jenkins csrf protection issue into troubleshooting * SC-8259: reverted generator image * Update deploy.bash.twig * Update mutagen.sh Co-authored-by: alexanderM91 <oleksandr.myrnyi@spryker.com> Co-authored-by: Filip Sushko <filip.sushko@spruker.com> Co-authored-by: greenflute <greenflute@hotmail.com> Co-authored-by: Sylvain Gaffie <sylvain.gaffie@spryker.com>
- Loading branch information
1 parent
c55f507
commit 3966b3b
Showing
16 changed files
with
324 additions
and
35 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
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
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,3 +1,6 @@ | ||
SPRYKER_SCHEDULER_HOST={{ serviceName }} | ||
SPRYKER_SCHEDULER_PORT={{ serviceData['port'] | default(8080) }} | ||
SPRYKER_JENKINS_TEMPLATE_PATH=/home/spryker/jenkins.docker.xml.twig | ||
|
||
SPRYKER_JENKINS_CSRF_PROTECTION_ENABLED="{{ serviceData['csrf-protection-enabled'] }}" | ||
|
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
18 changes: 18 additions & 0 deletions
18
generator/src/templates/service/jenkins/2.305/jenkins.yml.twig
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,18 @@ | ||
{{ serviceName }}: | ||
image: spryker/jenkins:2.305 | ||
networks: | ||
- private | ||
labels: | ||
'spryker.app.name': scheduler | ||
'spryker.app.type': services | ||
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG} | ||
healthcheck: | ||
test: [ "CMD", "nc", "-z", "localhost", "8080" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
environment: | ||
JAVA_OPTS: '-Djenkins.install.runSetupWizard=false -Xms128m -Xmx128m -Dhudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION={{ serviceData['csrf-protection-enabled'] ? 'false' : 'true' }}' | ||
volumes: | ||
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/var/jenkins_home:rw | ||
- ${DEPLOYMENT_PATH}/context/jenkins/spryker.sh:/usr/bin/spryker.sh:rw |
18 changes: 18 additions & 0 deletions
18
generator/src/templates/service/jenkins/2.324/jenkins.yml.twig
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,18 @@ | ||
{{ serviceName }}: | ||
image: spryker/jenkins:2.324 | ||
networks: | ||
- private | ||
labels: | ||
'spryker.app.name': scheduler | ||
'spryker.app.type': services | ||
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG} | ||
healthcheck: | ||
test: [ "CMD", "nc", "-z", "localhost", "8080" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
environment: | ||
JAVA_OPTS: '-Djenkins.install.runSetupWizard=false -Xms128m -Xmx128m -Dhudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION={{ serviceData['csrf-protection-enabled'] ? 'false' : 'true' }}' | ||
volumes: | ||
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/var/jenkins_home:rw | ||
- ${DEPLOYMENT_PATH}/context/jenkins/spryker.sh:/usr/bin/spryker.sh:rw |
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 @@ | ||
readonly SPRYKER_JENKINS_CSRF_PROTECTION_ENABLED="{{ services['scheduler']['csrf-protection-enabled'] ? '1' : '0' }}" |
19 changes: 19 additions & 0 deletions
19
generator/src/templates/service/rabbitmq/3.8/rabbitmq.yml.twig
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,19 @@ | ||
{{ serviceName }}: | ||
image: spryker/rabbitmq:3.8 | ||
hostname: {{ serviceName }} # RabbitMQ determines the cluster by its hostname | ||
networks: | ||
- private | ||
labels: | ||
'spryker.app.name': broker | ||
'spryker.app.type': services | ||
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG} | ||
healthcheck: | ||
test: [ "CMD", "nc", "-z", "localhost", "5672" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 10 | ||
environment: | ||
RABBITMQ_DEFAULT_USER: "{{ serviceData['api']['username'] }}" | ||
RABBITMQ_DEFAULT_PASS: "{{ serviceData['api']['password'] }}" | ||
volumes: | ||
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/var/lib/rabbitmq:rw |
Oops, something went wrong.