Skip to content

Commit

Permalink
misc changes to docker and image publishing (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal authored Oct 5, 2023
1 parent f0cc278 commit 23d8da9
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 20 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/dev-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ jobs:
token: ${{ secrets.DEPOT_TOKEN }}
platforms: linux/amd64,linux/arm64
context: .
file: stacks/nexus.Dockerfile
file: stacks/peerdb-server.Dockerfile
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
16 changes: 16 additions & 0 deletions .github/workflows/stable-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
push: true
tags: |
ghcr.io/peerdb-io/peerdb-server:${{ github.ref_name }}
ghcr.io/peerdb-io/peerdb-server:latest-stable
- name: Publish Flow API Image
uses: depot/build-push-action@v1
Expand All @@ -51,6 +52,7 @@ jobs:
push: true
tags: |
ghcr.io/peerdb-io/flow-api:${{ github.ref_name }}
ghcr.io/peerdb-io/flow-api:latest-stable
- name: Publish Flow Worker Stable Image
uses: depot/build-push-action@v1
Expand All @@ -62,6 +64,7 @@ jobs:
push: true
tags: |
ghcr.io/peerdb-io/flow-worker:${{ github.ref_name }}
ghcr.io/peerdb-io/flow-worker:latest-stable
- name: Publish Flow Snapshot Worker Stable Image
uses: depot/build-push-action@v1
Expand All @@ -73,3 +76,16 @@ jobs:
push: true
tags: |
ghcr.io/peerdb-io/flow-snapshot-worker:${{ github.ref_name }}
ghcr.io/peerdb-io/flow-snapshot-worker:latest-stable
- name: Build (optionally publish) PeerDB UI Stable 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:${{ github.ref_name }}
ghcr.io/peerdb-io/peerdb-ui:latest-stable
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 23d8da9

Please sign in to comment.