Skip to content

Commit

Permalink
Removed YUM/DNF config rule from dockerize.
Browse files Browse the repository at this point in the history
  • Loading branch information
ladar committed Oct 29, 2023
1 parent e8a755a commit c2e5164
Show file tree
Hide file tree
Showing 18 changed files with 2 additions and 98 deletions.
5 changes: 0 additions & 5 deletions scripts/alma8/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/alma9/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service
systemctl --quiet is-active dbus-broker.service && systemctl stop dbus-broker.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
8 changes: 0 additions & 8 deletions scripts/centos6/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,8 @@ service dbus stop
service mysqld stop
service postfix stop

#LANG="en_US"
#echo "%_install_lang $LANG" > /etc/rpm/macros.image-language-conf

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/yum.conf > /etc/yum.conf.new
mv /etc/yum.conf.new /etc/yum.conf
echo 'container' > /etc/yum/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/centos7/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/yum.conf > /etc/yum.conf.new
mv /etc/yum.conf.new /etc/yum.conf
echo 'container' > /etc/yum/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/centos8/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/centos8s/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/centos9s/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service
systemctl --quiet is-active dbus-broker.service && systemctl stop dbus-broker.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/fedora38/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@ systemctl --quiet is-active abrt.service && systemctl stop abrt.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service
systemctl --quiet is-active dbus-broker.service && systemctl stop dbus-broker.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/oracle6/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/yum.conf > /etc/yum.conf.new
mv /etc/yum.conf.new /etc/yum.conf
echo 'container' > /etc/yum/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/oracle7/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/yum.conf > /etc/yum.conf.new
mv /etc/yum.conf.new /etc/yum.conf
echo 'container' > /etc/yum/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
7 changes: 1 addition & 6 deletions scripts/oracle8/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/yum.conf > /etc/yum.conf.new
mv /etc/yum.conf.new /etc/yum.conf
echo 'container' > /etc/yum/vars/infra

rm -f /usr/lib/locale/locale-archive
echo 'container' > /etc/dnf/vars/infra

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
Expand Down
7 changes: 1 addition & 6 deletions scripts/oracle9/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service
systemctl --quiet is-active dbus-broker.service && systemctl stop dbus-broker.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/yum.conf > /etc/yum.conf.new
mv /etc/yum.conf.new /etc/yum.conf
echo 'container' > /etc/yum/vars/infra

rm -f /usr/lib/locale/locale-archive
echo 'container' > /etc/dnf/vars/infra

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
Expand Down
8 changes: 0 additions & 8 deletions scripts/rhel6/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,8 @@ service dbus stop
service mysqld stop
service postfix stop

#LANG="en_US"
#echo "%_install_lang $LANG" > /etc/rpm/macros.image-language-conf

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/yum.conf > /etc/yum.conf.new
mv /etc/yum.conf.new /etc/yum.conf
echo 'container' > /etc/yum/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/rhel7/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/yum.conf > /etc/yum.conf.new
mv /etc/yum.conf.new /etc/yum.conf
echo 'container' > /etc/yum/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/rhel8/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/rhel9/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service
systemctl --quiet is-active dbus-broker.service && systemctl stop dbus-broker.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/rocky8/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ systemctl --quiet is-active dbus.service && systemctl stop dbus.service
systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down
5 changes: 0 additions & 5 deletions scripts/rocky9/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ systemctl --quiet is-active mariadb.service && systemctl stop mariadb.service
systemctl --quiet is-active postfix.service && systemctl stop postfix.service
systemctl --quiet is-active dbus-broker.service && systemctl stop dbus-broker.service

awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
< /etc/dnf/dnf.conf > /etc/dnf/dnf.conf.new
mv /etc/dnf/dnf.conf.new /etc/dnf/dnf.conf
echo 'container' > /etc/dnf/vars/infra

rm -f /usr/lib/locale/locale-archive

# Setup the login message instructions.
if [[ ! "$PACKER_BUILD_NAME" =~ ^generic-.*$ ]]; then
printf "Magma Daemon Development Environment\nTo download and compile magma, just execute the magma-build.sh script.\n\n" > /etc/motd
Expand Down

0 comments on commit c2e5164

Please sign in to comment.