-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds support for SLES (SUSE Linux Enterprise Server). The support was tested with version 15 SP4. Signed-off-by: Adarsh Anand <[email protected]>
- Loading branch information
1 parent
fcf9654
commit 7620ef0
Showing
9 changed files
with
149 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% extends "Dockerfile.common.build.template" %} | ||
|
||
{% block install %} | ||
|
||
{% set ver = get_sles_version(Distro) | assert_not_none( | ||
'ERROR: Unsupported SLES distribution - ' + Distro) | ||
%} | ||
|
||
RUN zypper update -y \ | ||
&& zypper install -y suseconnect-ng \ | ||
&& mkdir -p /etc/zypp/credentials.d | ||
|
||
COPY SCCcredentials /etc/zypp/credentials.d/ | ||
|
||
RUN SUSEConnect -p PackageHub/{{ver}}/x86_64 \ | ||
&& SUSEConnect -p sle-module-basesystem/{{ver}}/x86_64 \ | ||
&& zypper install -y \ | ||
binutils \ | ||
openssl \ | ||
libprotobuf-c-devel \ | ||
python3 \ | ||
python3-cryptography \ | ||
python3-pip \ | ||
python3-protobuf \ | ||
python3-pyelftools \ | ||
python3-click \ | ||
python3-Jinja2 \ | ||
python3-tomli \ | ||
python3-voluptuous \ | ||
which \ | ||
&& /usr/bin/python3 -B -m pip install 'tomli-w>=0.4.0' \ | ||
&& zypper clean -a \ | ||
&& rm -rf /etc/zypp/credentials.d/SCCcredentials | ||
|
||
{% if buildtype != "release" %} | ||
RUN zypper install -y \ | ||
gdb \ | ||
less \ | ||
libunwind \ | ||
python3-pytest \ | ||
strace \ | ||
vim | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{% extends "Dockerfile.common.compile.template" %} | ||
|
||
{% block install %} | ||
|
||
{% set ver = get_sles_version(Distro) | assert_not_none( | ||
'ERROR: Unsupported SLES distribution - ' + Distro) | ||
%} | ||
|
||
RUN zypper update -y \ | ||
&& zypper install -y suseconnect-ng \ | ||
&& mkdir -p /etc/zypp/credentials.d | ||
|
||
COPY SCCcredentials /etc/zypp/credentials.d/ | ||
|
||
RUN SUSEConnect -p PackageHub/{{ver}}/x86_64 \ | ||
&& SUSEConnect -p sle-module-basesystem/{{ver}}/x86_64 \ | ||
&& SUSEConnect -p sle-module-desktop-applications/{{ver}}/x86_64 \ | ||
&& SUSEConnect -p sle-module-development-tools/{{ver}}/x86_64 \ | ||
&& zypper install -y \ | ||
autoconf \ | ||
bison \ | ||
cmake \ | ||
curl \ | ||
flex \ | ||
gawk \ | ||
gcc11 \ | ||
gcc11-c++ \ | ||
git \ | ||
libevent-devel \ | ||
libprotobuf-c-devel \ | ||
libprotobuf-c1 \ | ||
make \ | ||
meson \ | ||
nasm \ | ||
ninja \ | ||
openssl \ | ||
patch \ | ||
pkg-config \ | ||
protobuf-devel \ | ||
python3 \ | ||
python3-cryptography \ | ||
python3-pip \ | ||
python3-protobuf \ | ||
python3-tomli \ | ||
rpm-build \ | ||
wget \ | ||
which \ | ||
&& /usr/bin/python3 -B -m pip install 'tomli-w>=0.4.0' \ | ||
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 10 \ | ||
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 10 | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "Dockerfile.common.sign.template" %} | ||
|
||
{% block uninstall %} | ||
RUN \ | ||
pip3 uninstall -y click jinja2 \ | ||
tomli tomli-w pyelftools voluptuous \ | ||
&& zypper remove -y binutils \ | ||
openssl \ | ||
python3-cryptography \ | ||
python3-protobuf \ | ||
&& zypper clean -a; | ||
|
||
{% endblock %} | ||
|
||
{% block path %}export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}$(find /gramine/meson_build_output/lib64 -type d -path '*/site-packages')" &&{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% extends "centos/apploader.template" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% extends "centos/entrypoint.manifest.template" %} |