Hello
I try to setup Torizon Platform, together with GitHub repositories and actions that will push the builds to Platform. As an excercise I’d like to do this all private as that is common requirement in the industry.
Now let’s start with my setup. I’m using:
- Verdin i.MX8MM 2GB WB IT V1.1A
- TorizonCore 6.8.1 (with some customizations)
- The application container is being built with docker buildx
First of all the application container is being built on GitHub and pushed to its own registry, which is private. I create a (classic) token and I verified this one to work using docker login ...
and docker pull ...
Then I push the respective docker-compose.yml to Torizon Platform using the following command:
torizoncore-builder platform push \
--credentials credentials.zip \
--package-name ClimateProdTestApp \
--package-version "7d6de5d5" \
--login-to ghcr.io impuls-ing <my github packages token (classic)> \
docker-compose.yml
I can see the push to be successful. When I select the image to be installed on my device I see in the aktualizr log, that that it tries to pull my application but that fails with error “unauthorized”. Please see the log attached.
aktualizr_authentication_failure.txt (7.5 KB)
What I tried to debug the issue: I uploaded the same docker-compose.yml to the device
torizon@verdin-imx8mm-06760541:~$ docker-compose -f docker-compose.yml up
WARN[0000] /home/torizon/docker-compose.yml: `version` is obsolete
[+] Running 1/1
✘ climateprodtestapp Error Head "https://ghcr.io/v2/impuls-ing/climateprodtestapp/manifests/7d6de5d5": unauthorized 0.4s
Error response from daemon: Head "https://ghcr.io/v2/impuls-ing/climateprodtestapp/manifests/7d6de5d5": unauthorized
torizon@verdin-imx8mm-06760541:~$ docker login ghcr.io
Username: impuls-ing
Password:
WARNING! Your password will be stored unencrypted in /home/torizon/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
torizon@verdin-imx8mm-06760541:~$ docker-compose -f docker-compose.yml up
WARN[0000] /home/torizon/docker-compose.yml: `version` is obsolete
[+] Running 20/20
✔ climateprodtestapp Pulled 24.5s
✔ 92c3b3500be6 Pull complete 8.5s
✔ 6d10cd063909 Pull complete 9.8s
✔ 38de08bd494d Pull complete 10.0s
✔ 2f88c5727c46 Pull complete 10.1s
✔ f3bb3403e8b9 Pull complete 10.4s
✔ a05f8870c1b6 Pull complete 10.6s
✔ fa7f96a6a20e Pull complete 10.9s
✔ af7ddf09a87e Pull complete 11.0s
✔ 9ecb9131a73e Pull complete 11.2s
✔ 68c3de42df08 Pull complete 11.4s
✔ bdfa20e97fc3 Pull complete 11.6s
✔ 061ecec88232 Pull complete 19.5s
✔ 2216f8074f82 Pull complete 21.3s
✔ a9ba6c163096 Pull complete 21.5s
✔ 649af67811d0 Pull complete 22.8s
✔ 92abc78819ea Pull complete 23.0s
✔ 604cc86d191f Pull complete 23.3s
✔ 15d6b12f14d3 Pull complete 23.5s
✔ 4f4fb700ef54 Pull complete 23.7s
[+] Running 2/1
✔ Container torizon-climateprodtestapp-1 Created 4.8s
! climateprodtestapp Published ports are discarded when using host network mode 0.0s
Attaching to climateprodtestapp-1
So you can see that my token clearly works on the device but somehow the option --login-to does not work.
Please let me know if I’m doing something wrong.
Thanks in advance and Best Regards,
Philippe