-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker part 1: run automated tests in docker
- Loading branch information
Showing
8 changed files
with
89 additions
and
4 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
build.sh text eol=lf | ||
*.sh text eol=lf | ||
Dockerfile text eol=lf | ||
build.cake 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
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,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
CAKE_VERSION=0.37.0 | ||
DOTNET_VERSION=3.1.103 | ||
DOTNET_VERSION=3.1.201 |
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 @@ | ||
function ensure_success { | ||
exit_status=$? | ||
if [ $exit_status -ne 0 ]; then | ||
echo "... command exited with code $exit_status" | ||
exit $exit_status | ||
fi | ||
} | ||
|
||
echo "Installing app prerequisites..." | ||
apt-get -qqy update | ||
apt-get -qqy install libgdiplus | ||
ensure_success |
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,27 @@ | ||
function ensure_success { | ||
exit_status=$? | ||
if [ $exit_status -ne 0 ]; then | ||
echo "... command exited with code $exit_status" | ||
exit $exit_status | ||
fi | ||
} | ||
|
||
echo "Installing Chromium prerequisites..." | ||
apt-get -qqy update | ||
apt-get -qqy install lsb-release libappindicator3-1 | ||
ensure_success | ||
|
||
echo "Downloading Chromium debian package..." | ||
curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | ||
ensure_success | ||
|
||
echo "Installing Chromium debian package..." | ||
apt -y install ./google-chrome.deb | ||
ensure_success | ||
|
||
echo "Patching for running Chromium without sandbox" | ||
sed -i 's|HERE/chrome"|HERE/chrome" --no-sandbox|g' /opt/google/chrome/google-chrome | ||
ensure_success | ||
|
||
echo "Clean-up" | ||
rm google-chrome.deb |
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,18 @@ | ||
function ensure_success { | ||
exit_status=$? | ||
if [ $exit_status -ne 0 ]; then | ||
echo "... command exited with code $exit_status" | ||
exit $exit_status | ||
fi | ||
} | ||
|
||
echo "Install node.js prerequisites" | ||
apt-get -qq update && apt-get -qqy --no-install-recommends install wget gnupg git unzip | ||
ensure_success | ||
|
||
echo "Install node.js itself" | ||
curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
ensure_success | ||
|
||
apt-get install --no-install-recommends -y gcc g++ make build-essential nodejs | ||
ensure_success |
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,16 @@ | ||
function ensure_success { | ||
exit_status=$? | ||
if [ $exit_status -ne 0 ]; then | ||
echo "... command exited with code $exit_status" | ||
exit $exit_status | ||
fi | ||
} | ||
|
||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
ensure_success | ||
|
||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
ensure_success | ||
|
||
apt update && apt install --no-install-recommends yarn | ||
ensure_success |