Skip to content

Commit d04dd68

Browse files
rahulssv-ibmroot
and
root
authored
Update: runner-ppc64le.patch for runner v2.319.0 and v2.319.1 (#19)
* update: added support for .net8 * update: patch for .net 8 * update: sdk version * added test * update : .net 8.0.114 * update: patchV2.319.0 * update : test patch --------- Co-authored-by: root <root@rahul-gha-vm.power-iaas.cloud.ibm.com>
1 parent 425240b commit d04dd68

6 files changed

+427
-100
lines changed

Dockerfile.ubuntu

+4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ ENV DEBIAN_FRONTEND=noninteractive
66

77
RUN apt-get -qq update -y && \
88
apt-get -qq -y install wget git sudo alien curl libicu70 sudo && \
9+
apt-get -qq -y install cpio rpm2cpio && \
910
apt autoclean
1011

1112
COPY build-files/convert-rpm.sh /tmp
1213

14+
RUN sed "s/--no-absolute-filenames//" /usr/share/perl5/Alien/Package/Rpm.pm > /tmp/Rpm.pm
15+
RUN cp /tmp/Rpm.pm /usr/share/perl5/Alien/Package/Rpm.pm
16+
1317
RUN /tmp/convert-rpm.sh ${SDK}
1418

1519
RUN dpkg --install /tmp/*.deb && \

build-files/build-image.sh

+15-7
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ update_fresh_container() {
44
echo "Upgrading and installing packages"
55
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update -y
66
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install alien libicu70 -y
7+
78
if [ $? -ne 0 ]; then
89
exit 32
910
fi
1011
sudo apt autoclean
1112

13+
sudo sed "s/--no-absolute-filenames//" /usr/share/perl5/Alien/Package/Rpm.pm > /tmp/Rpm.pm
14+
sudo cp /tmp/Rpm.pm /usr/share/perl5/Alien/Package/Rpm.pm
15+
1216
echo "Initializing LXD environment"
1317
sudo lxd init --preseed </tmp/lxd-preseed.yaml
1418

@@ -19,20 +23,21 @@ update_fresh_container() {
1923
setup_dotnet_sdk() {
2024
MIRROR="https://mirror.lchs.network/pub/almalinux/9/AppStream/${ARCH}/os/Packages"
2125
case "${SDK}" in
26+
8)
27+
PKGS="dotnet-apphost-pack-8.0-8.0.5-1.el9_4 dotnet-host-8.0.5-1.el9_4"
28+
PKGS="${PKGS} dotnet-hostfxr-8.0-8.0.5-1.el9_4 dotnet-targeting-pack-8.0-8.0.5-1.el9_4"
29+
PKGS="${PKGS} dotnet-templates-8.0-8.0.105-1.el9_4 dotnet-runtime-8.0-8.0.5-1.el9_4"
30+
PKGS="${PKGS} dotnet-sdk-8.0-8.0.105-1.el9_4 aspnetcore-runtime-8.0-8.0.5-1.el9_4"
31+
PKGS="${PKGS} aspnetcore-targeting-pack-8.0-8.0.5-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
32+
PKGS="${PKGS} dotnet-runtime-dbg-8.0-8.0.5-1.el9_4 dotnet-sdk-dbg-8.0-8.0.105-1.el9_4 aspnetcore-runtime-dbg-8.0-8.0.5-1.el9_4"
33+
;;
2234
7)
2335
PKGS="dotnet-apphost-pack-7.0-7.0.19-1.el9_4 dotnet-host-8.0.5-1.el9_4"
2436
PKGS="${PKGS} dotnet-hostfxr-7.0-7.0.19-1.el9_4 dotnet-targeting-pack-7.0-7.0.19-1.el9_4"
2537
PKGS="${PKGS} dotnet-templates-7.0-7.0.119-1.el9_4 dotnet-runtime-7.0-7.0.19-1.el9_4"
2638
PKGS="${PKGS} dotnet-sdk-7.0-7.0.119-1.el9_4 aspnetcore-runtime-7.0-7.0.19-1.el9_4"
2739
PKGS="${PKGS} aspnetcore-targeting-pack-7.0-7.0.19-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
2840
;;
29-
6)
30-
PKGS="dotnet-host-8.0.5-1.el9_4 dotnet-apphost-pack-6.0-6.0.30-1.el9_4"
31-
PKGS="${PKGS} dotnet-hostfxr-6.0-6.0.30-1.el9_4 dotnet-targeting-pack-6.0-6.0.30-1.el9_4"
32-
PKGS="${PKGS} dotnet-templates-6.0-6.0.130-1.el9_4 dotnet-runtime-6.0-6.0.30-1.el9_4"
33-
PKGS="${PKGS} dotnet-sdk-6.0-6.0.130-1.el9_4 aspnetcore-runtime-6.0-6.0.30-1.el9_4"
34-
PKGS="${PKGS} aspnetcore-targeting-pack-6.0-6.0.30-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
35-
;;
3641
*)
3742
echo "Unsupported architecture ${ARCH}" >&2
3843
return 1
@@ -93,6 +98,7 @@ patch_runner() {
9398
}
9499

95100
build_runner() {
101+
export DOTNET_NUGET_SIGNATURE_VERIFICATION=false
96102
echo "Building runner binary"
97103
cd src
98104

@@ -184,3 +190,5 @@ fi
184190

185191
run "$@"
186192
exit $?
193+
194+

build-files/convert-rpm.sh

+21-7
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,34 @@ SDK=$1
44
ARCH=`uname -m`
55
MIRROR="https://mirror.lchs.network/pub/almalinux/9/AppStream/${ARCH}/os/Packages"
66
case "${SDK}" in
7+
8)
8+
# PKGS="dotnet-apphost-pack-8.0-8.0.4-2.el9_4 dotnet-host-8.0.4-2.el9_4"
9+
# PKGS="${PKGS} dotnet-hostfxr-8.0-8.0.4-2.el9_4 dotnet-targeting-pack-8.0-8.0.4-2.el9_4"
10+
# PKGS="${PKGS} dotnet-templates-8.0-8.0.104-2.el9_4 dotnet-runtime-8.0-8.0.4-2.el9_4"
11+
# PKGS="${PKGS} dotnet-sdk-8.0-8.0.104-2.el9_4 aspnetcore-runtime-8.0-8.0.4-2.el9_4"
12+
# PKGS="${PKGS} aspnetcore-targeting-pack-8.0-8.0.4-2.el9_4 netstandard-targeting-pack-2.1-8.0.104-2.el9_4"
13+
# ;;
14+
PKGS="dotnet-apphost-pack-8.0-8.0.5-1.el9_4 dotnet-host-8.0.5-1.el9_4"
15+
PKGS="${PKGS} dotnet-hostfxr-8.0-8.0.5-1.el9_4 dotnet-targeting-pack-8.0-8.0.5-1.el9_4"
16+
PKGS="${PKGS} dotnet-templates-8.0-8.0.105-1.el9_4 dotnet-runtime-8.0-8.0.5-1.el9_4"
17+
PKGS="${PKGS} dotnet-sdk-8.0-8.0.105-1.el9_4 aspnetcore-runtime-8.0-8.0.5-1.el9_4"
18+
PKGS="${PKGS} aspnetcore-targeting-pack-8.0-8.0.5-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
19+
PKGS="${PKGS} dotnet-runtime-dbg-8.0-8.0.5-1.el9_4 dotnet-sdk-dbg-8.0-8.0.105-1.el9_4 aspnetcore-runtime-dbg-8.0-8.0.5-1.el9_4"
20+
;;
721
7)
822
PKGS="dotnet-apphost-pack-7.0-7.0.19-1.el9_4 dotnet-host-8.0.5-1.el9_4"
923
PKGS="${PKGS} dotnet-hostfxr-7.0-7.0.19-1.el9_4 dotnet-targeting-pack-7.0-7.0.19-1.el9_4"
1024
PKGS="${PKGS} dotnet-templates-7.0-7.0.119-1.el9_4 dotnet-runtime-7.0-7.0.19-1.el9_4"
1125
PKGS="${PKGS} dotnet-sdk-7.0-7.0.119-1.el9_4 aspnetcore-runtime-7.0-7.0.19-1.el9_4"
1226
PKGS="${PKGS} aspnetcore-targeting-pack-7.0-7.0.19-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
1327
;;
14-
6)
15-
PKGS="dotnet-host-8.0.5-1.el9_4 dotnet-apphost-pack-6.0-6.0.30-1.el9_4"
16-
PKGS="${PKGS} dotnet-hostfxr-6.0-6.0.30-1.el9_4 dotnet-targeting-pack-6.0-6.0.30-1.el9_4"
17-
PKGS="${PKGS} dotnet-templates-6.0-6.0.130-1.el9_4 dotnet-runtime-6.0-6.0.30-1.el9_4"
18-
PKGS="${PKGS} dotnet-sdk-6.0-6.0.130-1.el9_4 aspnetcore-runtime-6.0-6.0.30-1.el9_4"
19-
PKGS="${PKGS} aspnetcore-targeting-pack-6.0-6.0.30-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
20-
;;
28+
# 6)
29+
# PKGS="dotnet-host-8.0.1-1.el9_3 dotnet-apphost-pack-6.0-6.0.26-1.el9_3"
30+
# PKGS="${PKGS} dotnet-hostfxr-6.0-6.0.26-1.el9_3 dotnet-targeting-pack-6.0-6.0.26-1.el9_3"
31+
# PKGS="${PKGS} dotnet-templates-6.0-6.0.126-1.el9_3 dotnet-runtime-6.0-6.0.26-1.el9_3"
32+
# PKGS="${PKGS} dotnet-sdk-6.0-6.0.126-1.el9_3 aspnetcore-runtime-6.0-6.0.26-1.el9_3"
33+
# PKGS="${PKGS} aspnetcore-targeting-pack-6.0-6.0.26-1.el9_3 netstandard-targeting-pack-2.1-8.0.101-1.el9_3"
34+
# ;;
2135
*)
2236
echo "Unsupported architecture ${ARCH}" >&2
2337
return 1

0 commit comments

Comments
 (0)