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

Current docker image broken #391

Closed
HorayNarea opened this issue Aug 14, 2020 · 4 comments
Closed

Current docker image broken #391

HorayNarea opened this issue Aug 14, 2020 · 4 comments
Labels

Comments

@HorayNarea
Copy link

The current docker image uses a binary that is linked against glibc on an alpine base image which provides only musl libc:

/ # file prestd
prestd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/l, not stripped
/ # ldd prestd
        /lib64/ld-linux-x86-64.so.2 (0x7f27c3563000)
        libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f27c3563000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f27c3563000)

the binary will not start as the /lib64/ld-linux-x86-64.so.2 loader is non-existent:

exec container process (missing dynamic library?) `/prestd`: No such file or directory
@fabriziomello
Copy link
Contributor

@HorayNarea not sure if is related but I also having issues trying to use the docker image.

~ 
➜ docker images | grep prest
prest/prest                                                         latest              4fafc5babb65        7 minutes ago       18.8MB

~ 
➜ docker run -e PREST_HTTP_PORT=3000 \
        -e PREST_PG_HOST=127.0.0.1 \
        -e PREST_PG_USER=postgres \
        -e PREST_PG_PASS=pass \
        -e PREST_PG_DATABASE=prest \
        prest/prest
standard_init_linux.go:211: exec user process caused "no such file or directory"

/cc @avelino

@avelino avelino added the bug label Aug 15, 2020
avelino added a commit that referenced this issue Aug 15, 2020
ref: #391
location: goreleaser/goreleaser#225

Signed-off-by: Avelino <t@avelino.xxx>
@HorayNarea
Copy link
Author

bd49ff9 and v1.0.3 which includes this commit does not fix this problem… it is still linked against glibc and not working in the alpine-based image

@avelino
Copy link
Member

avelino commented Aug 15, 2020

bd49ff9 and v1.0.3 which includes this commit does not fix this problem… it is still linked against glibc and not working in the alpine-based image

@HorayNarea I'm working on the correction

@avelino
Copy link
Member

avelino commented Aug 16, 2020

I bring great news, problem solved 🚀

sorry for the delay

❯ prest (master) ✔ docker pull prest/prest:latest
latest: Pulling from prest/prest
df20fa9351a1: Already exists
e8de339823c6: Pull complete
b901584b501a: Pull complete
Digest: sha256:4871ba7fb73b396fe25c5bffc340f2192b476f40bf9c78aa0f813654a20e4094
Status: Downloaded newer image for prest/prest:latest
docker.io/prest/prest:latest
❯ prest (master) ✔ docker run -it --rm prest/prest:latest
2020/08/16 20:09:53 [warning] adapter is not set. Using the default (postgres)
2020/08/16 20:09:53 [error] dial tcp 127.0.0.1:5432: connect: connection refused
❯ prest (master) ✔

@avelino avelino closed this as completed Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants