Skip to content

Commit b28902c

Browse files
authored
Merge branch 'aws:main' into main
2 parents 01c7369 + a37a43a commit b28902c

13 files changed

+76
-431
lines changed

.github/workflows/test-on-push-and-pr.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,38 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Run 'pr' target
1616
run: make pr
1717

1818
alpine:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323
- name: Run alpine integration tests
2424
run: DISTRO=alpine make test-integ
2525

2626
amazonlinux:
2727
runs-on: ubuntu-latest
2828

2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131
- name: Run amazonlinux integration tests
3232
run: DISTRO=amazonlinux make test-integ
3333

34-
centos:
35-
runs-on: ubuntu-latest
36-
37-
steps:
38-
- uses: actions/checkout@v2
39-
- name: Run centos integration tests
40-
run: DISTRO=centos make test-integ
41-
4234
debian:
4335
runs-on: ubuntu-latest
4436

4537
steps:
46-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v4
4739
- name: Run debian integration tests
4840
run: DISTRO=debian make test-integ
4941

5042
ubuntu:
5143
runs-on: ubuntu-latest
5244

5345
steps:
54-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v4
5547
- name: Run ubuntu integration tests
5648
run: DISTRO=ubuntu make test-integ

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ dev: init test
4141

4242
# Verifications to run before sending a pull request
4343
.PHONY: pr
44-
pr: init check-format check-security dev setup-codebuild-agent
45-
CODEBUILD_IMAGE_TAG=codebuild-agent DISTRO="$(DISTRO)" tests/integration/codebuild-local/test_all.sh tests/integration/codebuild
44+
pr: init check-format check-security dev
4645

46+
codebuild: setup-codebuild-agent
47+
CODEBUILD_IMAGE_TAG=codebuild-agent DISTRO="$(DISTRO)" tests/integration/codebuild-local/test_all.sh tests/integration/codebuild
4748

4849
.PHONY: clean
4950
clean:

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ First step is to choose the base image to be used. The supported Linux OS distri
1919

2020
- Amazon Linux 2
2121
- Alpine
22-
- CentOS
2322
- Debian
2423
- Ubuntu
2524

tests/integration/codebuild/buildspec.os.alpine.yml

+7-12
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ batch:
1515
env:
1616
variables:
1717
DISTRO_VERSION:
18-
- "3.13"
19-
- "3.14"
20-
- "3.15"
18+
- "3.17"
19+
- "3.18"
20+
- "3.19"
2121
RUNTIME_VERSION:
22-
- "3.8"
2322
- "3.9"
2423
- "3.10"
2524
- "3.11"
@@ -52,20 +51,16 @@ phases:
5251
echo "COPY ${SCRATCH_DIR}/${RIE} /usr/bin/${RIE}" >> \
5352
"${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp"
5453
- >
55-
if [[ -z "${DOCKERHUB_USERNAME}" && -z "${DOCKERHUB_PASSWORD}" ]];
56-
then
57-
echo "DockerHub credentials not set as CodeBuild environment variables. Continuing without docker login."
58-
else
59-
echo "Performing DockerHub login . . ."
60-
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
61-
fi
54+
echo '{"registry-mirrors": ["https://mirror.gcr.io"]}' > /etc/docker/daemon.json
55+
service docker restart
6256
- echo "Building image ${IMAGE_TAG}"
6357
- >
6458
docker build . \
6559
-f "${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp" \
6660
-t "${IMAGE_TAG}" \
6761
--build-arg RUNTIME_VERSION="${RUNTIME_VERSION}" \
68-
--build-arg DISTRO_VERSION="${DISTRO_VERSION}"
62+
--build-arg DISTRO_VERSION="${DISTRO_VERSION}" \
63+
--load
6964
build:
7065
commands:
7166
- set -x

tests/integration/codebuild/buildspec.os.amazonlinux.1.yml

-104
This file was deleted.

tests/integration/codebuild/buildspec.os.amazonlinux.2.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ batch:
1717
DISTRO_VERSION:
1818
- "2"
1919
RUNTIME_VERSION:
20-
- "3.7"
21-
- "3.8"
2220
- "3.9"
2321
- "3.10"
2422
- "3.11"
@@ -48,21 +46,17 @@ phases:
4846
echo "COPY ${SCRATCH_DIR}/${RIE} /usr/bin/${RIE}" >> \
4947
"${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp"
5048
- >
51-
if [[ -z "${DOCKERHUB_USERNAME}" && -z "${DOCKERHUB_PASSWORD}" ]];
52-
then
53-
echo "DockerHub credentials not set as CodeBuild environment variables. Continuing without docker login."
54-
else
55-
echo "Performing DockerHub login . . ."
56-
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
57-
fi
49+
echo '{"registry-mirrors": ["https://mirror.gcr.io"]}' > /etc/docker/daemon.json
50+
service docker restart
5851
- echo "Building image ${IMAGE_TAG}"
5952
- >
6053
docker build . \
6154
-f "${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp" \
6255
-t "${IMAGE_TAG}" \
6356
--build-arg RUNTIME_VERSION="${RUNTIME_VERSION}" \
6457
--build-arg DISTRO_VERSION="${DISTRO_VERSION}" \
65-
--build-arg ARCHITECTURE="${ARCHITECTURE}"
58+
--build-arg ARCHITECTURE="${ARCHITECTURE}" \
59+
--load
6660
build:
6761
commands:
6862
- set -x

tests/integration/codebuild/buildspec.os.centos.yml

-112
This file was deleted.

0 commit comments

Comments
 (0)