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

build: add ssl certs for db connections #191

Closed
wants to merge 1 commit into from
Closed

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Sep 3, 2024

Updated the container build strategy to pull in ca-certs in the runtime image. Doing so permits the app to talk to a variety of SSL-required db endpoints.

Updated the container build strategy to pull in ca-certs in the runtime
image. Doing so permits the app to talk to a variety of SSL-required db
endpoints.
@@ -45,6 +44,8 @@ RUN turbo run build --filter=cuiloa-app

# Run container
FROM alpine AS runner
# Ensure that SSL certs are present for DB connections
RUN apk add --no-cache ca-certificates
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L48 contains the resolution, permitting SSL-required db connections in the runtime image.


# Build, then run the webapp container image. Uses local env vars.
run-container:
podman run -e DATABASE_URL -e APP_URL -e PENUMBRA_GRPC_ENDPOINT -p 3000:3000 -it ghcr.io/penumbra-zone/cuiloa
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These just targets are included strictly for my own sake when testing the app locally.

@conorsch conorsch marked this pull request as draft September 3, 2024 17:17
@conorsch
Copy link
Contributor Author

conorsch commented Sep 3, 2024

Draft status, so I can continue to test against remote endpoints.

@conorsch
Copy link
Contributor Author

Closing out as insufficient. There's a full write up of the underlying issue in #191.

@conorsch conorsch closed this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant