correctamundo
correctamundo
CCoder.com
Created by correctamundo on 4/23/2024 in #help
Create a worskpace with several container
Great stuff, thanks again Atif !
9 replies
CCoder.com
Created by correctamundo on 4/23/2024 in #help
Create a worskpace with several container
Thanks a lot @Atif for your answer , I'm going to try the option 1 you suggest, will the containers have a dedicated network or is this something I have to specify on the template as well?
9 replies
CCoder.com
Created by correctamundo on 4/11/2024 in #help
Internal error exchanging Oauth code
Indeed, I've tested setting the variable CODER_TLS_CLIENT_CA_FILE=/etc/ssl/certs/internal-pki.pem and then on docker-compose:
volumes:
...
- path_to_cert_in_host/cert.pem:${CODER_TLS_CLIENT_CA_FILE}
volumes:
...
- path_to_cert_in_host/cert.pem:${CODER_TLS_CLIENT_CA_FILE}
12 replies
CCoder.com
Created by correctamundo on 4/11/2024 in #help
Internal error exchanging Oauth code
Hi, yes, thanks for the suggestion, this indeed sprang to mind. I've tried to do it without having to run the update-ca-certificates and no luck !
12 replies
CCoder.com
Created by correctamundo on 4/11/2024 in #help
Internal error exchanging Oauth code
I've added the volume on a clean docker-compose file (without my fix) and unfortunately it doesn't work. I guess the update-ca-certificates command is missing
12 replies
CCoder.com
Created by correctamundo on 4/11/2024 in #help
Internal error exchanging Oauth code
If anyone has a cleaner way to do this please let me know. I've also tried setting the CODER_TLS_CLIENT_CA_FILE variable with the custom ca crt path but didn't work
12 replies
CCoder.com
Created by correctamundo on 4/11/2024 in #help
Internal error exchanging Oauth code
And mounted the custom ca cert on the container folder /usr/local/share/ca-certificates/custom-ca.crt
12 replies
CCoder.com
Created by correctamundo on 4/11/2024 in #help
Internal error exchanging Oauth code
Ok, I've got it working, I've hadd to change a few things on the docker-compose.yaml file:
coder:
image: ghcr.io/coder/coder:${CODER_VERSION:-latest}
** user: root**
ports:
- "7080:7080"
** entrypoint: [""]**
** command: bash -c "apk --no-cache add ca-certificates && update-ca-certificates && /opt/coder server"**
coder:
image: ghcr.io/coder/coder:${CODER_VERSION:-latest}
** user: root**
ports:
- "7080:7080"
** entrypoint: [""]**
** command: bash -c "apk --no-cache add ca-certificates && update-ca-certificates && /opt/coder server"**
12 replies