drewkerrigan / docker-basho-bench

1 stars 3 forks source link

Breaks on latest basho_bench #1

Open CHI-Ron opened 9 years ago

CHI-Ron commented 9 years ago

I built this on my mint laptop running docker 1.5.0 and got the following error. Dmitry is here with us and will comment further.

$ sudo docker build .
Sending build context to Docker daemon 3.072 kB
Sending build context to Docker daemon 
Step 0 : L# 
# Skipping unknown instruction L#
 ---> 
Step 1 : FROM phusion/baseimage:0.9.9
 ---> 745d3ac92697
Step 2 : MAINTAINER Drew Kerrigan dkerrigan@basho.com
 ---> Using cache
 ---> 42a08c06fb82
Step 3 : RUN sed -i.bak 's/main$/main universe/' /etc/apt/sources.list
 ---> Using cache
 ---> 2ffc62419244
Step 4 : RUN apt-get update -qq && apt-get install -y git && apt-get install -y curl &&     apt-get install -y build-essential && apt-get update -qq &&     apt-get install -y erlang && apt-get update -qq
 ---> Using cache
 ---> 395ebd365e90
Step 5 : RUN echo "deb http://cran.cnr.berkeley.edu//bin/linux/ubuntu precise/" | sudo tee -a /etc/apt/sources.list
 ---> Using cache
 ---> a70ce662a35f
Step 6 : RUN apt-get update -qq && apt-get install -y --force-yes r-base && apt-get update -qq
 ---> Using cache
 ---> d4425de1e6c7
Step 7 : RUN git clone git://github.com/basho/basho_bench.git /opt/basho_bench
 ---> Using cache
 ---> 2f1cda2a3f5a
Step 8 : RUN cd /opt/basho_bench && make all
 ---> Running in bcb1dbd7b812
./rebar get-deps

=ERROR REPORT==== 11-Mar-2015::21:54:55 ===
Loading of /opt/basho_bench/rebar/rebar/ebin/rebar.beam failed: badfile
escript: exception error: undefined function rebar:main/1
  in function  escript:run/2
  in call from escript:start/1
  in call from init:start_it/1
  in call from init:start_em/1

=ERROR REPORT==== 11-Mar-2015::21:54:55 ===
beam/beam_load.c(1365): Error loading module rebar:
  use of opcode 153; this emulator supports only up to 152

make: *** [deps] Error 127
INFO[0001] The command [/bin/sh -c cd /opt/basho_bench && make all] returned a non-zero code: 2 
dmitrizagidulin commented 9 years ago

Hey Drew. We turned to your Docker script after running into trouble building basho_bench from source on Red Hat 7. The error that we encountered (and I suspect it's the same error that the Docker script is running into) was:

$ ./rebar get-deps
Uncaught error in rebar_core: {'EXIT',
                               {undef,
                                [{crypto,start,[],[]},
                                 {rebar,run_aux,2,
                                  [{file,"src/rebar.erl"},{line,196}]},
                                 {rebar,main,1,
                                  [{file,"src/rebar.erl"},{line,58}]},
                                 {escript,run,2,
                                  [{file,"escript.erl"},{line,747}]},
                                 {escript,start,1,
                                  [{file,"escript.erl"},{line,277}]},
                                 {init,start_it,1,[]},
                                 {init,start_em,1,[]}]}}

After some investigation, I came across Bryan's mailing list post: http://lists.basho.com/pipermail/riak-users_lists.basho.com/2014-May/015285.html

So, two questions: 1) Does the build script work for you still, against the latest basho_bench? and 2) If not, do you think it's the openssl issue above?

dmitrizagidulin commented 9 years ago

Though, hmmm, looking at the Docker error

Error loading module rebar:
  use of opcode 153; this emulator supports only up to 152

more closely, it looks more to be like an Erlang-rebar mismatch, like here: https://github.com/elixir-lang/elixir/issues/1064

drewkerrigan commented 9 years ago

The crypto issue is definitely just the missing openssl-dev package, I've had that problem before. I haven't tried to run this docker package in quite some time, so I couldn't comment on its current state.