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

Add autofs and install cefs configuration #1479

Merged
merged 1 commit into from
Dec 12, 2024
Merged
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
18 changes: 17 additions & 1 deletion setup-admin.sh
Original file line number Diff line number Diff line change
@@ -14,7 +14,23 @@ fi

env EXTRA_NFS_ARGS="" INSTALL_TYPE="admin" "${DIR}/setup-common.sh"

apt -y install mosh fish jq cronic subversion upx gdb autojump zlib1g-dev m4 python3 python3-venv python3.8 python3.8-venv libc6-dev-i386
apt -y install \
autojump \
cronic \
fish \
gdb \
jq \
libc6-dev-i386 \
m4 \
mosh \
python3 \
python3-venv \
python3.8 \
python3.8-venv \
squashfs-tools-ng \
subversion \
upx \
zlib1g-dev
chsh ubuntu -s /usr/bin/fish

cd /home/ubuntu/infra
10 changes: 9 additions & 1 deletion setup-common.sh
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ apt-get -y update
apt-get -y dist-upgrade --force-yes

apt-get -y install \
autofs \
jq \
libc6-arm64-cross \
libdatetime-perl \
@@ -46,7 +47,6 @@ hash -r pip
# This returns amd64 or arm64
ARCH=$(dpkg --print-architecture)


if [ "$INSTALL_TYPE" != 'ci' ]; then
mkdir /tmp/aws-install
pushd /tmp/aws-install
@@ -187,3 +187,11 @@ aws s3 sync s3://compiler-explorer/authorized_keys /tmp/auth_keys
cat /tmp/auth_keys/* >>/home/ubuntu/.ssh/authorized_keys
rm -rf /tmp/auth_keys
chown -R ubuntu /home/ubuntu/.ssh

setup_cefs() {
mkdir /cefs
echo "* -fstype=squashfs,loop,nosuid,nodev,ro :/efs/cefs-images/&.sqfs" > /etc/auto.cefs
echo "/cefs /etc/auto.cefs --negative-timeout 1" > /etc/auto.master.d/cefs.autofs
service autofs restart
}
setup_cefs
2 changes: 1 addition & 1 deletion terraform/lc.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
image_id = "ami-0cfaa1f31737d26b4"
staging_image_id = "ami-0cfaa1f31737d26b4"
staging_image_id = "ami-0410d305cc1eac4c1"
beta_image_id = "ami-0cfaa1f31737d26b4"
gpu_image_id = "ami-0e49c31db87fb4332"
aarch64prod_image_id = "ami-0940f416984ac4e8b"