Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elixir v1.11.1 #145

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ services: docker

env:
- DIR=master
- DIR=1.11
- DIR=1.11 VARIANT=slim
- DIR=1.11 VARIANT=alpine
- DIR=1.10
- DIR=1.10 VARIANT=slim
- DIR=1.10 VARIANT=alpine
Expand Down
18 changes: 18 additions & 0 deletions 1.11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM erlang:23

# elixir expects utf8.
ENV ELIXIR_VERSION="v1.11.1" \
LANG=C.UTF-8

RUN set -xe \
&& ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" \
&& ELIXIR_DOWNLOAD_SHA256="724774eb685b476a42c838ac8247787439913667fe023d2f1ed9c933d08dc57c" \
&& curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL \
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/local/src/elixir \
&& tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz \
&& rm elixir-src.tar.gz \
&& cd /usr/local/src/elixir \
&& make install clean

CMD ["iex"]
25 changes: 25 additions & 0 deletions 1.11/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM erlang:23-alpine

# elixir expects utf8.
ENV ELIXIR_VERSION="v1.11.1" \
LANG=C.UTF-8

RUN set -xe \
&& ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" \
&& ELIXIR_DOWNLOAD_SHA256="724774eb685b476a42c838ac8247787439913667fe023d2f1ed9c933d08dc57c" \
&& buildDeps=' \
ca-certificates \
curl \
make \
' \
&& apk add --no-cache --virtual .build-deps $buildDeps \
&& curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL \
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/local/src/elixir \
&& tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz \
&& rm elixir-src.tar.gz \
&& cd /usr/local/src/elixir \
&& make install clean \
&& apk del .build-deps

CMD ["iex"]
27 changes: 27 additions & 0 deletions 1.11/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM erlang:23-slim

# elixir expects utf8.
ENV ELIXIR_VERSION="v1.11.1" \
LANG=C.UTF-8

RUN set -xe \
&& ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" \
&& ELIXIR_DOWNLOAD_SHA256="724774eb685b476a42c838ac8247787439913667fe023d2f1ed9c933d08dc57c" \
&& buildDeps=' \
ca-certificates \
curl \
make \
' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL \
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/local/src/elixir \
&& tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz \
&& rm elixir-src.tar.gz \
&& cd /usr/local/src/elixir \
&& make install clean \
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /var/lib/apt/lists/*

CMD ["iex"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/_/elixir.svg?style=flat-square)](https://hub.docker.com/_/elixir/)
[![Image Layers](https://images.microbadger.com/badges/image/elixir.svg)](https://microbadger.com/images/elixir "Get your own image badge on microbadger.com")

[![Build Status](https://travis-ci.org/c0b/docker-elixir.svg?branch=master)](https://travis-ci.org/c0b/docker-elixir)
[![Build Status](https://travis-ci.org/erlef/docker-elixir.svg?branch=master)](https://travis-ci.org/erlef/docker-elixir)

This is for elixir latest stable image and next -dev image.

Expand Down
8 changes: 4 additions & 4 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
set -eu

declare -a -r versions=( 1.10 1.9 1.8 1.7 1.6 1.5 1.4 )
declare -a -r versions=( 1.11 1.10 1.9 1.8 1.7 1.6 1.5 1.4 )
declare -A -r aliases=(
[1.10]='latest'
[1.11]='latest'
)

# get the most recent commit which modified any of "$@"
Expand Down Expand Up @@ -48,10 +48,10 @@ extractVersion() {
self="${BASH_SOURCE##*/}"

cat <<-EOH
# this file is generated via https://github.com/c0b/docker-elixir/blob/$(fileCommit "$self")/$self
# this file is generated via https://github.com/erlef/docker-elixir/blob/$(fileCommit "$self")/$self

Maintainers: . <c0b@users.noreply.github.com> (@c0b)
GitRepo: https://github.com/c0b/docker-elixir.git
GitRepo: https://github.com/erlef/docker-elixir.git
EOH

for version in "${versions[@]}"; do
Expand Down