Skip to content

Instantly share code, notes, and snippets.

@davisp
Last active August 13, 2019 18:16
Show Gist options
  • Save davisp/480ccab2548a79d602d6cc8e1ee16cff to your computer and use it in GitHub Desktop.
Save davisp/480ccab2548a79d602d6cc8e1ee16cff to your computer and use it in GitHub Desktop.
Build CouchDB in a docker in a fresh VM
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
docker run hello-world
docker run couchdbdev/debian-stretch-erlang-19.3.6
docker run -it couchdbdev/debian-stretch-erlang-19.3.6 /bin/bash
# Inside the docker container:
cd tmp
git clone https://github.com/apache/couchdb
cd couchdb
time ./configure --with-curl
time make check
@davisp
Copy link
Author

davisp commented Aug 12, 2019

More from Joan:

<Wohali> run this on every node:
3:49 PM <Wohali> $ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
3:49 PM <Wohali> https://github.com/multiarch/qemu-user-static
3:49 PM <Wohali> that will allow crosscompiles / CI runs to basicalyl any supported platform
3:49 PM <Wohali> ppc64le, s390x, arm, etc
3:49 PM <Wohali> the alternate approach is:
3:50 PM <Wohali> install binfmt-support qemu-user-static
3:50 PM <Wohali> the docker container does the same but with the latest qemu bins
3:50 PM <Wohali> iirc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment