docker-compose icon indicating copy to clipboard operation
docker-compose copied to clipboard

Update Dockerfile.admin-tools-tls

Open nbarrow-inspire-labs opened this issue 2 years ago • 3 comments

Solving permission error while running update-ca-certificates (see https://community.temporal.io/t/docker-compose-tls-installation-failed/7895)

What was changed

A single line was added to solve the following error while running bash ./tls/run-tls.sh following the tls setup README.md:

 => ERROR [temporal-admin-tools 3/3] RUN update-ca-certificates                                                                                                                                                  0.2s
------
 > [temporal-admin-tools 3/3] RUN update-ca-certificates:
#0 0.203 Failed to open temporary file /etc/ssl/certs/bundleXXXXXX for ca bundle
------
failed to solve: process "/bin/bash -c update-ca-certificates" did not complete successfully: exit code: 1

Why?

By adding the line USER root, docker is able to successfully execute the update-ca-certificates command located in the changed file.

Checklist

  1. How was this tested: Built and executed on Ubuntu 22.04 according to the README.md.

  2. Any docs updates needed? Not to my knowledge.

nbarrow-inspire-labs avatar Jun 14 '23 02:06 nbarrow-inspire-labs

Review on Crocodile

ghost avatar Jun 14 '23 02:06 ghost

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 14 '23 02:06 CLAassistant

Any chance we could get this merged? This error prevents running the ./tls/run-tls.sh script for all users at the moment :)

cdimitroulas avatar Jan 29 '24 13:01 cdimitroulas