alpine

How to bake credential into docker image for git?

你离开我真会死。 提交于 2019-11-28 05:51:30
问题 This is actually a question following from my previous one. I am trying to use docker to host a personal note-taking web service and want to backup data generated by the service (my notes). Currently I plan to use git to commit, pull, and push to a repository for my purpose. To do git pull and push, my docker image needs to host my credentials. What is the easiest yet safe way to achieve this? What I have done so far: I choose Alpine as the base image of the image of my service. Because I

Go-compiled binary won't run in an alpine docker container on Ubuntu host

馋奶兔 提交于 2019-11-28 04:28:47
Given a binary, compiled with Go using GOOS=linux and GOARCH=amd64 , deployed to a docker container based on alpine:3.3 , the binary will not run if the docker engine host is Ubuntu (15.10): sh: /bin/artisan: not found This same binary (compiled for the same OS and arch) will run just fine if the docker engine host is busybox (which is the base for alpine ) deployed within a VirtualBox VM on Mac OS X. This same binary will also run perfectly fine if the container is based on one of Ubuntu images. Any idea what this binary is missing? This is what I've done to reproduce (successful run in

Go-compiled binary won't run in an alpine docker container on Ubuntu host

夙愿已清 提交于 2019-11-27 19:15:53
问题 Given a binary, compiled with Go using GOOS=linux and GOARCH=amd64 , deployed to a docker container based on alpine:3.3 , the binary will not run if the docker engine host is Ubuntu (15.10): sh: /bin/artisan: not found This same binary (compiled for the same OS and arch) will run just fine if the docker engine host is busybox (which is the base for alpine ) deployed within a VirtualBox VM on Mac OS X. This same binary will also run perfectly fine if the container is based on one of Ubuntu

Is there a best practice on setting up glibc on docker alpine linux base image?

六月ゝ 毕业季﹏ 提交于 2019-11-27 12:48:28
问题 Is there a best practice on setting up glibc on docker alpine linux base image with correct paths so any spawned process can correctly reference the location of the installed libc libraries? 回答1: Yes there is, I've used a custom built glibc to install a JRE on it. You can find it here You can use wget or curl to get the code and apk to install them UPDATED commands see comments below apk --no-cache add ca-certificates wget wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand

How to use bash with an Alpine based docker image?

半世苍凉 提交于 2019-11-26 23:51:31
问题 I created a docker image from openjdk:8-jdk-alpine but when I try to execute simple commands I get the following errors: RUN bash /bin/sh: bash: not found RUN ./gradlew build env: can't execute 'bash': No such file or directory 回答1: Alpine docker image doesn't have bash installed by default. You will need to add following commands to get bash : RUN apk update && apk add bash If youre using Alpine 3.3+ then you can just do RUN apk add --no-cache bash to keep docker image size small. (Thanks to