Skip to content

Commit

Permalink
run on latest version on elixir, starting from official docker image (#…
Browse files Browse the repository at this point in the history
…14)

* run on latest version on elixir, starting from official docker image

* run on elixir 1.5, in and out of mssqlex docker container.
  • Loading branch information
Steven Blowers committed Aug 6, 2017
1 parent 7d20673 commit 7af21e5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sudo: required

language: elixir
elixir:
- 1.4
- 1.5

services:
- docker
Expand Down
21 changes: 18 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
FROM raniemi/elixir:1.4.0_19.2_ubuntu_xenial
FROM elixir:1.5

# --- Set Locale to en_US.UTF-8 ---

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -y locales

RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
dpkg-reconfigure locales && \
/usr/sbin/update-locale LANG=en_US.UTF-8
ENV LC_ALL en_US.UTF-8

# --- MSSQL ODBC INSTALL ---

RUN apt-get update && apt-get install -y --no-install-recommends apt-transport-https

RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee -a /etc/apt/sources.list.d/mssql-release.list \
&& curl https://packages.microsoft.com/config/debian/8/prod.list | tee -a /etc/apt/sources.list.d/mssql-release.list \
&& apt-get update \
&& ACCEPT_EULA=Y apt-get install msodbcsql -y \
&& apt-get install unixodbc-dev -y
Expand All @@ -18,4 +30,7 @@ RUN mix local.hex --force && \
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN mix do deps.get
RUN chmod +x /usr/src/app/wait-for-it.sh

# --- Be able to run wait for it script ---

RUN chmod +x /usr/src/app/wait-for-it.sh

0 comments on commit 7af21e5

Please sign in to comment.