Skip to content

Commit

Permalink
Prepare for pulling images
Browse files Browse the repository at this point in the history
Refs #96
  • Loading branch information
sverhoeven committed Apr 23, 2024
1 parent 44f9580 commit e4e533a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ services:
# below is same as in deploy/arq/docker-compose.yml,
# but paths are relative to the /.devcontainer/ directory
bartender:
image: ghcr.io/i-vresse/bartender
image: ghcr.io/i-vresse/bartender:${BARTENDER_TAG:-latest}
build:
context: ../deploy
dockerfile: ./Dockerfile.bartenderhaddock3
Expand Down Expand Up @@ -100,7 +100,7 @@ services:
restart: always

bartenderworker:
image: ghcr.io/i-vresse/bartender
image: ghcr.io/i-vresse/bartender:${BARTENDER_TAG:-latest}
build:
context: ../deploy
dockerfile: ./Dockerfile.bartenderhaddock3
Expand All @@ -119,7 +119,7 @@ services:
condition: service_started

certmaker:
image: ghcr.io/i-vresse/certmaker
image: ghcr.io/i-vresse/certmaker:${CERTMAKER_TAG:-latest}
build:
context: ../deploy/
dockerfile: ./Dockerfile.openssl
Expand All @@ -129,7 +129,7 @@ services:
restart: "no"

h3restraints:
image: ghcr.io/i-vresse/bartender
image: ghcr.io/i-vresse/bartender:${BARTENDER_TAG:-latest}
build:
context: ../deploy
dockerfile: ./Dockerfile.bartenderhaddock3
Expand Down
3 changes: 3 additions & 0 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Docker file for haddock3-webapp
LABEL org.opencontainers.image.source=https://github.com/i-VRESSE/haddock3-webapp/blob/main/deploy/Dockerfile
LABEL org.opencontainers.image.licenses=Apache-2.0
LABEL org.opencontainers.image.description="Haddock3 webapplication image."

# base node image
FROM node:18-bookworm-slim as base
Expand Down
3 changes: 3 additions & 0 deletions deploy/Dockerfile.bartenderhaddock3
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Dockerfile for bartender web service with haddock3, lightdock, gdock executables.
FROM python:3.9-slim-bookworm
LABEL org.opencontainers.image.source=https://github.com/i-VRESSE/haddock3-webapp/blob/main/deploy/Dockerfile.bartenderhaddock3
LABEL org.opencontainers.image.licenses=Apache-2.0
LABEL org.opencontainers.image.description="bartender web service with haddock3, lightdock, gdock executables. Image does not contain real cns executable, downstream should copy it to /opt/haddock3/bin/cns."

ARG HADDOCK3_GHORG=haddocking
ARG HADDOCK3_VERSION=main
Expand Down
6 changes: 6 additions & 0 deletions deploy/Dockerfile.openssl
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Docker image that generates a rsa private/public key pair on startup.

# The service with the public key (/certs/public_key.pem) can trust the service with the private key (/certs/private_key.pem).
FROM alpine:3.19
LABEL org.opencontainers.image.source=https://github.com/i-VRESSE/haddock3-webapp/blob/main/deploy/Dockerfile.openssl
LABEL org.opencontainers.image.licenses=Apache-2.0
LABEL org.opencontainers.image.description="Generates a rsa private/public key pair on startup"

RUN apk add --no-cache openssl

Expand Down
10 changes: 5 additions & 5 deletions deploy/arq/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:
webapp:
image: ghcr.io/i-vresse/haddock3-webapp
image: ghcr.io/i-vresse/haddock3-webapp:${WEBAPP_TAG:-latest}
build:
context: ../..
dockerfile: deploy/Dockerfile
Expand Down Expand Up @@ -44,7 +44,7 @@ services:
retries: 40

bartender:
image: ghcr.io/i-vresse/bartender
image: ghcr.io/i-vresse/bartender:${BARTENDER_TAG:-latest}
build:
context: ..
dockerfile: ./Dockerfile.bartenderhaddock3
Expand Down Expand Up @@ -93,7 +93,7 @@ services:
restart: always

bartenderworker:
image: ghcr.io/i-vresse/bartender
image: ghcr.io/i-vresse/bartender:${BARTENDER_TAG:-latest}
build:
context: ..
dockerfile: ./Dockerfile.bartenderhaddock3
Expand All @@ -109,7 +109,7 @@ services:
condition: service_started

certmaker:
image: ghcr.io/i-vresse/certmaker
image: ghcr.io/i-vresse/certmaker:${CERTMAKER_TAG:-latest}
build:
context: ..
dockerfile: ./Dockerfile.openssl
Expand All @@ -119,7 +119,7 @@ services:
restart: "no"

h3restraints:
image: ghcr.io/i-vresse/bartender
image: ghcr.io/i-vresse/bartender:${BARTENDER_TAG:-latest}
build:
context: ..
dockerfile: ./Dockerfile.bartenderhaddock3
Expand Down
6 changes: 3 additions & 3 deletions deploy/remoteslurm/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:
webapp:
image: ghcr.io/i-vresse/haddock3-webapp
image: ghcr.io/i-vresse/haddock3-webapp:${WEBAPP_TAG:-latest}
build:
context: ../..
dockerfile: deploy/Dockerfile
Expand Down Expand Up @@ -44,7 +44,7 @@ services:
retries: 40

bartender:
image: ghcr.io/i-vresse/bartender
image: ghcr.io/i-vresse/bartender:${BARTENDER_TAG:-latest}
build:
context: ..
dockerfile: ./Dockerfile.bartenderhaddock3
Expand Down Expand Up @@ -105,7 +105,7 @@ services:
restart: "no"

h3restraints:
image: ghcr.io/i-vresse/bartender
image: ghcr.io/i-vresse/bartender:${BARTENDER_TAG:-latest}
build:
context: ..
dockerfile: ./Dockerfile.bartenderhaddock3
Expand Down

0 comments on commit e4e533a

Please sign in to comment.