-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update clang / boost version in Dockerfile (#972)
* Create docker.yml * update docker image: clang-9 boost 1.70 swift-protobuf 1.9.0 * Lint Dockerfile * cleanup
- Loading branch information
1 parent
abe125b
commit fc01315
Showing
6 changed files
with
90 additions
and
93 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Docker CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- Dockerfile | ||
- tools/install-dependencies | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- Dockerfile | ||
- tools/install-dependencies | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Lint Dockerfile | ||
run: | | ||
curl -L https://github.com/hadolint/hadolint/releases/download/v1.17.6/hadolint-Linux-x86_64 -o hadolint && chmod +x hadolint | ||
./hadolint Dockerfile | ||
- name: Build Dockerfile | ||
uses: docker/[email protected] | ||
with: | ||
repository: trustwallet/wallet-core | ||
tags: latest | ||
push: false |
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,3 @@ | ||
ignored: | ||
- DL3008 | ||
- DL3015 |
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,52 @@ | ||
FROM ubuntu:18.04 | ||
|
||
# Install some basics | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
wget \ | ||
curl \ | ||
git \ | ||
vim \ | ||
unzip \ | ||
xz-utils \ | ||
software-properties-common \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Add latest cmake/boost | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - \ | ||
&& apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' \ | ||
&& apt-add-repository -y ppa:mhier/libboost-latest | ||
|
||
# Install required packages for dev | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
build-essential \ | ||
libtool autoconf pkg-config \ | ||
ninja-build \ | ||
ruby-full \ | ||
clang-9 \ | ||
llvm-9 \ | ||
libc++-dev libc++abi-dev \ | ||
cmake \ | ||
libboost1.70-dev \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
ENV CC=/usr/bin/clang-9 | ||
ENV CXX=/usr/bin/clang++-9 | ||
|
||
# ↑ Setup build environment (could be a base image) | ||
# ↓ Build and compile wallet core | ||
|
||
RUN git clone https://github.com/trustwallet/wallet-core.git | ||
WORKDIR /wallet-core | ||
|
||
# Install dependencies | ||
RUN tools/install-dependencies | ||
|
||
# Build: generate, cmake, and make | ||
RUN tools/generate-files \ | ||
&& cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug \ | ||
&& make -Cbuild -j12 | ||
|
||
CMD ["/bin/bash"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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