diff --git a/Dockerfile b/Dockerfile index dac006b0..e8cf9423 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ MAINTAINER Erlang Solutions RUN useradd -ms /bin/bash amoc -COPY --from=amoc-build /amoc_build/_build/prod/rel/amoc/ /home/amoc/amoc/ +COPY --from=amoc-build /amoc_build/_build/demo/rel/amoc/ /home/amoc/amoc/ # It seems hub.docker.com does not support --chown param to COPY directive RUN chown -R amoc:amoc /home/amoc/amoc diff --git a/Makefile b/Makefile index 77fa2988..2180ff7f 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,10 @@ endif all: rel rel: rebar3 - ./rebar3 as prod tar + ./rebar3 as demo tar compile: - $(REBAR) as prod compile + $(REBAR) as demo compile clean: $(REBAR) clean @@ -45,10 +45,10 @@ rebar3: chmod u+x rebar3 dialyzer: - $(REBAR) as prod dialyzer + $(REBAR) as demo dialyzer xref: - $(REBAR) as prod xref + $(REBAR) as demo xref console: @echo "tests can be executed manually using ct:run/1 function:\n" \ diff --git a/doc/local-run.md b/doc/local-run.md index 081dbd9b..4fcd277e 100644 --- a/doc/local-run.md +++ b/doc/local-run.md @@ -2,7 +2,7 @@ Everything you need to do is to create the release. To achieve that run: `make rel`. Now you are ready to test our scenario locally with one Amoc node; -to start the node run `_build/prod/rel/amoc/bin/amoc console`. +to start the node run `_build/demo/rel/amoc/bin/amoc console`. Start `my_scenario` spawning 10 amoc users with IDs from range (1,10) inclusive. ```erlang diff --git a/rebar.config b/rebar.config index 0d722195..7ebec03c 100644 --- a/rebar.config +++ b/rebar.config @@ -19,7 +19,7 @@ ]} ]}, {elvis, [{plugins, [{rebar3_lint, "0.1.11"}]}]}, - {prod, [ + {demo, [ {erl_opts, [{src_dirs, ["src", "scenarios"]}]}, {relx, [ {release, {amoc, git}, [amoc, runtime_tools]},