-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide an easy way to test ServiceControl instances from a PR build …
…on GHCR (#4579) * Provide an easy way to test ServiceControl instances from a PR build on GHCR * Link from main README as well
- Loading branch information
1 parent
e3b0b66
commit 9d51b90
Showing
5 changed files
with
128 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Use `pr-####` or full alpha version such as `6.1.0-alpha.0.8` | ||
SERVICECONTROL_TAG=pr-4575 | ||
|
||
# ServicePulse image is pulled from Docker Hub | ||
SERVICEPULSE_TAG=latest | ||
|
||
# RabbitMQ configuration | ||
TRANSPORTTYPE=RabbitMQ.QuorumConventionalRouting | ||
CONNECTIONSTRING="host=rabbitmq;username=guest;password=guest" | ||
|
||
# Will load your local license if found in your environment variables | ||
PARTICULARSOFTWARE_LICENSE="$PARTICULARSOFTWARE_LICENSE" |
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,94 @@ | ||
# Important changes here due to new ServiceControl development should also be made in the following locations: | ||
# * /src/container-integration-test | ||
# * https://github.com/Particular/PlatformContainerExamples/tree/main/docker-compose | ||
# * https://github.com/ParticularLabs/AwsLoanBrokerSample/blob/main/docker-compose.yml | ||
|
||
name: servicecontrol-pr | ||
|
||
services: | ||
servicecontrol: | ||
image: ghcr.io/particular/servicecontrol:${SERVICECONTROL_TAG} | ||
env_file: .env | ||
ports: | ||
- "33333:33333" | ||
environment: | ||
RAVENDB_CONNECTIONSTRING: http://servicecontrol-db:8080 | ||
REMOTEINSTANCES: '[{"api_uri":"http://servicecontrol-audit:44444/api"}]' | ||
command: --setup-and-run | ||
restart: unless-stopped | ||
depends_on: | ||
servicecontrol-db: | ||
condition: service_healthy | ||
rabbitmq: | ||
condition: service_healthy | ||
|
||
servicecontrol-db: | ||
image: ghcr.io/particular/servicecontrol-ravendb:${SERVICECONTROL_TAG} | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- db-config:/etc/ravendb | ||
- db-data:/var/lib/ravendb/data | ||
|
||
servicecontrol-audit: | ||
image: ghcr.io/particular/servicecontrol-audit:${SERVICECONTROL_TAG} | ||
env_file: .env | ||
ports: | ||
- "44444:44444" | ||
environment: | ||
RAVENDB_CONNECTIONSTRING: http://servicecontrol-db:8080 | ||
command: --setup-and-run | ||
restart: unless-stopped | ||
depends_on: | ||
servicecontrol-db: | ||
condition: service_healthy | ||
rabbitmq: | ||
condition: service_healthy | ||
|
||
servicecontrol-monitoring: | ||
image: ghcr.io/particular/servicecontrol-monitoring:${SERVICECONTROL_TAG} | ||
env_file: .env | ||
restart: unless-stopped | ||
command: --setup-and-run | ||
ports: | ||
- "33633:33633" | ||
depends_on: | ||
rabbitmq: | ||
condition: service_healthy | ||
|
||
servicepulse: | ||
image: particular/servicepulse:${SERVICEPULSE_TAG} | ||
ports: | ||
- "9090:9090" | ||
environment: | ||
SERVICECONTROL_URL: http://servicecontrol:33333 | ||
MONITORING_URL: http://servicecontrol-monitoring:33633 | ||
restart: unless-stopped | ||
depends_on: | ||
servicecontrol: | ||
condition: service_healthy | ||
servicecontrol-monitoring: | ||
condition: service_healthy | ||
rabbitmq: | ||
condition: service_healthy | ||
|
||
rabbitmq: | ||
image: rabbitmq:3-management | ||
ports: | ||
- "5672:5672" | ||
- "15672:15672" | ||
restart: unless-stopped | ||
healthcheck: | ||
test: rabbitmq-diagnostics check_port_connectivity | ||
interval: 30s | ||
timeout: 10s | ||
start_period: 30s | ||
start_interval: 10s | ||
retries: 3 | ||
volumes: | ||
- rabbitmq-data:/var/lib/rabbitmq | ||
|
||
volumes: | ||
rabbitmq-data: | ||
db-config: | ||
db-data: |
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