Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add standard:8.0 image based on Ubuntu 24.04 #718

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ The master branch will sometimes have changes that are still in the process of b

### How to build Docker images

Steps to build Standard 7.0 image
Steps to build Standard 8.0 image

* Run `git clone https://github.com/aws/aws-codebuild-docker-images.git` to download this repository to your local machine
* Run `cd aws-codebuild-docker-images/ubuntu/standard/7.0` to change the directory in your local workspace. This is the location of the Standard 7.0 Dockerfile with Ubuntu base.
* Run `docker build -t aws/codebuild/standard:7.0 .` to build Docker image locally
* Run `cd aws-codebuild-docker-images/ubuntu/standard/8.0` to change the directory in your local workspace. This is the location of the Standard 8.0 Dockerfile with Ubuntu base.
* Run `docker build -t aws/codebuild/standard:8.0 .` to build Docker image locally

To poke around in the image interactively, build it and run:
`docker run -it --entrypoint sh aws/codebuild/standard:7.0 -c bash`
`docker run -it --entrypoint sh aws/codebuild/standard:8.0 -c bash`

To let the Docker daemon start up in the container, build it and run:
`docker run -it --privileged aws/codebuild/standard:7.0 bash`
`docker run -it --privileged aws/codebuild/standard:8.0 bash`

```
$ git clone https://github.com/aws/aws-codebuild-docker-images.git
$ cd aws-codebuild-docker-images
$ cd ubuntu/standard/7.0
$ docker build -t aws/codebuild/standard:7.0 .
$ docker run -it --entrypoint sh aws/codebuild/standard:7.0 -c bash
$ cd ubuntu/standard/8.0
$ docker build -t aws/codebuild/standard:8.0 .
$ docker run -it --entrypoint sh aws/codebuild/standard:8.0 -c bash
```

### Image maintenance
Expand All @@ -37,6 +37,7 @@ The following images are actively maintained by AWS CodeBuild, and are listed in
+ [standard 5.0](ubuntu/standard/5.0)
+ [standard 6.0](ubuntu/standard/6.0)
+ [standard 7.0](ubuntu/standard/7.0)
+ [standard 8.0](ubuntu/standard/8.0)
+ [amazonlinux2-x86_64-standard:4.0](al2/x86_64/standard/4.0)
+ [amazonlinux2-x86_64-standard:5.0](al2/x86_64/standard/5.0)
+ [amazonlinux2-x86_64-standard:corretto8](al2/x86_64/standard/corretto8)
Expand Down
4 changes: 2 additions & 2 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
build:
commands:
- cd $CODEBUILD_SRC_DIR/ubuntu/standard/7.0
- docker build -t aws/codebuild/standard:7.0 .
- cd $CODEBUILD_SRC_DIR/ubuntu/standard/8.0
- docker build -t aws/codebuild/standard:8.0 .
- cd $CODEBUILD_SRC_DIR/al2/x86_64/standard/5.0
- docker build -t aws/codebuild/amazonlinux2-x86_64-standard:5.0 .
500 changes: 500 additions & 0 deletions ubuntu/standard/8.0/Dockerfile

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions ubuntu/standard/8.0/amazon-ssm-agent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"Profile":{
"ShareCreds" : true,
"ShareProfile" : ""
},
"Mds": {
"CommandWorkersLimit" : 5,
"StopTimeoutMillis" : 20000,
"Endpoint": "",
"CommandRetryLimit": 15
},
"Ssm": {
"Endpoint": "",
"HealthFrequencyMinutes": 5,
"CustomInventoryDefaultLocation" : "",
"AssociationLogsRetentionDurationHours" : 24,
"RunCommandLogsRetentionDurationHours" : 336,
"SessionLogsRetentionDurationHours" : 336
},
"Mgs": {
"Region": "",
"Endpoint": "",
"StopTimeoutMillis" : 20000,
"SessionWorkersLimit" : 1000
},
"Agent": {
"Region": "",
"OrchestrationRootDir": "",
"ContainerMode": true
},
"Os": {
"Lang": "en-US",
"Name": "",
"Version": "1"
},
"S3": {
"Endpoint": "",
"Region": "",
"LogBucket":"",
"LogKey":""
},
"Kms": {
"Endpoint": ""
}
}
23 changes: 23 additions & 0 deletions ubuntu/standard/8.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 "$@"
274 changes: 274 additions & 0 deletions ubuntu/standard/8.0/legal/bill_of_material.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,274 @@
The Amazon CodeBuild Product includes the following third-party software/licensing:

----------------
apt-transport-https : /usr/share/doc/apt-transport-https/copyright
----------------
apt-utils : /usr/share/doc/apt-utils/copyright
----------------
asciidoc : /usr/share/doc/asciidoc/copyright
----------------
autoconf : /usr/share/doc/autoconf/copyright
----------------
automake : /usr/share/doc/automake/copyright
----------------
build-essential : /usr/share/doc/build-essential/copyright
----------------
bzip2 : /usr/share/doc/bzip2/copyright
----------------
bzr : /usr/share/doc/bzr/copyright
----------------
pack: https://github.com/buildpacks/pack/blob/main/LICENSE
----------------
ca-certificates-java : /usr/share/doc/ca-certificates-java/copyright
----------------
curl : /usr/share/doc/curl/copyright
----------------
dirmngr : /usr/share/doc/dirmngr/copyright
----------------
docbook-xml : /usr/share/doc/docbook-xml/copyright
----------------
docbook-xsl : /usr/share/doc/docbook-xsl/copyright
----------------
dpkg-dev : /usr/share/doc/dpkg-dev/copyright
----------------
e2fsprogs : /usr/share/doc/e2fsprogs/copyright
----------------
expect : /usr/share/doc/expect/copyright
----------------
fakeroot : /usr/share/doc/fakeroot/copyright
----------------
file : /usr/share/doc/file/copyright
----------------
g++ : /usr/share/doc/g++/copyright
----------------
gcc : /usr/share/doc/gcc/copyright
----------------
gettext : /usr/share/doc/gettext/copyright
----------------
gettext-base : /usr/share/doc/gettext-base/copyright
----------------
git : /usr/share/doc/git/copyright
----------------
groff : /usr/share/doc/groff/copyright
----------------
gzip : /usr/share/doc/gzip/copyright
----------------
iptables : /usr/share/doc/iptables/copyright
----------------
jq : /usr/share/doc/jq/copyright
----------------
less : /usr/share/doc/less/copyright
----------------
lib32gcc1 : /usr/share/doc/lib32gcc1/copyright
----------------
lib32ncurses5 : /usr/share/doc/lib32ncurses5/copyright
----------------
lib32stdc++6 : /usr/share/doc/lib32stdc++6/copyright
----------------
lib32z1 : /usr/share/doc/lib32z1/copyright
----------------
libapr1 : /usr/share/doc/libapr1/copyright
----------------
libaprutil1 : /usr/share/doc/libaprutil1/copyright
----------------
libargon2-0-dev : /usr/share/doc/libargon2-0-dev/copyright
----------------
libasound2 : /usr/share/doc/libasound2/copyright
----------------
libbz2-dev : /usr/share/doc/libbz2-dev/copyright
----------------
libc6-dev : /usr/share/doc/libc6-dev/copyright
----------------
libc6-i386 : /usr/share/doc/libc6-i386/copyright
----------------
libcurl4-openssl-dev : /usr/share/doc/libcurl4-openssl-dev/copyright
----------------
libdb-dev : /usr/share/doc/libdb-dev/copyright
----------------
libdbd-sqlite3-perl : /usr/share/doc/libdbd-sqlite3-perl/copyright
----------------
libdbi-perl : /usr/share/doc/libdbi-perl/copyright
----------------
libdbus-1-3 : /usr/share/doc/libdbus-1-3/copyright
----------------
libdbus-glib-1-2 : /usr/share/doc/libdbus-glib-1-2/copyright
----------------
libdpkg-perl : /usr/share/doc/libdpkg-perl/copyright
----------------
libedit-dev : /usr/share/doc/libedit-dev/copyright
----------------
liberror-perl : /usr/share/doc/liberror-perl/copyright
----------------
libevent-dev : /usr/share/doc/libevent-dev/copyright
----------------
libffi-dev : /usr/share/doc/libffi-dev/copyright
----------------
libgeoip-dev : /usr/share/doc/libgeoip-dev/copyright
----------------
libglib2.0-0 : /usr/share/doc/libglib2.0-0/copyright
----------------
libglib2.0-dev : /usr/share/doc/libglib2.0-dev/copyright
----------------
libgtk-3-0 : /usr/share/doc/libgtk-3-0/copyright
----------------
libhttp-date-perl : /usr/share/doc/libhttp-date-perl/copyright
----------------
libio-pty-perl : /usr/share/doc/libio-pty-perl/copyright
----------------
libjpeg-dev : /usr/share/doc/libjpeg-dev/copyright
----------------
libkrb5-dev : /usr/share/doc/libkrb5-dev/copyright
----------------
liblzma-dev : /usr/share/doc/liblzma-dev/copyright
----------------
libmagickcore-dev : /usr/share/doc/libmagickcore-dev/copyright
----------------
libmagickwand-dev : /usr/share/doc/libmagickwand-dev/copyright
----------------
libmysqlclient-dev : /usr/share/doc/libmysqlclient-dev/copyright
----------------
libncurses5-dev : /usr/share/doc/libncurses5-dev/copyright
----------------
libncursesw5-dev : /usr/share/doc/libncursesw5-dev/copyright
----------------
libonig-dev : /usr/share/doc/libonig-dev/copyright
----------------
libpq-dev : /usr/share/doc/libpq-dev/copyright
----------------
libqt5widgets5 : /usr/share/doc/libqt5widgets5/copyright
----------------
libreadline-dev : /usr/share/doc/libreadline-dev/copyright
----------------
libserf-1-1 : /usr/share/doc/libserf-1-1/copyright
----------------
libsqlite3-dev : /usr/share/doc/libsqlite3-dev/copyright
----------------
libssl-dev : /usr/share/doc/libssl-dev/copyright
----------------
libsvn-perl : /usr/share/doc/libsvn-perl/copyright
----------------
libsvn1 : /usr/share/doc/libsvn1/copyright
----------------
libtcl8.6 : /usr/share/doc/libtcl8.6/copyright
----------------
libtidy-dev : /usr/share/doc/libtidy-dev/copyright
----------------
libtimedate-perl : /usr/share/doc/libtimedate-perl/copyright
----------------
libtool : /usr/share/doc/libtool/copyright
----------------
libwebp-dev : /usr/share/doc/libwebp-dev/copyright
----------------
libxml2-dev : /usr/share/doc/libxml2-dev/copyright
----------------
libxml2-utils : /usr/share/doc/libxml2-utils/copyright
----------------
libxslt1-dev : /usr/share/doc/libxslt1-dev/copyright
----------------
libyaml-dev : /usr/share/doc/libyaml-dev/copyright
----------------
libyaml-perl : /usr/share/doc/libyaml-perl/copyright
----------------
libzip-dev : /usr/share/doc/libzip-dev/copyright
----------------
libzip4 : /usr/share/doc/libzip4/copyright
----------------
llvm : /usr/share/doc/llvm/copyright
----------------
locales : /usr/share/doc/locales/copyright
----------------
make : /usr/share/doc/make/copyright
----------------
mlocate : /usr/share/doc/mlocate/copyright
----------------
netbase : /usr/share/doc/netbase/copyright
----------------
openjdk-8-jdk : /usr/share/doc/openjdk-8-jdk/copyright
----------------
openjdk-11-jdk : /usr/share/doc/openjdk-11-jre-headless/copyright
----------------
openssh-client : /usr/share/doc/openssh-client/copyright
----------------
openssl : /usr/share/doc/openssl/copyright
----------------
patch : /usr/share/doc/patch/copyright
----------------
pkg-config : /usr/share/doc/pkg-config/copyright
----------------
procps : /usr/share/doc/procps/copyright
----------------
python-bzrlib : /usr/share/doc/python-bzrlib/copyright
----------------
python-configobj : /usr/share/doc/python-configobj/copyright
----------------
python-openssl : /usr/share/doc/python-openssl/copyright
----------------
python-setuptools : /usr/share/doc/python-setuptools/copyright
----------------
rsync : /usr/share/doc/rsync/copyright
----------------
sbt : /usr/share/doc/sbt/copyright
----------------
sgml-base : /usr/share/doc/sgml-base/copyright
----------------
sgml-data : /usr/share/doc/sgml-data/copyright
----------------
software-properties-common : /usr/share/doc/software-properties-common/copyright
----------------
tar : /usr/share/doc/tar/copyright
----------------
tcl : /usr/share/doc/tcl/copyright
----------------
tcl8.6 : /usr/share/doc/tcl8.6/copyright
----------------
tk : /usr/share/doc/tk/copyright
----------------
tk-dev : /usr/share/doc/tk-dev/copyright
----------------
unzip : /usr/share/doc/unzip/copyright
----------------
vim : /usr/share/doc/vim/copyright
----------------
wget : /usr/share/doc/wget/copyright
----------------
xfsprogs : /usr/share/doc/xfsprogs/copyright
----------------
xml-core : /usr/share/doc/xml-core/copyright
----------------
xmlto : /usr/share/doc/xmlto/copyright
----------------
xsltproc : /usr/share/doc/xsltproc/copyright
----------------
xvfb : /usr/share/doc/xvfb/copyright
----------------
xz-utils : /usr/share/doc/xz-utils/copyright
----------------
git-lfs : /usr/share/doc/git-lfs/copyright
----------------
zip : /usr/share/doc/zip/copyright
----------------
zlib1g-dev : /usr/share/doc/zlib1g-dev/copyright
----------------
ruby :https://www.ruby-lang.org/en/about/license.txt
----------------
python :https://docs.python.org/3/license.html
----------------
php :https://www.php.net/license/index.php
----------------
nodejs :https://github.com/nodejs/node/blob/master/LICENSE
----------------
golang :https://golang.org/LICENSE
----------------
dotnet :https://github.com/dotnet/core/blob/master/LICENSE.TXT
----------------
Firefox :https://www.mozilla.org/en-US/MPL/
----------------
Chrome : https://www.google.com/intl/en_pk/chrome/privacy/eula_text.html
----------------
stunnel : https://www.stunnel.org/gpl.html
----------------
gitversion :https://github.com/GitTools/GitVersion/blob/master/LICENSE
----------------
docker : https://www.docker.com/legal/components-licenses
----------------

Loading