-
Notifications
You must be signed in to change notification settings - Fork 979
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new image: Standard 2.0 image with base Ubuntu 18.04
- Loading branch information
1 parent
710fe96
commit 1794fe6
Showing
7 changed files
with
686 additions
and
11 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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
/usr/local/bin/dockerd \ | ||
--host=unix:///var/run/docker.sock \ | ||
--host=tcp://127.0.0.1:2375 \ | ||
--storage-driver=overlay2 &>/var/log/docker.log & | ||
|
||
|
||
tries=0 | ||
d_timeout=60 | ||
until docker info >/dev/null 2>&1 | ||
do | ||
if [ "$tries" -gt "$d_timeout" ]; then | ||
cat /var/log/docker.log | ||
echo 'Timed out trying to connect to internal docker host.' >&2 | ||
exit 1 | ||
fi | ||
tries=$(( $tries + 1 )) | ||
sleep 1 | ||
done | ||
|
||
eval "$@" |
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,91 @@ | ||
version: 0.1 | ||
|
||
runtimes: | ||
android: | ||
versions: | ||
28: | ||
requires: | ||
java: ["openjdk8"] | ||
commands: | ||
- echo "Installing Android version 28 ..." | ||
java: | ||
versions: | ||
openjdk11: | ||
commands: | ||
- echo "Installing Java version 11 ..." | ||
|
||
- export JAVA_HOME="$JAVA_11_HOME" | ||
|
||
- export JRE_HOME="$JRE_11_HOME" | ||
|
||
- export JDK_HOME="$JDK_11_HOME" | ||
|
||
- |- | ||
for tool_path in "$JAVA_HOME"/bin/*; | ||
do tool=`basename "$tool_path"`; | ||
if [ $tool != 'java-rmi.cgi' ]; | ||
then | ||
update-alternatives --list "$tool" | grep -q "$tool_path" \ | ||
&& update-alternatives --set "$tool" "$tool_path"; | ||
fi; | ||
done | ||
openjdk8: | ||
commands: | ||
- echo "Installing Java version 8 ..." | ||
|
||
- export JAVA_HOME="$JAVA_8_HOME" | ||
|
||
- export JRE_HOME="$JRE_8_HOME" | ||
|
||
- export JDK_HOME="$JDK_8_HOME" | ||
|
||
- |- | ||
for tool_path in "$JAVA_8_HOME"/bin/* "$JRE_8_HOME"/bin/*; | ||
do tool=`basename "$tool_path"`; | ||
if [ $tool != 'java-rmi.cgi' ]; | ||
then | ||
update-alternatives --list "$tool" | grep -q "$tool_path" \ | ||
&& update-alternatives --set "$tool" "$tool_path"; | ||
fi; | ||
done | ||
golang: | ||
versions: | ||
1.12: | ||
commands: | ||
- echo "Installing Go version 1.12 ..." | ||
python: | ||
versions: | ||
3.7: | ||
commands: | ||
- echo "Installing Python version 3.7 ..." | ||
php: | ||
versions: | ||
7.3: | ||
commands: | ||
- echo "Installing PHP version 7.3 ..." | ||
ruby: | ||
versions: | ||
2.6: | ||
commands: | ||
- echo "Installing Ruby version 2.6 ..." | ||
- rbenv global 2.6.2 | ||
nodejs: | ||
versions: | ||
10: | ||
commands: | ||
- echo "Installing Node.js version 10 ..." | ||
- n 10.15.3 | ||
8: | ||
commands: | ||
- echo "Installing Node.js version 8 ..." | ||
- n 8.15.1 | ||
docker: | ||
versions: | ||
18: | ||
commands: | ||
- echo "Installing Docker version 18 ..." | ||
dotnet: | ||
versions: | ||
2.2: | ||
commands: | ||
- echo "Installing .NET version 2.2 ..." |
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 @@ | ||
Host * | ||
ConnectTimeout 10 | ||
ConnectionAttempts 10 |
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 @@ | ||
#!/usr/bin/expect -f | ||
|
||
set timeout 1800 | ||
set cmd [lindex $argv 0] | ||
set licenses [lindex $argv 1] | ||
|
||
spawn {*}$cmd | ||
expect { | ||
"Do you accept the license '*'*" { | ||
exp_send "y\r" | ||
exp_continue | ||
} | ||
"Accept? (y/N): " { | ||
exp_send "y\r" | ||
exp_continue | ||
} | ||
"Review licenses that have not been accepted (y/N)? " { | ||
exp_send "y\r" | ||
exp_continue | ||
} | ||
eof | ||
} | ||
|
||
lassign [wait] pid spawnid os_error waitvalue | ||
|
||
if {$os_error == 0} { | ||
exit $waitvalue | ||
} else { | ||
exit 1 | ||
} |