Skip to content

Commit

Permalink
rebar 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Demian Sciessere authored and Demian Sciessere committed May 30, 2016
1 parent b5f0d82 commit c0d8de9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ RUN locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV MIX_ENV prod

COPY build/rebar /usr/local/bin/.
COPY build/install_erlang.sh .
RUN ./install_erlang.sh

Expand All @@ -29,5 +31,7 @@ WORKDIR /myapp
COPY . /myapp

RUN mix deps.get
RUN MIX_ENV=prod mix compile
#RUN deps.compile
RUN mix release
COPY build/credo.monit.conf /etc/monit/conf.d/credo.conf
17 changes: 11 additions & 6 deletions build/install_erlang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@ cd otp_src_18.2.1
make
make install


## INSTALL REBAR
cd /tmp
git clone git://github.com/rebar/rebar.git
cd rebar
./bootstrap
mv rebar /usr/local/bin/
# cd /tmp
# git clone git://github.com/rebar/rebar.git
# cd rebar
# ./bootstrap
# mv rebar /usr/local/bin/
chmod +x /usr/local/bin/rebar

## INSTALL REBAR3
cd /tmp
wget https://github.com/erlang/rebar3/releases/download/3.1.1/rebar3
cp rebar3 /usr/local/bin/
chmod +x /usr/local/bin/rebar3


## INSTALL ELIXIR
cd /tmp
Expand Down
Binary file added build/rebar
Binary file not shown.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
db:
image: postgres:9.0.22
image: postgres:9.5.1
container_name: credo_db
environment:
POSTGRES_DB: credo_server_stg
Expand Down

0 comments on commit c0d8de9

Please sign in to comment.