alpine-linux
Docker alpine image’s basic commands are not working
The rc-update tool is a part of the openrc package which is not included in the base image. apk add openrc
docker can’t build because of alpine error
Build docker with flag “–network host” solved the issue. Here is the link.
How to install Go in alpine linux
I just copied it over using multi stage builds, seems to be ok so far FROM XXX COPY –from=golang:1.13-alpine /usr/local/go/ /usr/local/go/ ENV PATH=”/usr/local/go/bin:${PATH}”
Cannot “pip install cryptography” in Docker Alpine Linux 3.3 with OpenSSL 1.0.2g and Python 2.7
For those who are still experiencing problems installing cryptography==2.1.4 in Alpine 3.7 like this: writing manifest file ‘src/cryptography.egg-info/SOURCES.txt’ running build_ext generating cffi module ‘build/temp.linux-x86_64-2.7/_padding.c’ creating build/temp.linux-x86_64-2.7 generating cffi module ‘build/temp.linux-x86_64-2.7/_constant_time.c’ generating cffi module ‘build/temp.linux-x86_64-2.7/_openssl.c’ building ‘_openssl’ extension creating build/temp.linux-x86_64-2.7/build creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7 gcc -fno-strict-aliasing -Os -fomit-frame-pointer -g -DNDEBUG -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c … Read more
Getting apt-get on an alpine container
Using multiple package systems is usually a very bad idea, for many reasons. Packages are likely to collide and break and you’ll end up with much greater mess than you’ve started with. See this excellent answer for more detail: Is there a pitfall of using multiple package managers? A more feasible approach would be troubleshooting … Read more
How to add trusted root CA to Docker alpine
Append your self-signed cert to /etc/ssl/certs/ca-certificates.crt manually. Assuming you have the self-signed certificate in a file in your build directory called my-cert.pem: FROM alpine:latest COPY my-cert.pem /usr/local/share/ca-certificates/my-cert.crt RUN cat /usr/local/share/ca-certificates/my-cert.crt >> /etc/ssl/certs/ca-certificates.crt && \ apk –no-cache add \ curl Note: When you’re using update-ca-certificates, you need to place your cert file into /usr/local/share/ca-certificates/ first. Otherwise … Read more
Installing numpy on Docker Alpine
I’ve been having a bit of trouble with this myself and, long story short, I would encourage you to ask if it’s really worth the hassle. Numpy is enormous when you start adding things to the stack like pandas, gpus, and scipy so the benefit of building it on alpine is limited, the savings over … Read more
How to get /etc/profile to run automatically in Alpine / Docker
The default shell in Alpine Linux is ash. Ash will only read the /etc/profile and ~/.profile files if it is started as a login shell sh -l. To force Ash to source the /etc/profile or any other script you want upon its invocation as a non login shell, you need to setup an environment variable … Read more