-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to improve testability and isolation
- Enhance functional core by module splits (focus on data transformation) and simplier and much more tests - Leverage contexts for a better single responsability principle - Use field projection to improve database queries and data loading during the startup to fill memory tables - Improve ETS tables for faster queries in memory - Define Governance Pools - Use Docker for Code Proposal Integration to bring isolation and security
- Loading branch information
Samuel Manzanera
committed
Nov 5, 2020
1 parent
7289242
commit c156aa0
Showing
375 changed files
with
22,210 additions
and
14,951 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
IEx.configure(inspect: [limit: :infinity]) | ||
|
||
alias Uniris.Crypto | ||
alias Uniris.DB | ||
alias Uniris.P2P | ||
alias Uniris.P2P.Node | ||
alias Uniris.SharedSecrets | ||
alias Uniris.Account | ||
alias Uniris.Election | ||
alias Uniris.Governance | ||
alias Uniris.Contracts | ||
alias Uniris.TransactionChain | ||
alias Uniris.TransactionChain.Transaction | ||
alias Uniris.TransactionChain.TransactionData | ||
alias Uniris.BeaconChain |
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,17 +1,45 @@ | ||
FROM bitwalker/alpine-elixir:latest | ||
|
||
RUN apk add --no-cache --update openssl wget build-base git npm python3 | ||
# Install system requirements | ||
RUN apk add --no-cache --update | ||
openssl \ | ||
build-base \ | ||
gcc \ | ||
git \ | ||
npm \ | ||
python3 \ | ||
wget | ||
|
||
# Install Libsodium | ||
RUN wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz && \ | ||
mkdir /opt/libsodium && tar zxvf LATEST.tar.gz -C /opt/libsodium && \ | ||
cd /opt/libsodium/libsodium-stable && ./configure && \ | ||
make && make install | ||
mkdir /opt/libsodium && \ | ||
tar zxvf LATEST.tar.gz -C /opt/libsodium && \ | ||
cd /opt/libsodium/libsodium-stable && \ | ||
./configure && \ | ||
make && \ | ||
make install | ||
|
||
WORKDIR /opt/app | ||
|
||
ENV MIX_ENV prod | ||
|
||
COPY . . | ||
|
||
# Will install the application at /opt/build | ||
RUN ./release.sh | ||
# Install dependencies | ||
# Cache Elixir deps | ||
RUN mix deps.get --only prod | ||
RUN mix deps.compile | ||
|
||
WORKDIR /opt/app/assets | ||
|
||
# Cache Node deps | ||
RUN npm install | ||
|
||
# Compile JavaScript | ||
RUN npm run deploy | ||
|
||
WORKDIR /opt/app | ||
|
||
CMD ["/bin/bash"] | ||
# Prepare the image | ||
RUN mix compile | ||
RUN mix phx.digest |
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
Oops, something went wrong.