Skip to content

Commit 22624ae

Browse files
authored
Merge pull request #275 from naga-aws/master
New image versions :: AL2 2.0 & Standard 3.0
2 parents 303693a + 76d6649 commit 22624ae

File tree

10 files changed

+1425
-0
lines changed

10 files changed

+1425
-0
lines changed

al2/x86_64/standard/2.0/Dockerfile

Lines changed: 530 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
set -e
3+
4+
/usr/local/bin/dockerd \
5+
--host=unix:///var/run/docker.sock \
6+
--host=tcp://127.0.0.1:2375 \
7+
--storage-driver=overlay2 &>/var/log/docker.log &
8+
9+
10+
tries=0
11+
d_timeout=60
12+
until docker info >/dev/null 2>&1
13+
do
14+
if [ "$tries" -gt "$d_timeout" ]; then
15+
cat /var/log/docker.log
16+
echo 'Timed out trying to connect to internal docker host.' >&2
17+
exit 1
18+
fi
19+
tries=$(( $tries + 1 ))
20+
sleep 1
21+
done
22+
23+
eval "$@"
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
version: 0.1
2+
3+
runtimes:
4+
android:
5+
versions:
6+
28:
7+
requires:
8+
java: ["corretto8"]
9+
commands:
10+
- echo "Installing Android version 28 ..."
11+
29:
12+
requires:
13+
java: ["corretto8"]
14+
commands:
15+
- echo "Installing Android version 29 ..."
16+
java:
17+
versions:
18+
corretto11:
19+
commands:
20+
- echo "Installing corretto(OpenJDK) version 11 ..."
21+
22+
- export JAVA_HOME="$JAVA_11_HOME"
23+
24+
- export JRE_HOME="$JRE_11_HOME"
25+
26+
- export JDK_HOME="$JDK_11_HOME"
27+
28+
- |-
29+
for tool_path in "$JAVA_HOME"/bin/*;
30+
do tool=`basename "$tool_path"`;
31+
if [ $tool != 'java-rmi.cgi' ];
32+
then
33+
rm -f /usr/bin/$tool /var/lib/alternatives/$tool \
34+
&& update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
35+
fi;
36+
done
37+
corretto8:
38+
commands:
39+
- echo "Installing corretto(OpenJDK) version 8 ..."
40+
41+
- export JAVA_HOME="$JAVA_8_HOME"
42+
43+
- export JRE_HOME="$JRE_8_HOME"
44+
45+
- export JDK_HOME="$JDK_8_HOME"
46+
47+
- |-
48+
for tool_path in "$JAVA_8_HOME"/bin/* "$JRE_8_HOME"/bin/*;
49+
do tool=`basename "$tool_path"`;
50+
if [ $tool != 'java-rmi.cgi' ];
51+
then
52+
rm -f /usr/bin/$tool /var/lib/alternatives/$tool \
53+
&& update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
54+
fi;
55+
done
56+
golang:
57+
versions:
58+
1.12:
59+
commands:
60+
- echo "Installing Go version 1.12 ..."
61+
- rm -rf /usr/local/go
62+
- ln -s /usr/local/go12 /usr/local/go
63+
1.13:
64+
commands:
65+
- echo "Installing Go version 1.13 ..."
66+
python:
67+
versions:
68+
3.8:
69+
commands:
70+
- echo "Installing Python version 3.8 ..."
71+
php:
72+
versions:
73+
7.3:
74+
commands:
75+
- echo "Installing PHP version 7.3 ..."
76+
ruby:
77+
versions:
78+
2.6:
79+
commands:
80+
- echo "Installing Ruby version 2.6 ..."
81+
- rbenv global 2.6.4
82+
nodejs:
83+
versions:
84+
12:
85+
commands:
86+
- echo "Installing Node.js version 12 ..."
87+
- n 12.13.0
88+
10:
89+
commands:
90+
- echo "Installing Node.js version 10 ..."
91+
- n 10.17.0
92+
docker:
93+
versions:
94+
18:
95+
commands:
96+
- echo "Specifying docker version in buildspec is deprecated. Using docker $DOCKER_VERSION ."
97+
dotnet:
98+
versions:
99+
3.0:
100+
commands:
101+
- echo "Installing .NET version 3.0 ..."

al2/x86_64/standard/2.0/ssh_config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Host *
2+
ConnectTimeout 10
3+
ConnectionAttempts 10
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/expect -f
2+
3+
set timeout 1800
4+
set cmd [lindex $argv 0]
5+
set licenses [lindex $argv 1]
6+
7+
spawn {*}$cmd
8+
expect {
9+
"Do you accept the license '*'*" {
10+
exp_send "y\r"
11+
exp_continue
12+
}
13+
"Accept? (y/N): " {
14+
exp_send "y\r"
15+
exp_continue
16+
}
17+
"Review licenses that have not been accepted (y/N)? " {
18+
exp_send "y\r"
19+
exp_continue
20+
}
21+
eof
22+
}
23+
24+
lassign [wait] pid spawnid os_error waitvalue
25+
26+
if {$os_error == 0} {
27+
exit $waitvalue
28+
} else {
29+
exit 1
30+
}

0 commit comments

Comments
 (0)