Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulssv-ibm committed Oct 30, 2024
1 parent 1474a31 commit 4fa95c0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: [ubuntu-24.10-s390x, ubuntu-22.10-ppc64le]
runs-on: [ubuntu-24.10-s390x, ubuntu-22.04-ppc64le]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM ubuntu:24.10
FROM ubuntu:22.04

ARG RUNNERREPO="https://github.com/actions/runner" RUNNERPATCH SDK_VERSION ARCH

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get -qq update -y && \
apt-get -qq -y install wget git sudo alien curl dotnet-sdk-8.0 && \
apt-get -qq -y install wget git sudo alien curl && \
apt autoclean

RUN dpkg --install /tmp/*.deb && \
rm -rf /tmp/*.deb && \
RUN apt-get -qq -y install dotnet-sdk-8.0 && \
SDK_VERSION=`dotnet --version` && \
echo "Using SDK - ${SDK_VERSION}"

Expand Down
15 changes: 10 additions & 5 deletions build-files/install-packages.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/bash
header() {
echo "+--------------------------------------------+"
echo "| $*"
echo "+--------------------------------------------+"
TS=`date +"%Y-%m-%dT%H:%M:%S%:z"`
echo "${TS} +--------------------------------------------+"
echo "${TS} | $*"
echo "${TS} +--------------------------------------------+"
echo
}

msg() {
echo `date +"%Y-%m-%dT%H:%M:%S%:z"` $*
}

# Check if the file name is provided
if [ -z "$1" ]; then
echo "Usage: $0 <package_list.txt>"
Expand All @@ -21,7 +26,7 @@ if [ ! -f "$PACKAGE_LIST_FILE" ]; then
fi
header "Installing additional packages"
# Update the package list
echo "Updating package list..."
msg "Updating package list..."
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update -y

# installing docker
Expand Down Expand Up @@ -52,4 +57,4 @@ while IFS= read -r package || [ -n "$package" ]; do
fi
done < "$PACKAGE_LIST_FILE"

echo "All packages from $PACKAGE_LIST_FILE have been installed."
msg "All packages from $PACKAGE_LIST_FILE have been installed."

0 comments on commit 4fa95c0

Please sign in to comment.