File tree 4 files changed +11
-7
lines changed
4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ FROM alpine
2
2
RUN apk update && apk add --no-cache linux-tools-usbip
3
3
RUN if [ ! -e /usr/share/hwdata/usb.ids ]; then mkdir -p /usr/share/hwdata && ln -s /dev/null /usr/share/hwdata/usb.ids; fi
4
4
ARG SERVICE
5
- COPY usbip-common.sh "${SERVICE}/init" /opt/usbip-${SERVICE}/
6
- CMD [ "/opt/usbip-${SERVICE}/init" ]
5
+ ENV USBIP_HOME="/opt/usbip-${SERVICE}"
6
+ COPY usbip-common.sh "${SERVICE}/init" "${USBIP_HOME}/"
7
+ CMD exec "${USBIP_HOME}/init"
Original file line number Diff line number Diff line change 1
1
FROM debian:bullseye-slim
2
2
RUN apt-get update && apt-get install -y usbip && apt-get clean
3
3
ARG SERVICE
4
- COPY usbip-common.sh "${SERVICE}/init" "/opt/usbip-${SERVICE}/"
5
- CMD [ "/opt/usbip-${SERVICE}/init" ]
4
+ ENV USBIP_HOME="/opt/usbip-${SERVICE}"
5
+ COPY usbip-common.sh "${SERVICE}/init" "${USBIP_HOME}/"
6
+ CMD exec "${USBIP_HOME}/init"
Original file line number Diff line number Diff line change 1
1
FROM debian:buster-slim
2
2
RUN apt-get update && apt-get install -y usbip && apt-get clean
3
3
ARG SERVICE
4
- COPY usbip-common.sh "${SERVICE}/init" "/opt/usbip-${SERVICE}/"
4
+ ENV USBIP_HOME="/opt/usbip-${SERVICE}"
5
+ COPY usbip-common.sh "${SERVICE}/init" "${USBIP_HOME}/"
5
6
# bash is preferred over sh as workaround for
6
7
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779416
7
8
# affected package is dash:0.5.10.2-5, fixed in 0.5.11
8
- CMD [ " bash", "/opt/usbip-${SERVICE }/init" ]
9
+ CMD exec bash "${USBIP_HOME }/init"
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
set -eu
3
+ distros=" ${1:-* } "
3
4
dir=" $( dirname " ${0} " ) "
4
- find " ${dir} " -maxdepth 1 -name ' Dockerfile.* ' -printf ' %f\n' \
5
+ find " ${dir} " -maxdepth 1 -name " Dockerfile.${distros} " -printf ' %f\n' \
5
6
| while read file; do
6
7
distro=" ${file## Dockerfile.} "
7
8
find " ${dir} " -maxdepth 1 -type d ! -iname " .*" -printf ' %f\n' \
You can’t perform that action at this time.
0 commit comments