-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker and Functional Travis-CI configuration
- Loading branch information
1 parent
179c020
commit 9b79b31
Showing
5 changed files
with
76 additions
and
16 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,16 +1,27 @@ | ||
os: linux | ||
dist: focal | ||
language: erlang | ||
addons: | ||
apt: | ||
packages: | ||
- sqlite3 | ||
install: | ||
- epmd -daemon | ||
|
||
otp_release: | ||
- 22.2 | ||
# blocklist | ||
branches: | ||
except: | ||
- master | ||
# AR UT | ||
script: | ||
- ./bin/test | ||
- 23.0 | ||
|
||
jobs: | ||
include: | ||
- name: arweave-docker | ||
services: | ||
- docker | ||
script: | ||
- sudo apt-get update | ||
- sudo apt-get install apt-utils build-essential g++ clang gcc -y | ||
- docker build -t arweave . | ||
|
||
- name: arweave-source | ||
script: | ||
- sudo apt-get update | ||
- sudo apt-get install apt-utils build-essential g++ clang gcc -y | ||
- sudo apt-get install erlang-dev -y | ||
- sudo apt-get cmake make -y | ||
- sudo apt-get libsqlite3-dev -y | ||
- git submodule init | ||
- git submodule update | ||
- ./rebar3 as prod tar |
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,26 @@ | ||
FROM erlang:23.0 | ||
|
||
LABEL maintainer="Arweave Team <hello@arweave.org>" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
||
RUN apt-get update | ||
RUN apt-get install apt-utils -y | ||
RUN apt-get install build-essential -y | ||
RUN apt-get install g++ clang gcc -y | ||
RUN apt-get install git -y | ||
RUN apt-get install cmake -y | ||
RUN apt-get install make -y | ||
RUN apt-get install libsqlite3-dev -y | ||
RUN apt-get install erlang-dev -y | ||
|
||
RUN git submodule init | ||
RUN git submodule update | ||
|
||
RUN ./rebar3 as prod tar | ||
RUN ulimit -n 10240 | ||
|
||
CMD ["/bin/bash"] |
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