diff options
author | kballou <kballou@devnulllabs.io> | 2017-05-02 18:13:18 -0600 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2017-05-23 09:35:59 -0600 |
commit | 5b1f7286d1bd7bbb7b8b70e1d29c419c92be6c21 (patch) | |
tree | ae8eb682cc3a46139f32298eaf43f1f1eaeff68f /19 | |
parent | bf3fb4e869fc1218c00bacf9ff63c7871d479f64 (diff) | |
download | docker-erlang-5b1f7286d1bd7bbb7b8b70e1d29c419c92be6c21.tar.gz docker-erlang-5b1f7286d1bd7bbb7b8b70e1d29c419c92be6c21.tar.xz |
Add initial docker files
Diffstat (limited to '19')
-rw-r--r-- | 19/Dockerfile | 51 | ||||
-rw-r--r-- | 19/alpine/Dockerfile | 51 | ||||
-rw-r--r-- | 19/alpine/development/Dockerfile | 51 | ||||
-rw-r--r-- | 19/alpine/development/Makefile | 5 | ||||
-rw-r--r-- | 19/alpine/onbuild/Dockerfile | 51 | ||||
-rw-r--r-- | 19/development/Dockerfile | 51 | ||||
-rw-r--r-- | 19/development/Makefile | 5 | ||||
-rw-r--r-- | 19/onbuild/Dockerfile | 51 | ||||
-rw-r--r-- | 19/options | 6 |
9 files changed, 322 insertions, 0 deletions
diff --git a/19/Dockerfile b/19/Dockerfile new file mode 100644 index 0000000..fdf168a --- /dev/null +++ b/19/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="19.0" +ENV REBAR_VERSION="2.6.2" +ENV REBAR3_VERSION="3.2.0" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-19.0.tar.gz" -o otp-src.tar.gz \ + && echo "107b629aa7aea1bf76df0197629a50ce4fea61143ebb0e9a1b633b1fbaf9beb7 otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "ed2a49300f2f8ae7c95284e53e95dd85430952d2843ce224a17db2b312964400 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "78ad27372eea6e215790e161ae46f451c107a58a019cc7fb4551487903516455 rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/19/alpine/Dockerfile b/19/alpine/Dockerfile new file mode 100644 index 0000000..fdf168a --- /dev/null +++ b/19/alpine/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="19.0" +ENV REBAR_VERSION="2.6.2" +ENV REBAR3_VERSION="3.2.0" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-19.0.tar.gz" -o otp-src.tar.gz \ + && echo "107b629aa7aea1bf76df0197629a50ce4fea61143ebb0e9a1b633b1fbaf9beb7 otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "ed2a49300f2f8ae7c95284e53e95dd85430952d2843ce224a17db2b312964400 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "78ad27372eea6e215790e161ae46f451c107a58a019cc7fb4551487903516455 rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/19/alpine/development/Dockerfile b/19/alpine/development/Dockerfile new file mode 100644 index 0000000..fdf168a --- /dev/null +++ b/19/alpine/development/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="19.0" +ENV REBAR_VERSION="2.6.2" +ENV REBAR3_VERSION="3.2.0" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-19.0.tar.gz" -o otp-src.tar.gz \ + && echo "107b629aa7aea1bf76df0197629a50ce4fea61143ebb0e9a1b633b1fbaf9beb7 otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "ed2a49300f2f8ae7c95284e53e95dd85430952d2843ce224a17db2b312964400 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "78ad27372eea6e215790e161ae46f451c107a58a019cc7fb4551487903516455 rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/19/alpine/development/Makefile b/19/alpine/development/Makefile new file mode 100644 index 0000000..d63b016 --- /dev/null +++ b/19/alpine/development/Makefile @@ -0,0 +1,5 @@ +TAG=kennyballou/erlang-alpine-dev:19 +.PHONY: build + +build: Dockerfile + @docker build -t ${TAG} . diff --git a/19/alpine/onbuild/Dockerfile b/19/alpine/onbuild/Dockerfile new file mode 100644 index 0000000..fdf168a --- /dev/null +++ b/19/alpine/onbuild/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="19.0" +ENV REBAR_VERSION="2.6.2" +ENV REBAR3_VERSION="3.2.0" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-19.0.tar.gz" -o otp-src.tar.gz \ + && echo "107b629aa7aea1bf76df0197629a50ce4fea61143ebb0e9a1b633b1fbaf9beb7 otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "ed2a49300f2f8ae7c95284e53e95dd85430952d2843ce224a17db2b312964400 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "78ad27372eea6e215790e161ae46f451c107a58a019cc7fb4551487903516455 rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/19/development/Dockerfile b/19/development/Dockerfile new file mode 100644 index 0000000..fdf168a --- /dev/null +++ b/19/development/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="19.0" +ENV REBAR_VERSION="2.6.2" +ENV REBAR3_VERSION="3.2.0" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-19.0.tar.gz" -o otp-src.tar.gz \ + && echo "107b629aa7aea1bf76df0197629a50ce4fea61143ebb0e9a1b633b1fbaf9beb7 otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "ed2a49300f2f8ae7c95284e53e95dd85430952d2843ce224a17db2b312964400 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "78ad27372eea6e215790e161ae46f451c107a58a019cc7fb4551487903516455 rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/19/development/Makefile b/19/development/Makefile new file mode 100644 index 0000000..3f3850a --- /dev/null +++ b/19/development/Makefile @@ -0,0 +1,5 @@ +TAG=kennyballou/erlang-dev:19 +.PHONY: build + +build: Dockerfile + @docker build -t ${TAG} . diff --git a/19/onbuild/Dockerfile b/19/onbuild/Dockerfile new file mode 100644 index 0000000..fdf168a --- /dev/null +++ b/19/onbuild/Dockerfile @@ -0,0 +1,51 @@ +# DOCKER-VERSION 1.9.1 +FROM centos:7 +MAINTAINER kballou@devnulllabs.io + +ENV LANG="en_US.UTF-8" +ENV OTP_VERSION="19.0" +ENV REBAR_VERSION="2.6.2" +ENV REBAR3_VERSION="3.2.0" + +RUN set -xe \ + && yum -y groups install "Development Tools" \ + && yum -y install ncurses \ + ncurses-devel \ + unixODBC \ + unixODBC-devel \ + openssl-devel \ + && curl -fSL "https://github.com/erlang/otp/archive/OTP-19.0.tar.gz" -o otp-src.tar.gz \ + && echo "107b629aa7aea1bf76df0197629a50ce4fea61143ebb0e9a1b633b1fbaf9beb7 otp-src.tar.gz" | sha256sum -c - \ + && mkdir -p /usr/src/otp-src \ + && tar -zxf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \ + && rm otp-src.tar.gz \ + && cd /usr/src/otp-src \ + && ./otp_build autoconf \ + && ./configure \ + && make -j 4 \ + && make install \ + && find /usr/local -name examples | xargs rm -rf \ + && cd /usr/src \ + && rm -rf /usr/src/otp-src \ + && mkdir -p /usr/src/rebar-src \ + && curl -fSL "https://github.com/rebar/rebar/archive/${REBAR_VERSION##*@}.tar.gz" -o rebar-src.tar.gz \ + && echo "ed2a49300f2f8ae7c95284e53e95dd85430952d2843ce224a17db2b312964400 rebar-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ + && rm rebar-src.tar.gz \ + && cd /usr/src/rebar-src \ + && ./bootstrap \ + && install -v ./rebar /usr/local/bin \ + && cd /usr/src \ + && rm -rf /usr/src/rebar-src \ + && mkdir -p /usr/src/rebar3-src \ + && curl -fSL "https://github.com/erlang/rebar3/archive/${REBAR3_VERSION##*@}.tar.gz" -o rebar3-src.tar.gz \ + && echo "78ad27372eea6e215790e161ae46f451c107a58a019cc7fb4551487903516455 rebar3-src.tar.gz" | sha256sum -c - \ + && tar -zxf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ + && rm rebar3-src.tar.gz \ + && cd /usr/src/rebar3-src \ + && HOME=/home/kb/workspace/docker-erlang ./bootstrap \ + && install -v ./rebar3 /usr/local/bin \ + && rm -rf /usr/src/rebar3-src \ + && yum -y groups erase "Development Tools" + +CMD ["erl"] diff --git a/19/options b/19/options new file mode 100644 index 0000000..04a634d --- /dev/null +++ b/19/options @@ -0,0 +1,6 @@ +OTP_VERSION=19.0 +OTP_SRC_SUM=107b629aa7aea1bf76df0197629a50ce4fea61143ebb0e9a1b633b1fbaf9beb7 +REBAR_VERSION=2.6.2 +REBAR_SRC_SUM=ed2a49300f2f8ae7c95284e53e95dd85430952d2843ce224a17db2b312964400 +REBAR3_VERSION=3.2.0 +REBAR3_SRC_SUM=78ad27372eea6e215790e161ae46f451c107a58a019cc7fb4551487903516455 |