Created
June 2, 2017 00:42
-
-
Save ityonemo/2b50d3297e499f16ef5e9cdfd7e75386 to your computer and use it in GitHub Desktop.
erlang def
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BootStrap: debootstrap | |
OSVersion: xenial | |
MirrorURL: http://us.archive.ubuntu.com/ubuntu | |
Include: bash python | |
%post | |
############################################################################## | |
## general system stuff | |
# respect license requirements | |
[ -x /LICENSE ] && rm -rf /LICENSE | |
export ctnlicense=/LICENSE | |
mkdir $ctnlicense | |
#install all software required by this build. | |
sed -i 's/main/main restricted universe/g' /etc/apt/sources.list | |
apt-get update | |
apt-get -y install sudo | |
############################################################################## | |
## general build tools | |
apt-get -y install gcc g++ gfortran | |
apt-get -y install make | |
apt-get -y install cmake | |
apt-get -y install autoconf | |
#these tend to be big, so free up some space in the container. | |
apt-get clean | |
############################################################################## | |
apt-get -y install git | |
apt-get -y install vim | |
apt-get -y install curl hostname | |
apt-get -y install wget | |
apt-get -y install unzip | |
apt-get -y install tar | |
apt-get -y install gzip | |
apt-get -y install bc | |
apt-get -y install less | |
apt-get -y install util-linux | |
apt-get -y install strace | |
apt-get -y install libncurses-dev | |
apt-get -y install libssl-dev | |
apt-get -y install unixodbc-dev | |
apt-get clean | |
apt-get update | |
############################################################################## | |
# first, make erlang. | |
mkdir -p /var/buildzone | |
cd /var/buildzone | |
git clone https://github.com/erlang/otp.git | |
cd otp | |
./otp_build autoconf | |
./configure | |
#make | |
#make install | |
#rm -r /var/buildzone | |
%runscript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment