Skip to content

Commit

Permalink
New image versions :: AL2 2.0 & Standard 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
naga-aws committed Nov 26, 2019
1 parent 303693a commit 76d6649
Show file tree
Hide file tree
Showing 10 changed files with 1,425 additions and 0 deletions.
530 changes: 530 additions & 0 deletions al2/x86_64/standard/2.0/Dockerfile

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions al2/x86_64/standard/2.0/dockerd-entrypoint.sh
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 "$@"
101 changes: 101 additions & 0 deletions al2/x86_64/standard/2.0/runtimes.yml
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 ..."
3 changes: 3 additions & 0 deletions al2/x86_64/standard/2.0/ssh_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Host *
ConnectTimeout 10
ConnectionAttempts 10
30 changes: 30 additions & 0 deletions al2/x86_64/standard/2.0/tools/android-accept-licenses.sh
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
}
Loading

0 comments on commit 76d6649

Please sign in to comment.