-
Notifications
You must be signed in to change notification settings - Fork 32
openSUSE & Rancher Desktop support (rootless) #1163
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
base: main
Are you sure you want to change the base?
Changes from all commits
865ae81
cc13a3b
98012a7
657e342
d94064c
4d21239
2b2a473
06c9168
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ if [[ $activate_scenario_runner == true ]] ; then | |
print_message "Installing needed binaries for building ..." | ||
if lsb_release -is | grep -q "Fedora"; then | ||
sudo dnf -y install glib2 glib2-devel tinyproxy stress-ng lshw | ||
elif cat /etc/os-release | grep -q "openSUSE"; then | ||
sudo zypper -n in glib2-tools glib2-devel tinyproxy stress-ng lshw | ||
else | ||
sudo apt-get update | ||
sudo apt-get install -y libglib2.0-0 libglib2.0-dev tinyproxy stress-ng lshw | ||
|
@@ -31,6 +33,10 @@ if [[ $activate_scenario_runner == true ]] ; then | |
print_message "You can add -S to the install script to skip installing lm_sensors. However cluster mode and temperature reporters will not work then." >&2 | ||
exit 1 | ||
fi | ||
elif cat /etc/os-release | grep -q "openSUSE"; then | ||
if ! sudo zypper -n in sensors libsensors4-devel; then | ||
print_message "Failed to install sensors libsensors4-devel; continuing without Sensors." | ||
fi | ||
else | ||
if ! sudo apt-get install -y lm-sensors libsensors-dev; then | ||
print_message "Failed to install lm-sensors libsensors-dev;" >&2 | ||
|
@@ -94,6 +100,10 @@ if [[ $activate_scenario_runner == true ]] ; then | |
print_message "Failed to install msr-tools; If you do not plan to use RAPL you can skip the installation by appending '-r'" >&2 | ||
exit 1 | ||
fi | ||
elif cat /etc/os-release | grep -q "openSUSE"; then | ||
if ! sudo zypper -n in msr-tools; then | ||
print_message "Failed to install msr-tools; continuing without RAPL." | ||
fi | ||
else | ||
if ! sudo apt-get install -y msr-tools; then | ||
print_message "Failed to install msr-tools; If you do not plan to use RAPL you can skip the installation by appending '-r'" >&2 | ||
|
@@ -108,6 +118,8 @@ if [[ $activate_scenario_runner == true ]] ; then | |
{ | ||
if lsb_release -is | grep -q "Fedora"; then | ||
sudo dnf -y install freeipmi ipmitool | ||
elif cat /etc/os-release | grep -q "openSUSE"; then | ||
sudo zypper -n in freeipmi ipmitool | ||
else | ||
sudo apt-get install -y freeipmi-tools ipmitool | ||
fi | ||
|
@@ -131,6 +143,8 @@ if ! mount | grep -E '\s/tmp\s' | grep -Eq '\stmpfs\s' && [[ $ask_tmpfs == true | |
if [[ "$tmpfs" == "Y" || "$tmpfs" == "y" ]] ; then | ||
if lsb_release -is | grep -q "Fedora"; then | ||
sudo systemctl unmask --now tmp.mount | ||
elif cat /etc/os-release | grep -q "openSUSE"; then | ||
echo "You probably already have /tmp on a tmpfs" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this not be force-enabled? If the user selects yes and action should happen I would argue. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the only question open. If you could force mount on tmpfs (typically through systemd) this is ready for merge There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question, I have found out that tmpfs has been the standard for OpenSUSE almost 5 years for now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It can be checked, yes. What is the output of: |
||
else | ||
sudo systemctl enable /usr/share/systemd/tmp.mount | ||
fi | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -344,7 +344,7 @@ function build_containers() { | |
|
||
if [[ $build_docker_containers == true ]] ; then | ||
print_message "Building / Updating docker containers" | ||
if docker info 2>/dev/null | grep rootless || [[ $(uname) == "Darwin" ]]; then | ||
if docker info 2>/dev/null | grep rootless || docker info 2>/dev/null | grep lima-rancher-desktop || [[ $(uname) == "Darwin" ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lima to my knowledge is a VM based solution. What is the rationale here to check for this support? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is the sudo call failing on your system? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it's failing because Rancher Desktop registers nerdctl or corresponding docker aliases within the rc file of the user. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, understood. I guess it should be changed then from our side. The |
||
print_message "Docker is running in rootless/VM mode. Using non-sudo call ..." | ||
docker compose -f docker/compose.yml down | ||
docker compose -f docker/compose.yml build | ||
|
Uh oh!
There was an error while loading. Please reload this page.