Skip to content

Commit

Permalink
Merge pull request #324 from ubuntu-rocks/feat/channels/8.0/update-do…
Browse files Browse the repository at this point in the history
…tnet-dockerfiles-to-use-2404

feat: [ROCKS-852] Update .net dockerfiles to use ubuntu 24.04
  • Loading branch information
cjdcordeiro authored Nov 21, 2023
2 parents 340209d + 17d16b9 commit 36dc351
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions dotnet-aspnet/Dockerfile.24.04
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates git file \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
### TODO: REMOVE "git" and this, once .net8 slices are merged upstream
RUN git clone -b "ubuntu-24.04-proposed" https://github.com/canonical/chisel-releases.git

ADD "https://github.com/canonical/chisel/releases/download/v0.8.0/chisel_v0.8.0_linux_${TARGETARCH}.tar.gz" chisel.tar.gz
RUN tar -xvf chisel.tar.gz -C /usr/bin/
ADD "https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper" /usr/bin/chisel-wrapper
RUN chmod +x /usr/bin/chisel-wrapper

RUN mkdir /rootfs \
&& chisel-wrapper --generate-dpkg-status /status -- --release ./chisel-releases --root /rootfs \
&& chisel-wrapper --generate-dpkg-status /status -- --release "ubuntu-$UBUNTU_RELEASE" --root /rootfs \
base-files_base \
base-files_release-info \
ca-certificates_data \
Expand Down
4 changes: 1 addition & 3 deletions dotnet-deps/Dockerfile.24.04
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates git file \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
### TODO: REMOVE "git" and this, once .net8 slices are merged upstream
RUN git clone -b "ubuntu-24.04-proposed" https://github.com/canonical/chisel-releases.git

ADD "https://github.com/canonical/chisel/releases/download/v0.8.0/chisel_v0.8.0_linux_${TARGETARCH}.tar.gz" chisel.tar.gz
RUN tar -xvf chisel.tar.gz -C /usr/bin/
Expand All @@ -21,7 +19,7 @@ RUN mkdir -p /rootfs/etc \
&& echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
&& echo -e "root:x:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd

RUN chisel-wrapper --generate-dpkg-status /status -- --release ./chisel-releases/ --root /rootfs \
RUN chisel-wrapper --generate-dpkg-status /status -- --release "ubuntu-$UBUNTU_RELEASE" --root /rootfs \
base-files_base \
base-files_release-info \
ca-certificates_data \
Expand Down
4 changes: 1 addition & 3 deletions dotnet-runtime/Dockerfile.24.04
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates git file \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
### TODO: REMOVE "git" and this, once .net8 slices are merged upstream
RUN git clone -b "ubuntu-24.04-proposed" https://github.com/canonical/chisel-releases.git

ADD "https://github.com/canonical/chisel/releases/download/v0.8.0/chisel_v0.8.0_linux_${TARGETARCH}.tar.gz" chisel.tar.gz
RUN tar -xvf chisel.tar.gz -C /usr/bin/
ADD "https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper" /usr/bin/chisel-wrapper
RUN chmod +x /usr/bin/chisel-wrapper

RUN mkdir /rootfs \
&& chisel-wrapper --generate-dpkg-status /status -- --release ./chisel-releases --root /rootfs \
&& chisel-wrapper --generate-dpkg-status /status -- --release "ubuntu-$UBUNTU_RELEASE" --root /rootfs \
base-files_base \
base-files_release-info \
ca-certificates_data \
Expand Down

0 comments on commit 36dc351

Please sign in to comment.