wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.97k stars 263 forks source link

Provide a build with all dependencies #212

Closed nexeck closed 6 years ago

nexeck commented 6 years ago

At the moment it is not possible to run awless in an docker alpine Container. It seems that some external libs are missing.

Could you provide a build with all dependencies included?

fxaguessy commented 6 years ago

Hi, It seems to be working (at least) with the linux-386 version:

$ docker run --rm -it alpine sh
/ # cd /tmp/
/tmp # wget https://github.com/wallix/awless/releases/download/v0.1.10/awless-linux-386.tar.gz
Connecting to github.com (192.30.253.113:443)
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (52.216.162.171:443)
awless-linux-386.tar 100% |*************************************************************************|  7809k  0:00:00 ETA
/tmp # tar xvzf awless-linux-386.tar.gz
awless
/tmp # ./awless version

 █████╗  ██╗    ██╗ ██╗     ██████  ██████╗ ██████╗
██╔══██╗ ██║    ██║ ██║     ██╔══╝  ██╔═══╝ ██╔═══╝
███████║ ██║ █╗ ██║ ██║     ████╗   ██████  ██████
██╔══██║ ██║███╗██║ ██║     ██╔═╝       ██╗     ██╗
██║  ██║ ╚███╔███╔╝ ██████╗ ██████╗ ██████║ ██████║
╚═╝  ╚═╝  ╚══╝╚══╝  ╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝
version=v0.1.10, commit=3673fbae7de02216de74841699fd2c3c75a3c799, build-date=2018-04-13T09:34:28+02:00, build-arch=386, build-os=linux, build-for=targz
taraspos commented 6 years ago

Can confirm, I'm using it from Alpine image as well, here is the Dockerfile example:

FROM alpine

ENV AWLESS_VERSION 0.1.10
ENV AWLESS_PACKAGE awless-linux-386.tar.gz

ADD https://github.com/wallix/awless/releases/download/v$AWLESS_VERSION/$AWLESS_PACKAGE /usr/local/bin
RUN tar -xv -C /usr/local/bin/ -f /usr/local/bin/$AWLESS_PACKAGE \
 && rm -rf /usr/local/bin/$AWLESS_PACKAGE
nexeck commented 6 years ago

Ah, thats the trick, the linux-amd64 version is not working in alpine.

Thank you for your hints.