File tree 3 files changed +9
-10
lines changed
3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -11,25 +11,22 @@ LABEL maintainer="aptalca"
11
11
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
12
12
13
13
# global environment settings
14
- ENV DEBIAN_FRONTEND="noninteractive"
14
+ ENV DEBIAN_FRONTEND="noninteractive" \
15
+ MAJOR_VERSION=7.6
15
16
16
17
RUN \
17
18
echo "**** install runtime packages ****" && \
18
19
apt-get update && \
19
20
apt-get install -y \
20
21
libnvidia-compute-435 \
22
+ jq \
21
23
ocl-icd-libopencl1 && \
22
24
ln -s libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so && \
23
25
echo "**** install foldingathome ****" && \
24
- if [ -z ${FOLDINGATHOME_RELEASE+x} ]; then \
25
- FOLDINGATHOME_RELEASE="$(curl -sL https://download.foldingathome.org/js/fah-downloads.js \
26
- | awk -F'(fahclient_|_amd64.deb)' '/debian-stable-64bit/ {print $2;exit}')" ; \
27
- fi && \
28
- MAJOR_VERSION="$(curl -sL https://download.foldingathome.org/js/fah-downloads.js \
29
- | awk -F'(/debian-stable-64bit/|/fahclient_)' '/debian-stable-64bit/ {print $2;exit}')" && \
26
+ download_url=$(curl -sL https://download.foldingathome.org/releases.py?series=${MAJOR_VERSION} | jq -r '.[] | select(.title=="64bit Linux") | .groups[0].files[0].url' ) && \
30
27
curl -o \
31
28
/tmp/fah.deb -L \
32
- "https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/${MAJOR_VERSION}/fahclient_${FOLDINGATHOME_RELEASE}_amd64.deb" && \
29
+ ${download_url} && \
33
30
dpkg -x /tmp/fah.deb /app && \
34
31
echo "**** cleanup ****" && \
35
32
apt-get clean && \
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ pipeline {
103
103
steps{
104
104
script{
105
105
env. EXT_RELEASE = sh(
106
- script : ''' curl -sL https://download.foldingathome.org/js/fah-downloads.js | awk -F'(fahclient_|_amd64.deb)' '/debian-stable-64bit/ {print $2;exit}' ''' ,
106
+ script : ''' curl -sL https://download.foldingathome.org/releases.py?series=7.6 | jq -r '.[] | select(.title=="64bit Linux") | .groups[0].files[0].filename' | awk -F'(fahclient_|_amd64.deb)' '{print $2}'
107
+ ''' ,
107
108
returnStdout : true ). trim()
108
109
env. RELEASE_LINK = ' custom_command'
109
110
}
Original file line number Diff line number Diff line change 3
3
# jenkins variables
4
4
project_name : docker-foldingathome
5
5
external_type : na
6
- custom_version_command : " curl -sL https://download.foldingathome.org/js/fah-downloads.js | awk -F'(fahclient_|_amd64.deb)' '/debian-stable-64bit/ {print $2;exit}'"
6
+ custom_version_command : |
7
+ curl -sL https://download.foldingathome.org/releases.py?series=7.6 | jq -r '.[] | select(.title=="64bit Linux") | .groups[0].files[0].filename' | awk -F'(fahclient_|_amd64.deb)' '{print $2}'
7
8
release_type : stable
8
9
release_tag : latest
9
10
ls_branch : master
You can’t perform that action at this time.
0 commit comments