Skip to content

Commit 5e125eb

Browse files
committed
use tarball instead of deb
1 parent fd36339 commit 5e125eb

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ RUN \
1919
echo "**** install runtime packages ****" && \
2020
apt-get update && \
2121
apt-get install -y \
22+
bzip2 \
2223
intel-opencl-icd && \
2324
ln -s libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so && \
2425
echo "**** install foldingathome ****" && \
25-
download_url=$(curl -H 'Accept-Encoding: gzip' -fSsL --compressed https://download.foldingathome.org/releases.py | jq -r '.[] | select(.title=="64bit Linux") | .groups[].files[].url' | grep "fah-client" | grep "amd64.deb") && \
26+
download_url=$(curl -H 'Accept-Encoding: gzip' -fSsL --compressed https://download.foldingathome.org/releases.py | jq -r '.[] | select(.title=="64bit Linux") | .groups[].files[].url' | grep "fah-client" | grep -v "arm64" | grep "tar.bz2") && \
2627
curl -o \
27-
/tmp/fah.deb -L \
28+
/tmp/fah.tar.bz2 -L \
2829
${download_url} && \
29-
dpkg -x /tmp/fah.deb / && \
30+
tar xf /tmp/fah.tar.bz2 -C /app --strip-components=1 && \
3031
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
3132
echo "**** cleanup ****" && \
3233
apt-get clean && \

Dockerfile.aarch64

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ RUN \
1919
echo "**** install runtime packages ****" && \
2020
apt-get update && \
2121
apt-get install -y \
22+
bzip2 \
2223
ocl-icd-libopencl1 && \
2324
ln -s libOpenCL.so.1 /usr/lib/aarch64-linux-gnu/libOpenCL.so && \
2425
echo "**** install foldingathome ****" && \
25-
download_url=$(curl -H 'Accept-Encoding: gzip' -fSsL --compressed https://download.foldingathome.org/releases.py | jq -r '.[] | select(.title=="64bit Linux") | .groups[].files[].url' | grep "fah-client" | grep "arm64.deb") && \
26+
download_url=$(curl -H 'Accept-Encoding: gzip' -fSsL --compressed https://download.foldingathome.org/releases.py | jq -r '.[] | select(.title=="64bit Linux") | .groups[].files[].url' | grep "fah-client" | grep "arm64" | grep "tar.bz2") && \
2627
curl -o \
27-
/tmp/fah.deb -L \
28+
/tmp/fah.tar.bz2 -L \
2829
${download_url} && \
29-
dpkg -x /tmp/fah.deb / && \
30+
tar xf /tmp/fah.tar.bz2 -C /app --strip-components=1 && \
3031
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
3132
echo "**** cleanup ****" && \
3233
apt-get clean && \

root/etc/s6-overlay/s6-rc.d/svc-foldingathome/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ fi
2222

2323
exec \
2424
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 7396" \
25-
cd /config s6-setuidgid abc fah-client \
25+
cd /config s6-setuidgid abc /app/fah-client \
2626
--http-addresses 0.0.0.0:7396 --allow 0/0 ${TOKEN_AND_NAME} \
2727
${CLI_ARGS}

0 commit comments

Comments
 (0)