Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

glab: command not found on Docker image #816

Closed
bjschafer opened this issue Aug 10, 2021 · 3 comments · Fixed by #817
Closed

glab: command not found on Docker image #816

bjschafer opened this issue Aug 10, 2021 · 3 comments · Fixed by #817
Labels
bug Something isn't working platform-packaging priority: high Affects a large population and inhibits work

Comments

@bjschafer
Copy link

Description

When launching the latest Docker image with e.g. docker run -it --rm profclems/glab:latest, it returns /entrypoint.sh: line 24: glab: command not found

Expected Behavior vs Actual Behavior
I'd expect it to launch the glab executable.

Possible Fix
Seems like glab isn't in the default $PATH, because it's located at /usr/glab. Either move glab into /usr/local/bin (arguably more correct), or add /usr to $PATH.

Steps to Reproduce

  1. docker run -it profclem/glab:latest
  2. See glab: command not found
  3. Cry a little inside.

Your Environment

  • Version used (Run glab --version): 1.19.0
@bjschafer bjschafer added the bug Something isn't working label Aug 10, 2021
@profclems
Copy link
Owner

@bjschafer thanks for opening this issue.

I guess I would have to do a new release asap.

Seems the docker image works for previous versions up to v1.18.1, I don't know why this is happening.

Seems like glab isn't in the default $PATH, because it's located at /usr/glab. Either move glab into /usr/local/bin (arguably more correct), or add /usr to $PATH.

We run apk add --allow-untrusted /tmp/glab_*.apk in the dockerfile so I expect apk to find the right path for glab.

@profclems
Copy link
Owner

I just found out that the new goreleaser update doesn't package nfpms in a /bin directory.

I have opened a PR with a fix. I will do a new release with this.

Thanks a lot @bjschafer

@profclems
Copy link
Owner

Just released v1.20.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working platform-packaging priority: high Affects a large population and inhibits work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants