Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing issue with Torizon in createDockerComposeProduction.ps1 file to login to docker registry #221

Open
mdkhaledibnhassan opened this issue Aug 13, 2024 · 2 comments
Assignees

Comments

@mdkhaledibnhassan
Copy link

Hi In Torizon below command does not work in createDockerComposeProduction.ps1 file during CI/CD in gitlab

Write-Output "$psswd" | docker login $registry -u $dockerLogin --password-stdin

I have to use

docker login -u $dockerLogin -p "$env:DOCKER_PSSWD" $registry

@microhobby microhobby self-assigned this Aug 23, 2024
@microhobby microhobby added this to the 2.6.0 milestone Aug 23, 2024
@microhobby
Copy link
Collaborator

Hey @mdkhaledibnhassan thanks for the report, I was not able to reproduce this on my side. Do you have some logs to share?

@microhobby microhobby removed this from the 2.6.0 milestone Aug 25, 2024
@griloHBG
Copy link
Contributor

griloHBG commented Sep 4, 2024

Hi @microhobby!

FYI @mdkhaledibnhassan followed up on their Toradex Community thread [1]

the issue was not fixed and I found the cause of the issue. I think I fixed it in correct way. In current code there is no way to provide password when it will run in gitlab CI/CD. We have to store it in gitlab variables as mentioned in Toradex guideline but later did not update that line to use that variable.

Default code assumes that user will enter password in console which is not true for CI/CD. Nobody can’t input.

[1] https://community.toradex.com/t/faced-issue-to-login-in-createdockercomposeproduction-task/24673/10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants