Skip to content

Instantly share code, notes, and snippets.

@pjvds
Last active August 29, 2015 13:57
Show Gist options
  • Save pjvds/9429965 to your computer and use it in GitHub Desktop.
Save pjvds/9429965 to your computer and use it in GitHub Desktop.
Docker file with single run to prevent unnecessary image creation.
FROM ubuntu:12.04
RUN \
apt-get update -qq; \
apt-get install build-essential dh-autoreconf git -y -qq; \
echo "* hard nofile 200000" >> "/etc/security/limits.conf"; \
echo "* soft nofile 200000" >> "/etc/security/limits.conf"; \
echo "root hard nofile 200000" >> "/etc/security/limits.conf"; \
echo "root soft nofile 200000" >> "/etc/security/limits.conf"; \
cd /tmp; \
git clone https://github.com/nanomsg/nanomsg.git; \
cd /tmp/nanomsg; \
./autogen.sh; \
./configure; \
make; \
make check; \
make install; \
rm -rf /tmp/nanomsg; \
ldconfig; \
apt-get install wget -y -qq; \
cd /tmp; \
wget https://foundationdb.com/downloads/I_accept_the_FoundationDB_Community_License_Agreement/2.0.0/foundationdb-clients_2.0.0-1_amd64.deb; \
dpkg -i foundationdb-clients_2.0.0-1_amd64.deb; \
rm foundationdb-clients_2.0.0-1_amd64.deb;
ADD fdb.cluster /etc/foundationdb/fdb.cluster;
ADD lxclo.conf /etc/init/lxclo.conf;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment