This repository was archived by the owner on Jan 16, 2025. It is now read-only.
File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ module "runners" {
46
46
ami_owners = [" 099720109477" ] # Canonical's Amazon account ID
47
47
48
48
ami_filter = {
49
- name = [" ubuntu/images/hvm-ssd/ubuntu-focal-20 .04-amd64-server-*" ]
49
+ name = [" ubuntu/images/hvm-ssd/ubuntu-jammy-22 .04-amd64-server-*" ]
50
50
}
51
51
52
52
# Custom build AMI, no custom userdata needed.
Original file line number Diff line number Diff line change @@ -7,13 +7,14 @@ ${pre_install}
7
7
apt-get update
8
8
DEBIAN_FRONTEND=noninteractive apt-get install -y \
9
9
awscli \
10
- jq \
10
+ build-essential \
11
11
curl \
12
- wget \
13
12
git \
13
+ iptables \
14
+ jq \
14
15
uidmap \
15
- build-essential \
16
- unzip
16
+ unzip \
17
+ wget
17
18
18
19
user_name=ubuntu
19
20
user_id=$( id -ru $user_name )
@@ -43,16 +44,16 @@ WantedBy=default.target
43
44
44
45
EOF
45
46
46
- echo export XDG_RUNTIME_DIR=/run/user/$user_id >> /home/$user_name /.profile
47
+ echo export XDG_RUNTIME_DIR=/run/user/$user_id >> /home/$user_name /.bashrc
47
48
48
49
systemctl daemon-reload
49
50
systemctl
enable [email protected]
50
51
51
52
52
53
curl -fsSL https://get.docker.com/rootless >> /opt/rootless.sh && chmod 755 /opt/rootless.sh
53
54
su -l $user_name -c /opt/rootless.sh
54
- echo export DOCKER_HOST=unix:///run/user/$user_id /docker.sock >> /home/$user_name /.profile
55
- echo export PATH=/home/$user_name /bin:$PATH >> /home/$user_name /.profile
55
+ echo export DOCKER_HOST=unix:///run/user/$user_id /docker.sock >> /home/$user_name /.bashrc
56
+ echo export PATH=/home/$user_name /bin:$PATH >> /home/$user_name /.bashrc
56
57
57
58
# Run docker service by default
58
59
loginctl enable-linger $user_name
You can’t perform that action at this time.
0 commit comments