-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Docker in the build to fix #534.
- Loading branch information
David Braun
authored and
David Braun
committed
Mar 27, 2018
1 parent
7c80ca7
commit d709885
Showing
11 changed files
with
113 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ module.exports = { | |
}, | ||
env: { | ||
browser: true, | ||
jest: true, | ||
node: true | ||
}, | ||
extends: 'standard', | ||
|
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,2 @@ | ||
# Use Unix line endings for text files because we're using Docker. | ||
* text eol=lf |
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,31 @@ | ||
FROM node:9.4.0 | ||
|
||
# Install Wine so that we can build for the 'win32' platform. | ||
# https://wiki.debian.org/Wine#Installation_on_Debian_Jessie_and_newer | ||
RUN dpkg --add-architecture i386 \ | ||
&& apt-get update \ | ||
&& apt-get --yes install \ | ||
wine \ | ||
wine32 \ | ||
libwine | ||
|
||
|
||
# Download Gaia. | ||
|
||
# Use v0.5.0 by default. | ||
ARG GAIA_COMMIT=decb23bed0179244e4f42d697dcd4bf759200a2d | ||
|
||
ARG platforms="darwin linux windows" | ||
RUN mkdir /gaia | ||
|
||
RUN cd /gaia && \ | ||
for platform in $platforms; \ | ||
do wget --output-document=$platform \ | ||
https://tendermint-packages.interblock.io/binaries/gaia_${platform}_amd64/gaia_${GAIA_COMMIT}; \ | ||
done | ||
|
||
|
||
COPY entrypoint.sh / | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
ENTRYPOINT [ "/entrypoint.sh" ] |
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,14 @@ | ||
#!/bin/sh | ||
set -o errexit | ||
set -o xtrace | ||
|
||
docker build --build-arg GAIA_COMMIT --tag cosmos/voyager-builder . | ||
mkdir -p ../../builds | ||
|
||
docker run \ | ||
--interactive \ | ||
--mount type=bind,readonly,source=$(pwd)/../../.git,target=/.git \ | ||
--mount type=bind,source=$(pwd)/../../builds,target=/builds \ | ||
--rm \ | ||
--tty \ | ||
cosmos/voyager-builder "$@" |
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,12 @@ | ||
#!/bin/sh | ||
set -o errexit | ||
|
||
git clone /.git . | ||
|
||
# Use the specified commit of Voyager. | ||
git checkout "$1" | ||
shift | ||
|
||
ln --symbolic /builds | ||
yarn install | ||
node tasks/release.js --binary=/gaia/linux "$@" |
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 |
---|---|---|
|
@@ -432,7 +432,7 @@ babel-core@^6.0.0, babel-core@^6.26.0, babel-core@^6.8.0: | |
slash "^1.0.0" | ||
source-map "^0.5.6" | ||
|
||
babel-eslint@^7.0.0: | ||
babel-eslint@^7.2.3: | ||
version "7.2.3" | ||
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.2.3.tgz#b2fe2d80126470f5c19442dc757253a897710827" | ||
dependencies: | ||
|
@@ -2788,11 +2788,11 @@ eslint-plugin-html@^4.0.2: | |
dependencies: | ||
htmlparser2 "^3.8.2" | ||
|
||
eslint-plugin-promise@^3.4.0: | ||
version "3.6.0" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.6.0.tgz#54b7658c8f454813dc2a870aff8152ec4969ba75" | ||
eslint-plugin-promise@^3.6.0: | ||
version "3.7.0" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.7.0.tgz#f4bde5c2c77cdd69557a8f69a24d1ad3cfc9e67e" | ||
|
||
eslint-plugin-standard@^2.0.1: | ||
eslint-plugin-standard@^2.3.1: | ||
version "2.3.1" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-standard/-/eslint-plugin-standard-2.3.1.tgz#6765bd2a6d9ecdc7bdf1b145ae4bb30e2b7b86f8" | ||
|
||
|
@@ -5388,7 +5388,7 @@ [email protected]: | |
version "0.0.8" | ||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" | ||
|
||
minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@~1.2.0: | ||
minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@~1.2.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" | ||
|
||
|