Skip to content

Commit

Permalink
Merge pull request #697 from Dylan-AWS/master
Browse files Browse the repository at this point in the history
Update arm 3.0 image with latest runtimes
  • Loading branch information
subinataws authored Jan 30, 2024
2 parents 2ddee3f + 74bee42 commit 211ddf6
Show file tree
Hide file tree
Showing 9 changed files with 314 additions and 95 deletions.
241 changes: 167 additions & 74 deletions al2/aarch64/standard/3.0/Dockerfile

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions al2/aarch64/standard/3.0/legal/bill_of_material.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ fakeroot : GPLv3+ and LGPLv2+ and (GPL+ or Artistic)
----------------
glib2-devel : LGPLv2+
----------------
git-lfs : /usr/share/doc/git-lfs/copyright
----------------
groff : GPLv3+ and GFDL and BSD and MIT
----------------
gzip : GPLv3+ and GFDL
Expand Down
55 changes: 52 additions & 3 deletions al2/aarch64/standard/3.0/runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,65 @@ runtimes:
&& update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
fi;
done
- export GRADLE_VERSION=$GRADLE_80_VERSION
- unlink /usr/bin/gradle
- ln -s /usr/local/gradle-$GRADLE_80_VERSION/bin/gradle /usr/bin/gradle
corretto21:
commands:
- echo "Installing corretto (OpenJDK) version 21 ..."

- export JAVA_HOME="$JAVA_21_HOME"

- export JRE_HOME="$JRE_21_HOME"

- export JDK_HOME="$JDK_21_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
- export GRADLE_VERSION=$GRADLE_85_VERSION
- unlink /usr/bin/gradle
- ln -s /usr/local/gradle-$GRADLE_85_VERSION/bin/gradle /usr/bin/gradle
golang:
versions:
1.20:
commands:
- echo "Installing Go version 1.20 ..."
- rm -rf /usr/local/go
- ln -s /usr/local/go12 /usr/local/go
- goenv global $GOLANG_20_VERSION
1.21:
commands:
- echo "Installing Go version 1.21 ..."
- goenv global $GOLANG_21_VERSION
python:
versions:
3.11:
commands:
- echo "Installing Python version 3.11 ..."
- pyenv global $PYTHON_311_VERSION
- pyenv global $PYTHON_311_VERSION
3.12:
commands:
- echo "Installing Python version 3.12 ..."
- pyenv global $PYTHON_312_VERSION
php:
versions:
8.1:
commands:
- echo "Installing PHP version 8.1 ..."
- phpenv global $PHP_81_VERSION
8.2:
commands:
- echo "Installing PHP version 8.2 ..."
- phpenv global $PHP_82_VERSION
8.3:
commands:
- echo "Installing PHP version 8.3 ..."
- phpenv global $PHP_83_VERSION
ruby:
versions:
3.2:
Expand All @@ -53,6 +93,10 @@ runtimes:
commands:
- echo "Installing Node.js version 18 ..."
- n $NODE_18_VERSION
20:
commands:
- echo "Installing Node.js version 20 ..."
- n $NODE_20_VERSION
docker:
versions:
23:
Expand All @@ -63,3 +107,8 @@ runtimes:
6.0:
commands:
- echo "Installing .NET version 6.0 ..."
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --force --sdk-version $DOTNET_6_GLOBAL_JSON_SDK_VERSION --roll-forward feature
8.0:
commands:
- echo "Installing .NET version 8.0 ..."
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --force --sdk-version $DOTNET_8_GLOBAL_JSON_SDK_VERSION --roll-forward feature
20 changes: 20 additions & 0 deletions al2/aarch64/standard/3.0/tools/runtime_configs/php/8.1.26
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
configure_option "--with-curl"
configure_option "--with-password-argon2"
configure_option "--with-pdo-pgsql"
configure_option "--with-libedit"

PHP_BUILD_EXTRA_MAKE_ARGUMENTS="-j4"

#https://github.com/php-build/php-build/blob/master/share/php-build/definitions/8.1.26
#Don't change beyond this line

configure_option "--enable-gd"
configure_option "--with-jpeg"
configure_option "--with-zip"
configure_option "--with-mhash"

configure_option -D "--with-xmlrpc"

install_package "https://www.php.net/distributions/php-8.1.26.tar.bz2"
install_xdebug "3.3.1"
enable_builtin_opcache
20 changes: 20 additions & 0 deletions al2/aarch64/standard/3.0/tools/runtime_configs/php/8.2.13
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
configure_option "--with-curl"
configure_option "--with-password-argon2"
configure_option "--with-pdo-pgsql"
configure_option "--with-libedit"

PHP_BUILD_EXTRA_MAKE_ARGUMENTS="-j4"

#https://github.com/php-build/php-build/blob/master/share/php-build/definitions/8.2.13
#Don't change beyond this line

configure_option "--enable-gd"
configure_option "--with-jpeg"
configure_option "--with-zip"
configure_option "--with-mhash"

configure_option -D "--with-xmlrpc"

install_package "https://www.php.net/distributions/php-8.2.13.tar.bz2"
install_xdebug "3.3.1"
enable_builtin_opcache
20 changes: 20 additions & 0 deletions al2/aarch64/standard/3.0/tools/runtime_configs/php/8.3.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
configure_option "--with-curl"
configure_option "--with-password-argon2"
configure_option "--with-pdo-pgsql"
configure_option "--with-libedit"

PHP_BUILD_EXTRA_MAKE_ARGUMENTS="-j4"

#https://github.com/php-build/php-build/blob/master/share/php-build/definitions/8.3.0
#Don't change beyond this line

configure_option "--enable-gd"
configure_option "--with-jpeg"
configure_option "--with-zip"
configure_option "--with-mhash"

configure_option -D "--with-xmlrpc"

install_package "https://www.php.net/distributions/php-8.3.0.tar.bz2"
install_xdebug "3.3.1"
enable_builtin_opcache
18 changes: 0 additions & 18 deletions al2/aarch64/standard/3.0/tools/runtime_configs/python/3.11.2

This file was deleted.

17 changes: 17 additions & 0 deletions al2/aarch64/standard/3.0/tools/runtime_configs/python/3.11.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export PYTHON_CONFIGURE_OPTS="\
--enable-shared
--enable-loadable-sqlite-extensions"

# Don't change below this line.
# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.11.7

prefer_openssl3
export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1
export PYTHON_BUILD_TCLTK_USE_PKGCONFIG=1
install_package "openssl-3.2.0" "https://www.openssl.org/source/openssl-3.2.0.tar.gz#14c826f07c7e433706fb5c69fa9e25dab95684844b4c962a2cf1bf183eb4690e" mac_openssl --if has_broken_mac_openssl
install_package "readline-8.2" "https://ftpmirror.gnu.org/readline/readline-8.2.tar.gz#3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35" mac_readline --if has_broken_mac_readline
if has_tar_xz_support; then
install_package "Python-3.11.7" "https://www.python.org/ftp/python/3.11.7/Python-3.11.7.tar.xz#18e1aa7e66ff3a58423d59ed22815a6954e53342122c45df20c96877c062b9b7" standard verify_py311 copy_python_gdb ensurepip
else
install_package "Python-3.11.7" "https://www.python.org/ftp/python/3.11.7/Python-3.11.7.tgz#068c05f82262e57641bd93458dfa883128858f5f4997aad7a36fd25b13b29209" standard verify_py311 copy_python_gdb ensurepip
fi
16 changes: 16 additions & 0 deletions al2/aarch64/standard/3.0/tools/runtime_configs/python/3.12.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export PYTHON_CONFIGURE_OPTS="\
--enable-shared
--enable-loadable-sqlite-extensions"

# Don't change below this line.
# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.12.1

prefer_openssl3
export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1
install_package "openssl-3.1.2" "https://www.openssl.org/source/openssl-3.1.2.tar.gz#a0ce69b8b97ea6a35b96875235aa453b966ba3cba8af2de23657d8b6767d6539" mac_openssl --if has_broken_mac_openssl
install_package "readline-8.2" "https://ftpmirror.gnu.org/readline/readline-8.2.tar.gz#3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35" mac_readline --if has_broken_mac_readline
if has_tar_xz_support; then
install_package "Python-3.12.1" "https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tar.xz#8dfb8f426fcd226657f9e2bd5f1e96e53264965176fa17d32658e873591aeb21" standard verify_py312 copy_python_gdb ensurepip
else
install_package "Python-3.12.1" "https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tgz#d01ec6a33bc10009b09c17da95cc2759af5a580a7316b3a446eb4190e13f97b2" standard verify_py312 copy_python_gdb ensurepip
fi

0 comments on commit 211ddf6

Please sign in to comment.