File tree Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM balenalib/aarch64-alpine
1
+ FROM arm64v8/alpine
2
+ COPY qemu-aarch64-static /usr/bin/
2
3
MAINTAINER David Personette <
[email protected] >
3
4
4
5
# Install transmission
5
- RUN ["cross-build-start"]
6
6
RUN apk --no-cache --no-progress upgrade && \
7
7
apk --no-cache --no-progress add bash curl shadow sed tini \
8
8
transmission-daemon tzdata && \
@@ -37,7 +37,6 @@ RUN apk --no-cache --no-progress upgrade && \
37
37
/bin/echo -e ' "upload-limit-enabled": 0\n}' >>$file && \
38
38
chown -Rh transmission. $dir && \
39
39
rm -rf /tmp/*
40
- RUN ["cross-build-end"]
41
40
42
41
COPY transmission.sh /usr/bin/
43
42
Original file line number Diff line number Diff line change 1
- FROM balenalib/armv7hf-alpine
1
+ FROM arm32v6/alpine
2
+ COPY qemu-arm-static /usr/bin/
2
3
MAINTAINER David Personette <
[email protected] >
3
4
4
5
# Install transmission
5
- RUN ["cross-build-start"]
6
6
RUN apk --no-cache --no-progress upgrade && \
7
7
apk --no-cache --no-progress add bash curl shadow sed tini \
8
8
transmission-daemon tzdata && \
@@ -37,7 +37,6 @@ RUN apk --no-cache --no-progress upgrade && \
37
37
/bin/echo -e ' "upload-limit-enabled": 0\n}' >>$file && \
38
38
chown -Rh transmission. $dir && \
39
39
rm -rf /tmp/*
40
- RUN ["cross-build-end"]
41
40
42
41
COPY transmission.sh /usr/bin/
43
42
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ [[ " ${DOCKER_TAG} " == " latest" ]] && \
4
+ { echo ' qemu-user-static: Download not required for this arch' ; exit 0; }
5
+
6
+ TAGS_API=" https://api.github.com/repos/multiarch/qemu-user-static/tags"
7
+ URL=" https://github.com/multiarch/qemu-user-static/releases/download"
8
+ LATEST_TAG=$( curl -Ls $TAGS_API | \
9
+ awk -F' "' ' /name.*v[0-9]/ {print $4; exit}' )
10
+ ARCH=$( [[ " ${DOCKER_TAG} " == " armhf" ]] && \
11
+ echo " ${DOCKER_TAG::- 2} " || echo " ${DOCKER_TAG} " )
12
+
13
+ curl -Ls " ${URL} /${LATEST_TAG} /x86_64_qemu-${ARCH} -static.tar.gz" | \
14
+ tar xzv
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ [[ " ${DOCKER_TAG} " == " latest" ]] && \
4
+ { echo ' qemu-user-static: Registration not required for this arch' ; exit 0; }
5
+
6
+ docker run --rm --privileged multiarch/qemu-user-static:register --reset
You can’t perform that action at this time.
0 commit comments