forked from aws/aws-codebuild-docker-images
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New image versions :: AL2 2.0 & Standard 3.0
- Loading branch information
Showing
10 changed files
with
1,425 additions
and
0 deletions.
There are no files selected for viewing
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,101 @@ | ||
version: 0.1 | ||
|
||
runtimes: | ||
android: | ||
versions: | ||
28: | ||
requires: | ||
java: ["corretto8"] | ||
commands: | ||
- echo "Installing Android version 28 ..." | ||
29: | ||
requires: | ||
java: ["corretto8"] | ||
commands: | ||
- echo "Installing Android version 29 ..." | ||
java: | ||
versions: | ||
corretto11: | ||
commands: | ||
- echo "Installing corretto(OpenJDK) 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 | ||
rm -f /usr/bin/$tool /var/lib/alternatives/$tool \ | ||
&& update-alternatives --install /usr/bin/$tool $tool $tool_path 20000; | ||
fi; | ||
done | ||
corretto8: | ||
commands: | ||
- echo "Installing corretto(OpenJDK) 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 | ||
rm -f /usr/bin/$tool /var/lib/alternatives/$tool \ | ||
&& update-alternatives --install /usr/bin/$tool $tool $tool_path 20000; | ||
fi; | ||
done | ||
golang: | ||
versions: | ||
1.12: | ||
commands: | ||
- echo "Installing Go version 1.12 ..." | ||
- rm -rf /usr/local/go | ||
- ln -s /usr/local/go12 /usr/local/go | ||
1.13: | ||
commands: | ||
- echo "Installing Go version 1.13 ..." | ||
python: | ||
versions: | ||
3.8: | ||
commands: | ||
- echo "Installing Python version 3.8 ..." | ||
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.4 | ||
nodejs: | ||
versions: | ||
12: | ||
commands: | ||
- echo "Installing Node.js version 12 ..." | ||
- n 12.13.0 | ||
10: | ||
commands: | ||
- echo "Installing Node.js version 10 ..." | ||
- n 10.17.0 | ||
docker: | ||
versions: | ||
18: | ||
commands: | ||
- echo "Specifying docker version in buildspec is deprecated. Using docker $DOCKER_VERSION ." | ||
dotnet: | ||
versions: | ||
3.0: | ||
commands: | ||
- echo "Installing .NET version 3.0 ..." |
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 | ||
} |
Oops, something went wrong.