Skip to content

Commit

Permalink
Group qiskit serverless images in image registry (#1365)
Browse files Browse the repository at this point in the history
* Group qiskit serverless images in image registry

Signed-off-by: Paul S. Schweigert <[email protected]>

* update makefile

Signed-off-by: Paul S. Schweigert <[email protected]>

* update more actions

Signed-off-by: Paul S. Schweigert <[email protected]>

---------

Signed-off-by: Paul S. Schweigert <[email protected]>
  • Loading branch information
psschwei authored Jun 26, 2024
1 parent 17e9084 commit fe1929d
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 34 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ jobs:
matrix:
image:
[
"qiskit-serverless-gateway:latest",
"qiskit-serverless-proxy:latest",
"qiskit-serverless-ray-node:latest-py39",
"qiskit-serverless-ray-node:latest-py310",
"qiskit-serverless/gateway:latest",
"qiskit-serverless/proxy:latest",
"qiskit-serverless/ray-node:latest-py39",
"qiskit-serverless/ray-node:latest-py310",
]
include:
- image: "qiskit-serverless-gateway:latest"
- image: "qiskit-serverless/gateway:latest"
dockerfile: "./gateway/Dockerfile"
pyversion: "3.10"
- image: "qiskit-serverless-proxy:latest"
- image: "qiskit-serverless/proxy:latest"
dockerfile: "./proxy/Dockerfile"
pyversion: "3.10"
- image: "qiskit-serverless-ray-node:latest-py39"
- image: "qiskit-serverless/ray-node:latest-py39"
dockerfile: "Dockerfile-ray-node"
pyversion: "py39"
- image: "qiskit-serverless-ray-node:latest-py310"
- image: "qiskit-serverless/ray-node:latest-py310"
dockerfile: "Dockerfile-ray-node"
pyversion: "py310"
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/icr-image-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
strategy:
matrix:
include:
- imagename: qiskit-serverless-ray-node
- imagename: qiskit-serverless/ray-node
pythonversion: py39
dockerfile: Dockerfile-ray-node
platforms: linux/amd64
- imagename: qiskit-serverless-ray-node
- imagename: qiskit-serverless/ray-node
pythonversion: py310
dockerfile: Dockerfile-ray-node
platforms: linux/amd64,linux/arm64
- imagename: qiskit-serverless-gateway
- imagename: qiskit-serverless/gateway
pythonversion: ''
dockerfile: ./gateway/Dockerfile
platforms: linux/amd64,linux/arm64
- imagename: qiskit-serverless-proxy
- imagename: qiskit-serverless/proxy
pythonversion: ''
dockerfile: ./proxy/Dockerfile
platforms: linux/amd64,linux/arm64
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ jobs:
matrix:
image:
[
"qiskit-serverless-gateway:latest",
"qiskit-serverless-ray-node:latest-py39",
"qiskit-serverless-ray-node:latest-py310",
"qiskit-serverless-proxy:latest"
"qiskit-serverless/gateway:latest",
"qiskit-serverless/ray-node:latest-py39",
"qiskit-serverless/ray-node:latest-py310",
"qiskit-serverless/proxy:latest"
]
include:
- image: "qiskit-serverless-gateway:latest"
- image: "qiskit-serverless/gateway:latest"
dockerfile: "./gateway/Dockerfile"
pyversion: "3.10"
- image: "qiskit-serverless-ray-node:latest-py39"
- image: "qiskit-serverless/ray-node:latest-py39"
dockerfile: "Dockerfile-ray-node"
pyversion: "py39"
- image: "qiskit-serverless-ray-node:latest-py310"
- image: "qiskit-serverless/ray-node:latest-py310"
dockerfile: "Dockerfile-ray-node"
pyversion: "py310"
- image: "qiskit-serverless-proxy:latest-py310"
- image: "qiskit-serverless/proxy:latest-py310"
dockerfile: "./proxy/Dockerfile"
pyversion: "py310"
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-component-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
sed -i "s/version: ${OLDNUM}/version: ${NEWNUM}/" charts/qiskit-serverless/charts/gateway/Chart.yaml
sed -i "s/appVersion: \"${OLDNUM}\"/appVersion: \"${NEWNUM}\"/" charts/qiskit-serverless/charts/gateway/Chart.yaml
sed -i "s/ray-node:${OLDNUM}/ray-node:${NEWNUM}/" charts/qiskit-serverless/charts/gateway/values.yaml
sed -i "s/qiskit-serverless-proxy:${OLDNUM}/qiskit-serverless-proxy:${NEWNUM}/" charts/qiskit-serverless/charts/gateway/values.yaml
sed -i "s/qiskit-serverless/proxy:${OLDNUM}/qiskit-serverless/proxy:${NEWNUM}/" charts/qiskit-serverless/charts/gateway/values.yaml
sed -i "s/tag: \"${OLDNUM}\"/tag: \"${NEWNUM}\"/" charts/qiskit-serverless/values.yaml
sed -i "s/tag: \"${OLDNUM}-py39\"/tag: \"${NEWNUM}-py39\"/" charts/qiskit-serverless/values.yaml
sed -i "s/ray-node:${OLDNUM}/ray-node:${NEWNUM}/" charts/qiskit-serverless/values.yaml
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ else
arch="amd64"
endif

rayNodeImageName=$(repository)/qiskit-serverless-ray-node
gatewayImageName=$(repository)/qiskit-serverless-gateway
proxyImageName=$(repository)/qiskit-serverless-proxy
rayNodeImageName=$(repository)/qiskit-serverless/ray-node
gatewayImageName=$(repository)/qiskit-serverless/gateway
proxyImageName=$(repository)/qiskit-serverless/proxy

# =============
# Docker images
Expand Down
10 changes: 5 additions & 5 deletions charts/qiskit-serverless/charts/gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ application:
superuser:
enable: true
ray:
nodeImage: "icr.io/quantum-public/qiskit-serverless-ray-node:0.12.0-py39"
nodeImage_py39: "icr.io/quantum-public/qiskit-serverless-ray-node:0.12.0-py39"
nodeImage_py310: "icr.io/quantum-public/qiskit-serverless-ray-node:0.12.0-py310"
nodeImage: "icr.io/quantum-public/qiskit-serverless/ray-node:0.12.0-py39"
nodeImage_py39: "icr.io/quantum-public/qiskit-serverless/ray-node:0.12.0-py39"
nodeImage_py310: "icr.io/quantum-public/qiskit-serverless/ray-node:0.12.0-py310"
cpu: 2
memory: 2
replicas: 1
minReplicas: 1
maxReplicas: 4
opensslImage: registry.access.redhat.com/ubi8/openssl:8.8-9
kubectlImage: alpine/k8s:1.29.2@sha256:a51aa37f0a34ff827c7f2f9cb7f6fbb8f0e290fa625341be14c2fcc4b1880f60
proxyImage: "icr.io/quantum-public/qiskit-serverless-proxy:0.9.0"
proxyImage: "icr.io/quantum-public/qiskit-serverless/proxy:0.9.0"
scrapeWithPrometheus: true
openTelemetry: false
openTelemetryCollector:
Expand Down Expand Up @@ -90,7 +90,7 @@ secrets:
email: [email protected]

image:
repository: icr.io/quantum-public/qiskit-serverless-gateway
repository: icr.io/quantum-public/qiskit-serverless/gateway
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
Expand Down
4 changes: 2 additions & 2 deletions charts/qiskit-serverless/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ gateway:
useCertManager: false

image:
repository: "icr.io/quantum-public/qiskit-serverless-gateway"
repository: "icr.io/quantum-public/qiskit-serverless/gateway"
pullPolicy: IfNotPresent
tag: "0.12.0"
application:
Expand All @@ -59,7 +59,7 @@ gateway:
type: ClusterIP
port: 8000
ray:
nodeImage: "icr.io/quantum-public/qiskit-serverless-ray-node:0.12.0-py310"
nodeImage: "icr.io/quantum-public/qiskit-serverless/ray-node:0.12.0-py310"
opensslImage: registry.access.redhat.com/ubi8/openssl:8.8-9
kubectlImage: alpine/k8s:1.29.2@sha256:a51aa37f0a34ff827c7f2f9cb7f6fbb8f0e290fa625341be14c2fcc4b1880f60
limits:
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
services:
ray-head:
container_name: ray-head
image: icr.io/quantum-public/qiskit-serverless-ray-node:${VERSION:-0.12.0}-py310
image: icr.io/quantum-public/qiskit-serverless/ray-node:${VERSION:-0.12.0}-py310
entrypoint: [
"ray", "start", "--head", "--port=6379",
"--dashboard-host=0.0.0.0", "--block"
Expand All @@ -27,7 +27,7 @@ services:
always
gateway:
container_name: gateway
image: icr.io/quantum-public/qiskit-serverless-gateway:${VERSION:-0.12.0}
image: icr.io/quantum-public/qiskit-serverless/gateway:${VERSION:-0.12.0}
command: gunicorn main.wsgi:application --bind 0.0.0.0:8000 --workers=4
ports:
- 8000:8000
Expand All @@ -52,7 +52,7 @@ services:
- postgres
scheduler:
container_name: scheduler
image: icr.io/quantum-public/qiskit-serverless-gateway:${VERSION:-0.12.0}
image: icr.io/quantum-public/qiskit-serverless/gateway:${VERSION:-0.12.0}
entrypoint: "./scripts/scheduler.sh"
environment:
- DEBUG=0
Expand Down

0 comments on commit fe1929d

Please sign in to comment.