Skip to content

Commit

Permalink
fix(deploy): add CA's in to cloud image (#11892)
Browse files Browse the repository at this point in the history
I forgot to include this in the image such that dev can verify
ClickHouse.
  • Loading branch information
Harry Waye authored Sep 20, 2022
1 parent e5d52e0 commit 96dc1e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ WORKDIR /code/

USER root

# TLS: add in our own root CAs for the deployment environment, such that we can
# validate certs. See
# https://github.com/PostHog/posthog-cloud-infra/tree/main/pki for details of
# the setup.
COPY ./certs/* /usr/local/share/ca-certificates/
RUN chmod 644 /usr/local/share/ca-certificates/posthog-*.crt && update-ca-certificates

# Add in requirements we don't have in the base image
COPY requirements.txt /code/cloud_requirements.txt
RUN pip install -r cloud_requirements.txt --no-cache-dir
Expand Down

0 comments on commit 96dc1e2

Please sign in to comment.