diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index f8b9541b..e8a3782b 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -10,7 +10,7 @@ jobs: matrix: image: [ { name: "divviup_api", rust_features: "default" }, - { name: "divviup_api_integration_test", rust_features: "integration-testing" }, + { name: "divviup_api_integration_test", rust_features: "integration-testing,admin" }, ] permissions: id-token: write diff --git a/compose.dev.override.yaml b/compose.dev.override.yaml index cfec4b75..136ae1f0 100644 --- a/compose.dev.override.yaml +++ b/compose.dev.override.yaml @@ -1,14 +1,19 @@ # Overrides for the local development docker compose setup. Meant only to be used by # compose.dev.yaml +x-build: &build + build: + context: . + args: + RUST_PROFILE: dev + # We don't need both of these features in all three services, but it allows reusing one + # container image for both this and the divviup_api service. + RUST_FEATURES: integration-testing,admin + services: divviup_api: image: !reset null - build: - context: . - args: - RUST_PROFILE: dev - RUST_FEATURES: integration-testing + <<: *build develop: watch: - path: src/ @@ -16,16 +21,20 @@ services: divviup_api_migrate: image: !reset null - build: - context: . - args: - RUST_PROFILE: dev - # This isn't strictly required for migrations, but it allows reusing one container image - # for both this and the divviup_api service. - RUST_FEATURES: integration-testing + <<: *build develop: watch: - path: migration action: rebuild ignore: - README.md + + pair_aggregator: + image: !reset null + <<: *build + develop: + watch: + - path: cli/ + action: rebuild + - path: client/ + action: rebuild diff --git a/compose.yaml b/compose.yaml index c6c640e9..15421d95 100644 --- a/compose.yaml +++ b/compose.yaml @@ -53,6 +53,28 @@ services: postgres: condition: service_started + pair_aggregator: + image: ${DIVVIUP_API_IMAGE:-us-west2-docker.pkg.dev/divviup-artifacts-public/divviup-api/divviup_api_integration_test:0.3.12} + entrypoint: + - /divviup + - --url=http://localhost:8080 + - --token="" + - aggregator + - create + - --name=leader + - --api-url=http://janus_1_aggregator:8080/aggregator-api + - --bearer-token=0000 + - --first-party + - --shared + network_mode: service:divviup_api + depends_on: + divviup_api: + condition: service_healthy + janus_1_aggregator: + condition: service_healthy + janus_2_aggregator: + condition: service_healthy + divviup_api: image: ${DIVVIUP_API_IMAGE:-us-west2-docker.pkg.dev/divviup-artifacts-public/divviup-api/divviup_api_integration_test:0.3.12} ports: