Skip to content

Commit

Permalink
try gitpod (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
hewigovens authored Jan 11, 2021
1 parent f162f0f commit 1dfd9fa
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ xcode/
cmake-build-debug/
.cquery_cache/
.cxx/
.cache/

# Dependencies
node_modules
Expand Down
14 changes: 14 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
image:
file: gitpod.Dockerfile

tasks:
- name: Welcome message
init: echo "Please run ./bootstrap.sh"

vscode:
extensions:
- llvm-vs-code-extensions.vscode-clangd
- ms-vscode.cmake-tools
- coenraads.bracket-pair-colorizer-2
- notskm.clang-tidy
- zxh404.vscode-proto3
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ RUN apt-get update \
libtool autoconf pkg-config \
ninja-build \
ruby-full \
clang-9 \
llvm-9 \
clang-10 \
llvm-10 \
libc++-dev libc++abi-dev \
cmake \
libboost1.70-dev \
libboost1.74-dev \
ccache \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

ENV CC=/usr/bin/clang-9
ENV CXX=/usr/bin/clang++-9
ENV CC=/usr/bin/clang-10
ENV CXX=/usr/bin/clang++-10

# ↑ Setup build environment (could be a base image)
# ↑ Setup build environment
# ↓ Build and compile wallet core

RUN git clone https://github.com/trustwallet/wallet-core.git
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Swift for iOS and Java for Android.
![Docker CI](https://github.com/trustwallet/wallet-core/workflows/Docker%20CI/badge.svg)
![Typescript CI](https://github.com/trustwallet/wallet-core/workflows/Typescript%20CI/badge.svg)

[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/trustwallet/wallet-core)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/82e76f6ea4ba4f0d9029e8846c04c093)](https://www.codacy.com/app/hewigovens/wallet-core?utm_source=github.com&utm_medium=referral&utm_content=TrustWallet/wallet-core&utm_campaign=Badge_Grade)
![Codecov](https://codecov.io/gh/TrustWallet/wallet-core/branch/master/graph/badge.svg)
![GitHub](https://img.shields.io/github/license/TrustWallet/wallet-core.svg)
Expand Down
42 changes: 42 additions & 0 deletions gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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-10 \
llvm-10 \
libc++-dev libc++abi-dev \
cmake \
libboost1.74-dev \
ccache \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

ENV CC=/usr/bin/clang-10
ENV CXX=/usr/bin/clang++-10

RUN git clone https://github.com/trustwallet/wallet-core.git
WORKDIR /wallet-core

CMD ["/bin/bash"]

0 comments on commit 1dfd9fa

Please sign in to comment.