File tree Expand file tree Collapse file tree 3 files changed +23
-21
lines changed
Expand file tree Collapse file tree 3 files changed +23
-21
lines changed Original file line number Diff line number Diff line change 11# # Buildstage ##
2- FROM ghcr.io/linuxserver/baseimage-alpine:3.12 as buildstage
2+ FROM ghcr.io/linuxserver/baseimage-alpine:3.14 as buildstage
33
44ARG COMP_RT_RELEASE
55
66RUN \
7- echo "**** install packages ****" && \
8- apk add --no-cache \
7+ echo "**** install packages ****" && \
8+ apk add --no-cache \
99 curl \
1010 jq && \
11- if [ -z "${COMP_RT_RELEASE}" ]; then \
11+ if [ -z "${COMP_RT_RELEASE}" ]; then \
1212 COMP_RT_RELEASE=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/latest" | jq -r '.tag_name' ); \
13- fi && \
14- COMP_RT_URLS=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/tags/${COMP_RT_RELEASE}" | jq -r '.body' | grep wget | grep -v ww47 | sed 's|wget ||g' ) && \
15- echo "**** grab debs ****" && \
16- mkdir -p /root-layer/opencl-intel && \
17- for i in $COMP_RT_URLS; do \
13+ fi && \
14+ COMP_RT_URLS=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/tags/${COMP_RT_RELEASE}" | jq -r '.body' | grep wget | grep -v ww47 | sed 's|wget ||g' ) && \
15+ echo "**** grab debs ****" && \
16+ mkdir -p /root-layer/opencl-intel && \
17+ for i in $COMP_RT_URLS; do \
1818 echo "**** downloading ${i%$'\r '} ****" && \
1919 curl -o /root-layer/opencl-intel/$(basename "${i%$'\r '}" ) \
20- -L "${i%$'\r '}" ; \
21- done
20+ -L "${i%$'\r '}" ; \
21+ done
2222
2323# copy local files
2424COPY root/ /root-layer/
Original file line number Diff line number Diff line change 1+ #!/usr/bin/with-contenv bash
2+
3+ apt-get update
Original file line number Diff line number Diff line change 22
33# Determine if setup is needed
44if [ ! -f "/usr/bin/apt" ]; then
5- echo "**** Image is not Ubuntu, skipping opencl-intel install ****"
6- exit 0
5+ echo "**** Image is not Ubuntu, skipping opencl-intel install ****"
6+ exit 0
77fi
88
99if [ $(uname -m) != "x86_64" ]; then
10- echo "**** Opencl-intel only works on X86_64, skipping ****"
11- exit 0
10+ echo "**** Opencl-intel only works on X86_64, skipping ****"
11+ exit 0
1212fi
1313
1414echo "**** Installing clinfo ****"
15- apt-get update
1615apt-get install -y \
17- clinfo
16+ clinfo
1817
1918if [ -d /opencl-intel ]; then
20- echo "**** Installing/updating opencl-intel debs ****"
21- dpkg -i /opencl-intel/*.deb
22- rm -rf /opencl-intel
19+ echo "**** Installing/updating opencl-intel debs ****"
20+ dpkg -i /opencl-intel/*.deb
21+ rm -rf /opencl-intel
2322else
24- echo "**** Opencl-intel already installed ****"
23+ echo "**** Opencl-intel already installed ****"
2524fi
You can’t perform that action at this time.
0 commit comments