Hi and thank you in advance for help!
I am trying to use postgres and redis for my Dagger pipeline. I grab the environ variables from GitLab at the top of my code, then pull them into my postgres container using .with_env_variable(). I have the following code:
# ======================== POSTGRES ========================
postgres = (
# use a postgres container
client.container().from_("postgres:12")
# set the environment variables
.with_env_variable("POSTGRES_USER", POSTGRES_USER)
.with_env_variable("POSTGRES_PASSWORD", POSTGRES_PASSWORD)
.with_env_variable("POSTGRES_DB", POSTGRES_DB)
.with_env_variable("POSTGRES_HOST_AUTH_METHOD", POSTGRES_HOST_AUTH_METHOD)
.with_env_variable("PORTALD_DATABASE_URL", PORTALD_DATABASE_URL)
.with_exec(["postgres"])
)
# ======================== REDIS ========================
redis = (
# use a redis container
client.container().from_("redis")
# set the environment variables
.with_env_variable("PORTALD_REDIS_URL", PORTALD_REDIS_URL)
)
then binding the service to test container:
python = (
# use a python 3.10 container
client.container().from_("python:3.11-slim-buster")
# bind redis service
.with_service_binding("redis", redis)
I got this error when doing so:
resolve image config for docker.io/library/redis:latest ERROR: failed to copy: httpReadSeeker: failed open: failed to do request: Get "[link]": remote error: tls: handshake failure
In my configuration, am I doing something?