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

Docker 1.0.8 image broken #40

Closed
jpVm5jYYRE1VIKL opened this issue Jul 21, 2019 · 1 comment
Closed

Docker 1.0.8 image broken #40

jpVm5jYYRE1VIKL opened this issue Jul 21, 2019 · 1 comment

Comments

@jpVm5jYYRE1VIKL
Copy link

jpVm5jYYRE1VIKL commented Jul 21, 2019

/app/start.sh: line 8: /app/mikrotik-exporter: not found

PS:

/app # ls -la
total 11432
drwxr-xr-x 1 root root 4096 Jul 6 02:21 .
drwxr-xr-x 1 root root 4096 Jul 21 16:34 ..
-rwxr-xr-x 1 root root 11689927 Jul 6 02:20 mikrotik-exporter
-rwxr-xr-x 1 root root 195 Jul 6 02:20 start.sh
/app # ./mikrotik-exporter
sh: ./mikrotik-exporter: not found
/app #

After some investigations i found that exist compatibily problem between your base image and executable:

More details here :
https://stackoverflow.com/questions/54281646/executable-in-docker-image-not-found

nshttpd added a commit that referenced this issue Jul 21, 2019
Fix for #40 

* use debian instead of alpine
* bump version to real release
@nshttpd
Copy link
Owner

nshttpd commented Jul 21, 2019

stupid alpine. switch to debian stretch slim as base and confirmed it works on local server.

@nshttpd nshttpd closed this as completed Jul 21, 2019
olegstepura added a commit to olegstepura/mikrotik-exporter that referenced this issue Oct 22, 2020
Uses same env to build binary (alpine) as will be used to run in. Should not reintroduce nshttpd#40 
Tested locally, all fine running in archlinux.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants