blob: 56cabfce5a1b9f46cad3cec9e3f73d5fb6b11dac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
FROM erlang:21
MAINTAINER tommy at research dot eh tee tee dot com
ENV TERM=xterm
#copy files into repo
ADD src /tmp/src
ADD test /tmp/test
ADD rebar.config /tmp
ADD config /tmp/config
WORKDIR /tmp
#make sure there is no leftover release
RUN rm -rf _build/
#build
RUN rebar3 upgrade
RUN rebar3 release
#fail the docker build if unit tests fail
RUN rebar3 eunit
#set the broker test type so the integration test can be run inside Docker
ENV BROKER_TEST_TYPE=DOCKER
#run
EXPOSE 7777
#see https://github.com/erlang/rebar3/issues/1593
ENTRYPOINT ["./_build/default/rel/cdapbroker/bin/cdapbroker"]
CMD ["foreground"]
|