-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from esl/distribute-modules-as-binaries
Distribute modules as binaries This PR introduces the following changes: - Cleanup of the integration testing - Since we moved REST API out of this repo, all the leftovers are removed - Extraction of amoc_code_server functionality from of amoc_scenario module: - now amoc_scenario is just a wrapper for behavior. - and amoc_code_server is responsible for modules' analysis and distribution of uploaded modules. - Modules' distribution is now based on binary representation, so it's language agnostic and can be reused for elixir. - comparison of the modules is based on MD5 - amoc_code_server_SUITE covers all the basic use cases and demonstrates some of the corner cases that are covered in amoc_code_server
- Loading branch information
Showing
41 changed files
with
1,438 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
ARG otp_vsn=25.3 | ||
FROM erlang:${otp_vsn}-slim AS builder | ||
FROM erlang:${otp_vsn} | ||
MAINTAINER Erlang Solutions <[email protected]> | ||
|
||
WORKDIR /amoc_build | ||
WORKDIR /amoc | ||
COPY ./ ./ | ||
|
||
COPY ./rebar.config ./rebar.lock ./ | ||
RUN rebar3 deps && rebar3 compile -d | ||
RUN make clean | ||
RUN make rel | ||
|
||
COPY ./integration_test integration_test | ||
COPY ./scenarios scenarios | ||
COPY ./priv priv | ||
COPY ./rel rel | ||
COPY ./src src | ||
|
||
RUN rebar3 as demo release | ||
|
||
ENV PATH "/amoc_build/_build/demo/rel/amoc/bin:${PATH}" | ||
ENV PATH "/amoc/_build/default/rel/amoc/bin:${PATH}" | ||
|
||
CMD ["amoc", "foreground"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.