Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing a RHEL based installation
Browse files Browse the repository at this point in the history
evgeniy-antonyuk committed Oct 22, 2024
1 parent cf01116 commit 75ac933
Showing 3 changed files with 24 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/ci-oci-install.yml
Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@ on:
- 'install/OneClickInstall/install-RedHat/**'
- 'install/OneClickInstall/install-Debian.sh'
- 'install/OneClickInstall/install-RedHat.sh'
push:
branches:
- bugfix/package-build

schedule:
- cron: '00 20 * * 6' # At 23:00 on Saturday.
@@ -73,13 +76,13 @@ jobs:
run: |
matrix=$(echo '{
"include": [
{"execute": '${{ github.event.inputs.centos9s || true }}', "name": "CentOS9S", "os": "centos9s", "distr": "generic"},
{"execute": '${{ github.event.inputs.debian11 || true }}', "name": "Debian11", "os": "debian11", "distr": "generic"},
{"execute": '${{ github.event.inputs.debian12 || true }}', "name": "Debian12", "os": "debian12", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2004 || true }}', "name": "Ubuntu20.04", "os": "ubuntu2004", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2204 || true }}', "name": "Ubuntu22.04", "os": "ubuntu2204", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2404 || true }}', "name": "Ubuntu24.04", "os": "ubuntu-24.04", "distr": "bento"},
{"execute": '${{ github.event.inputs.fedora39 || true }}', "name": "Fedora39", "os": "39-cloud-base", "distr": "fedora"},
{"execute": '${{ github.event.inputs.centos9s || false }}', "name": "CentOS9S", "os": "centos9s", "distr": "generic"},
{"execute": '${{ github.event.inputs.debian11 || false }}', "name": "Debian11", "os": "debian11", "distr": "generic"},
{"execute": '${{ github.event.inputs.debian12 || false }}', "name": "Debian12", "os": "debian12", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2004 || false }}', "name": "Ubuntu20.04", "os": "ubuntu2004", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2204 || false }}', "name": "Ubuntu22.04", "os": "ubuntu2204", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2404 || false }}', "name": "Ubuntu24.04", "os": "ubuntu-24.04", "distr": "bento"},
{"execute": '${{ github.event.inputs.fedora39 || false }}', "name": "Fedora39", "os": "39-cloud-base", "distr": "fedora"},
{"execute": '${{ github.event.inputs.fedora40 || true }}', "name": "Fedora40", "os": "fedora-40", "distr": "bento"}
]
}' | jq -c '.include')
@@ -119,9 +122,15 @@ jobs:
sudo apt install vagrant virtualbox -y
- name: Free Disk Space
run: |
sudo rm -rf /usr/local/lib/android /opt/ghc
sudo docker image prune --all --force
uses: jlumbroso/[email protected]
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: "Test production scripts with ${{matrix.name}}"
if: ${{ github.event_name == 'schedule' }}
@@ -137,9 +146,10 @@ jobs:
DISTR='${{ matrix.distr }}' \
OS='${{ matrix.os }}' \
DOWNLOAD_SCRIPT='-ds true' \
RAM='5100' \
RAM='8192' \
CPU='3' \
ARGUMENTS="-arg '--skiphardwarecheck true'" \
vagrant plugin install vagrant-disksize \
vagrant up
on_retry_command: |
echo "RUN CLEAN UP: Destroy vagrant and one more try"
@@ -160,7 +170,7 @@ jobs:
TEST_CASE='--local-install' \
DISTR='${{ matrix.distr }}' \
OS='${{matrix.os}}' \
RAM='5100' \
RAM='8192' \
CPU='3' \
DOWNLOAD_SCRIPT='-ds false' \
TEST_REPO='-tr true' \
1 change: 1 addition & 0 deletions install/OneClickInstall/install-RedHat/install-app.sh
Original file line number Diff line number Diff line change
@@ -150,6 +150,7 @@ fi
{ ${package_manager} check-update ${product}; PRODUCT_CHECK_UPDATE=$?; } || true
if [ "$PRODUCT_INSTALLED" = "false" ]; then
${package_manager} install -y ${product}
sed -i '1s/^/set -x\n/' /usr/bin/${product}-configuration
${product}-configuration \
-mysqlh ${MYSQL_SERVER_HOST} \
-mysqld ${MYSQL_SERVER_DB_NAME} \
1 change: 1 addition & 0 deletions tests/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Vagrant.configure("2") do |config|
config.vm.box = "#{ENV['DISTR']}/#{ENV['OS']}"
config.disksize.size = '50GB'

config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", "#{ENV['RAM']}"] #<= total RAM.

0 comments on commit 75ac933

Please sign in to comment.