# Keep the version in sync with the version deployed in production.
FROM docker.artifactory.rbx.com/cockroachdb/cockroach:v22.1.13

# copy the static certificates required to start the crdb cluster in secure mode
COPY certs/ /cockroach/certs/
# crdb requires key files to have no more than 0640 permissions: https://www.cockroachlabs.com/docs/stable/cockroach-cert.html#client-key-and-certificates
RUN chmod -R 640 certs/

# copy the static certificates required to start the crdb replica cluster in secure mode
COPY certs/ /cockroach/certs/
# crdb requires key files to have no more than 0640 permissions: https://www.cockroachlabs.com/docs/stable/cockroach-cert.html#client-key-and-certificates
RUN chmod -R 640 certs/

# copy the static certificates required to start the crdb internal cluster in secure mode
COPY certs/ /cockroach/certs/
# crdb requires key files to have no more than 0640 permissions: https://www.cockroachlabs.com/docs/stable/cockroach-cert.html#client-key-and-certificates
RUN chmod -R 640 certs/

