Skip to content

Commit

Permalink
Merge pull request #786 from linuxserver/code-server-dotnet-armhf
Browse files Browse the repository at this point in the history
code-server-dotnet: deprecate arm32
  • Loading branch information
aptalca authored Nov 14, 2023
2 parents 94357a8 + 5cfe5a0 commit 17f7b26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
FROM ghcr.io/linuxserver/baseimage-alpine:3.18 as buildstage

ARG MOD_VERSION

Expand All @@ -18,14 +18,10 @@ RUN \
DOTNET_RELEASE_URL=$(echo "${DOTNET_JSON}" | jq -r ".\"releases-index\"[] | select(.\"latest-sdk\"==\"${i}\") | .\"releases.json\"") && \
DOTNET_RELEASE_JSON=$(curl -fSsLX GET "${DOTNET_RELEASE_URL}") && \
AMD64_URL=$(echo "${DOTNET_RELEASE_JSON}" | jq -r ".releases[] | select(.sdk.version==\"${i}\") | .sdk.files[] | select(.name | contains(\"linux-x64.tar.gz\")) | .url") && \
ARM32_URL=$(echo "${DOTNET_RELEASE_JSON}" | jq -r ".releases[] | select(.sdk.version==\"${i}\") | .sdk.files[] | select(.name | contains(\"linux-arm.tar.gz\")) | .url") && \
ARM64_URL=$(echo "${DOTNET_RELEASE_JSON}" | jq -r ".releases[] | select(.sdk.version==\"${i}\") | .sdk.files[] | select(.name | contains(\"linux-arm64.tar.gz\")) | .url") && \
curl -fSL --retry 3 --retry-connrefused -o \
/root-layer/dotnet/dotnetsdk_"${i}"_x86_64.tar.gz -L \
"${AMD64_URL}" && \
curl -fSL --retry 3 --retry-connrefused -o \
/root-layer/dotnet/dotnetsdk_"${i}"_armv7l.tar.gz -L \
"${ARM32_URL}" && \
curl -fSL --retry 3 --retry-connrefused -o \
/root-layer/dotnet/dotnetsdk_"${i}"_aarch64.tar.gz -L \
"${ARM64_URL}" || exit 1; \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

# Determine if setup is needed
if [ -d /dotnet ]; then
ARCH=$(uname -m)
if [[ "${ARCH}" = "armv7l" ]]; then
echo "**** The dotnet mod no longer supports arm32v7/armhf images, exiting ****"
exit 0
fi
# install deps
echo "**** Adding dotnet dependencies to package install list ****"
source /etc/lsb-release
Expand All @@ -16,7 +21,6 @@ if [ -d /dotnet ]; then
rm -rf /dotnet_*
fi
DOTNET_VERSIONS=$(cat /dotnet/versions.txt)
ARCH=$(uname -m)
for i in $DOTNET_VERSIONS; do
mkdir -p "/dotnet_${i}"
tar xzf "/dotnet/dotnetsdk_${i}_${ARCH}.tar.gz" -C "/dotnet_${i}"
Expand Down

0 comments on commit 17f7b26

Please sign in to comment.