Skip to content

Commit

Permalink
Merge pull request #777 from pastequo/fix/cloud-build
Browse files Browse the repository at this point in the history
fix(cloud): Workaround to avoid permission denied while building
  • Loading branch information
Gregory-Pereira authored Sep 5, 2024
2 parents 07a62ba + d59dd73 commit ca3e169
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions training/cloud/aws/cloud-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

set -o errexit

mv /etc/selinux /etc/selinux.tmp
dnf install -y --nobest \
cloud-init \
langpacks-en \
tuned
mv /etc/selinux.tmp /etc/selinux

# Chrony configuration
sed -i \
Expand Down
2 changes: 2 additions & 0 deletions training/cloud/azure/cloud-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -o errexit

mv /etc/selinux /etc/selinux.tmp
dnf install -y --nobest \
cloud-init \
hyperv-daemons \
Expand All @@ -12,6 +13,7 @@ dnf install -y --nobest \
rng-tools \
uuid \
WALinuxAgent
mv /etc/selinux.tmp /etc/selinux

# sshd configuration
cat << EOF >> /etc/ssh/sshd_config
Expand Down
2 changes: 2 additions & 0 deletions training/cloud/gcp/cloud-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

mv /etc/selinux /etc/selinux.tmp
dnf install -y --nobest \
acpid \
cloud-init \
Expand All @@ -26,6 +27,7 @@ dnf install -y --nobest \
tuned \
tuned \
vim
mv /etc/selinux.tmp /etc/selinux

# rpm-state is needed to remove microcode_ctl
mkdir /var/lib/rpm-state
Expand Down
4 changes: 3 additions & 1 deletion training/cloud/ibm/cloud-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -o errexit

mv /etc/selinux /etc/selinux.tmp
dnf install -y --nobest \
cloud-init \
langpacks-en \
langpacks-en
mv /etc/selinux.tmp /etc/selinux

0 comments on commit ca3e169

Please sign in to comment.