Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): add value to customise PostgreSQL docker image (#774) #774

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions helm/configurations/values-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# REANA components pointing to `latest`, locally built master branch

components:
reana_db:
image: docker.io/library/postgres:14.10
reana_server:
image: docker.io/reanahub/reana-server
environment:
Expand Down
1 change: 1 addition & 0 deletions helm/reana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This Helm automatically prefixes all names using the release name to avoid colli
| Parameter | Description | Default value |
|----------------------------------------------------------|--------------------------------------------------------------------------------------|-------------------------------------------------|
| `components.reana_db.enabled` | Instantiate a PostgreSQL database inside the cluster | true |
| `components.reana_db.image` | [PostgreSQL image](https://hub.docker.com/_/postgres) to use | `docker.io/library/postgres:12.13` |
| `components.reana_job_controller.image` | [REANA-Job-Controller image](https://hub.docker.com/r/reanahub/reana-job-controller) to use | `docker.io/reanahub/reana-job-controller:<chart-release-version>` |
| `components.reana_message_broker.image` | [REANA-Message-Broker image](https://hub.docker.com/r/reanahub/reana-message-broker) to use | `docker.io/reanahub/reana-message-broker:<chart-release-version>` |
| `components.reana_message_broker.imagePullPolicy` | REANA-Message-Broker image pull policy | IfNotPresent |
Expand Down
2 changes: 1 addition & 1 deletion helm/reana/templates/reana-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
spec:
containers:
- name: db
image: docker.io/library/postgres:12.13
image: {{ .Values.components.reana_db.image }}
args:
- -c
- max_connections=300
Expand Down
1 change: 1 addition & 0 deletions helm/reana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ components:
image: docker.io/reanahub/reana-ui:0.9.3
reana_db:
enabled: true
image: docker.io/library/postgres:12.13
reana_server:
imagePullPolicy: IfNotPresent
image: docker.io/reanahub/reana-server:0.9.2
Expand Down
2 changes: 1 addition & 1 deletion reana/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@

DOCKER_PREFETCH_IMAGES = {
"reana": [
"docker.io/library/postgres:12.13",
"docker.io/library/postgres:14.10",
"docker.io/kozea/wdb:3.2.5",
"docker.io/maildev/maildev:1.1.0",
"docker.io/library/redis:5.0.5",
Expand Down
2 changes: 1 addition & 1 deletion reana/reana_dev/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def python_unit_tests(
run_command(
f"docker stop postgres__{component}\n"
f"docker run --rm --name postgres__{component} -p 5432:5432 "
"-e POSTGRES_PASSWORD=mysecretpassword -d docker.io/library/postgres:12.13"
"-e POSTGRES_PASSWORD=mysecretpassword -d docker.io/library/postgres:14.10"
)

env_pytestarg = ""
Expand Down
Loading