Skip to content

Use cloud-local APT sources#432

Merged
int128 merged 8 commits into
mainfrom
int128/Use-cloud-local-APT-sources
Jun 13, 2024
Merged

Use cloud-local APT sources#432
int128 merged 8 commits into
mainfrom
int128/Use-cloud-local-APT-sources

Conversation

@int128

@int128 int128 commented Jun 13, 2024

Copy link
Copy Markdown
Member

This will improve the time of apt-get update and install on AWS EC2.

How it works

This adds an entrypoint script to modify /etc/apt/sources.list when a runner is on AWS EC2. It depends on the metadata endpoint of IMDSv2.

Actual content of /etc/apt/sources.list

Ubuntu 22.04 EC2 x86:

$ cat /etc/apt/sources.list | egrep -v '^#|^$'
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ jammy main restricted
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ jammy universe
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ jammy-updates universe
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse

Ubuntu 22.04 EC2 Arm:

$ cat /etc/apt/sources.list | egrep -v '^#|^$'
deb http://ap-northeast-1c.clouds.ports.ubuntu.com/ubuntu-ports/ jammy main restricted
deb http://ap-northeast-1c.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
deb http://ap-northeast-1c.clouds.ports.ubuntu.com/ubuntu-ports/ jammy universe
deb http://ap-northeast-1c.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-updates universe
deb http://ap-northeast-1c.clouds.ports.ubuntu.com/ubuntu-ports/ jammy multiverse
deb http://ap-northeast-1c.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse
deb http://ap-northeast-1c.clouds.ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports jammy-security universe
deb http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse

@github-actions

Copy link
Copy Markdown

🆕 If you need to build a new runner image, create a new release after merge.

@github-actions

Copy link
Copy Markdown

🆕 If you need to build a new runner image, create a new release after merge.

@github-actions

Copy link
Copy Markdown

🆕 If you need to build a new runner image, create a new release after merge.

@github-actions

Copy link
Copy Markdown

🆕 If you need to build a new runner image, create a new release after merge.

@github-actions

Copy link
Copy Markdown

🆕 If you need to build a new runner image, create a new release after merge.

@int128 int128 marked this pull request as ready for review June 13, 2024 09:35
@int128 int128 requested a review from a team as a code owner June 13, 2024 09:35
@github-actions

Copy link
Copy Markdown

🆕 If you need to build a new runner image, create a new release after merge.

@github-actions

Copy link
Copy Markdown

🆕 If you need to build a new runner image, create a new release after merge.

@github-actions

Copy link
Copy Markdown

🆕 If you need to build a new runner image, create a new release after merge.

@int128 int128 merged commit d4a9329 into main Jun 13, 2024
@int128 int128 deleted the int128/Use-cloud-local-APT-sources branch June 13, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants