-
Notifications
You must be signed in to change notification settings - Fork 100
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
07adcd1
commit 3d4ae94
Showing
9 changed files
with
82 additions
and
41 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 |
---|---|---|
|
@@ -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,24 @@ | ||
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. | ||
|
||
RUN wget --output-document=/usr/local/bin/gaia \ | ||
https://tendermint-packages.interblock.io/binaries/gaia_linux_amd64/gaia_decb23bed0179244e4f42d697dcd4bf759200a2d | ||
|
||
RUN echo "9f6e79e52d809a4321440f09890e94bad6843de685d50b9b41b5246421918cb5 */usr/local/bin/gaia" \ | ||
| sha256sum --check - | ||
|
||
|
||
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,13 @@ | ||
#!/bin/sh | ||
set -o xtrace | ||
|
||
docker build --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,5 @@ | ||
#!/bin/sh | ||
git clone /.git . | ||
ln --symbolic /builds | ||
yarn | ||
node tasks/release.js --binary=/usr/local/bin/gaia "$@" |
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" | ||
|
||
|