Skip to content

Commit

Permalink
misc changes to docker and image publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Oct 4, 2023
1 parent b181cff commit 29de81f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 19 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/dev-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/peerdb-io/peerdb-server:dev-${{ steps.vars.outputs.sha_short }}
ghcr.io/peerdb-io/peerdb-server:latest-dev
- name: Build (optionally publish) Flow API Dev Image
uses: depot/build-push-action@v1
Expand All @@ -56,6 +57,7 @@ jobs:
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/peerdb-io/flow-api:dev-${{ steps.vars.outputs.sha_short }}
ghcr.io/peerdb-io/flow-api:latest-dev
- name: Build (optionally publish) Flow Worker Dev Image
uses: depot/build-push-action@v1
Expand All @@ -67,6 +69,7 @@ jobs:
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/peerdb-io/flow-worker:dev-${{ steps.vars.outputs.sha_short }}
ghcr.io/peerdb-io/flow-worker:latest-dev
- name: Build (optionally publish) Flow Snapshot Worker Dev Image
uses: depot/build-push-action@v1
Expand All @@ -78,3 +81,16 @@ jobs:
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/peerdb-io/flow-snapshot-worker:dev-${{ steps.vars.outputs.sha_short }}
ghcr.io/peerdb-io/flow-snapshot-worker:latest-dev
- name: Build (optionally publish) PeerDB UI Dev Image
uses: depot/build-push-action@v1
with:
token: ${{ secrets.DEPOT_TOKEN }}
platforms: linux/amd64,linux/arm64
context: .
file: stacks/peerdb-ui.Dockerfile
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/peerdb-io/peerdb-ui:dev-${{ steps.vars.outputs.sha_short }}
ghcr.io/peerdb-io/peerdb-ui:latest-dev
40 changes: 21 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ x-flow-worker-env: &flow-worker-env
services:
catalog:
container_name: catalog
image: debezium/postgres:15-alpine
image: debezium/postgres:16-alpine
ports:
- 9901:5432
environment:
Expand Down Expand Up @@ -95,7 +95,7 @@ services:
ports:
- 8085:8080

flow_api:
flow-api:
container_name: flow_api
build:
context: .
Expand All @@ -109,8 +109,8 @@ services:
temporal-admin-tools:
condition: service_healthy

flow_snapshot_worker:
container_name: flow_snapshot_worker
flow-snapshot-worker:
container_name: flow-snapshot-worker
build:
context: .
dockerfile: stacks/flow-snapshot-worker.Dockerfile
Expand All @@ -120,8 +120,8 @@ services:
temporal-admin-tools:
condition: service_healthy

flow_worker1:
container_name: flow_worker1
flow-worker1:
container_name: flow-worker1
build:
context: .
dockerfile: stacks/flow-worker.Dockerfile
Expand All @@ -135,8 +135,8 @@ services:
temporal-admin-tools:
condition: service_healthy

flow_worker2:
container_name: flow_worker2
flow-worker2:
container_name: flow-worker2
build:
context: .
dockerfile: stacks/flow-worker.Dockerfile
Expand All @@ -153,8 +153,8 @@ services:
temporal-admin-tools:
condition: service_healthy

flow_worker3:
container_name: flow_worker3
flow-worker3:
container_name: flow-worker3
build:
context: .
dockerfile: stacks/flow-worker.Dockerfile
Expand All @@ -172,10 +172,10 @@ services:
condition: service_healthy

peerdb:
container_name: peerdb_server
container_name: peerdb-server
build:
context: .
dockerfile: stacks/nexus.Dockerfile
dockerfile: stacks/peerdb-server.Dockerfile
environment:
<<: *catalog-config
PEERDB_LOG_DIR: /var/log/peerdb
Expand All @@ -189,8 +189,8 @@ services:
catalog:
condition: service_healthy

peerdb_prometheus:
container_name: peerdb_prometheus
peerdb-prometheus:
container_name: peerdb-prometheus
build:
context: .
dockerfile: stacks/prometheus.Dockerfile
Expand All @@ -202,8 +202,9 @@ services:
- multi-metrics
- metrics

peerdb_grafana:
container_name: peerdb_grafana

peerdb-grafana:
container_name: peerdb-grafana
build:
context: .
dockerfile: stacks/grafana.Dockerfile
Expand All @@ -216,11 +217,12 @@ services:
- multi-metrics
- metrics

peerdb_ui:
container_name: peerdb_ui

peerdb-ui:
container_name: peerdb-ui
build:
context: .
dockerfile: stacks/ui.Dockerfile
dockerfile: stacks/peerdb-ui.Dockerfile
ports:
- 3001:3000
environment:
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 29de81f

Please sign in to comment.