Skip to content

Commit

Permalink
feat(quickstart): add actions to debug quickstart (datahub-project#9559)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored Jan 4, 2024
1 parent 1704908 commit abe74b5
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 4 deletions.
13 changes: 10 additions & 3 deletions docker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,17 @@ tasks.register('quickstartSlim') {}
tasks.register('quickstartDebug') {}
tasks.register('quickstartPg') {}

tasks.withType(ComposeDownForced) {
removeVolumes = true
tasks.register('quickstartNuke') {
doFirst {
dockerCompose.quickstart.removeVolumes = true
dockerCompose.quickstartPg.removeVolumes = true
dockerCompose.quickstartSlim.removeVolumes = true
dockerCompose.quickstartDebug.removeVolumes = true
}
finalizedBy(tasks.withType(ComposeDownForced))
}
task quickstartNuke {

tasks.register('quickstartDown') {
finalizedBy(tasks.withType(ComposeDownForced))
}

Expand Down
54 changes: 53 additions & 1 deletion docker/profiles/docker-compose.actions.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@

x-datahub-actions-service: &datahub-actions-service
hostname: actions
image: ${DATAHUB_ACTIONS_IMAGE:-${DATAHUB_ACTIONS_REPO:-acryldata}/datahub-actions}:${ACTIONS_VERSION:-head}
image: ${DATAHUB_ACTIONS_IMAGE:-${DATAHUB_ACTIONS_REPO:-acryldata}/datahub-actions}:${ACTIONS_VERSION:-v0.0.14}
env_file: datahub-actions/env/docker.env
environment:
ACTIONS_EXTRA_PACKAGES: ${ACTIONS_EXTRA_PACKAGES:-}
ACTIONS_CONFIG: ${ACTIONS_CONFIG:-}
KAFKA_BOOTSTRAP_SERVER: kafka-broker:29092
SCHEMA_REGISTRY_URL: http://datahub-gms:8080/schema-registry/api/

x-datahub-actions-service-dev: &datahub-actions-service-dev
<<: *datahub-actions-service

services:
datahub-actions-quickstart:
<<: *datahub-actions-service
Expand Down Expand Up @@ -43,3 +46,52 @@ services:
depends_on:
datahub-gms-quickstart-consumers:
condition: service_healthy
datahub-actions-debug:
<<: *datahub-actions-service-dev
container_name: actions-dev
profiles:
- debug
- debug-backend
depends_on:
datahub-gms-debug:
condition: service_healthy
datahub-actions-debug-postgres:
<<: *datahub-actions-service-dev
container_name: actions-dev
profiles:
- debug-postgres
depends_on:
datahub-gms-debug-postgres:
condition: service_healthy
datahub-actions-debug-cassandra:
<<: *datahub-actions-service-dev
container_name: actions-dev
profiles:
- debug-cassandra
depends_on:
datahub-gms-debug-cassandra:
condition: service_healthy
datahub-actions-debug-consumers:
<<: *datahub-actions-service-dev
container_name: actions-dev
profiles:
- debug-consumers
depends_on:
datahub-gms-debug-consumers:
condition: service_healthy
datahub-actions-debug-neo4j:
<<: *datahub-actions-service-dev
container_name: actions-dev
profiles:
- debug-neo4j
depends_on:
datahub-gms-debug-neo4j:
condition: service_healthy
datahub-actions-debug-elasticsearch:
<<: *datahub-actions-service-dev
container_name: actions-dev
profiles:
- debug-elasticsearch
depends_on:
datahub-gms-debug-elasticsearch:
condition: service_healthy

0 comments on commit abe74b5

Please sign in to comment.