Skip to content

Commit 3fa2093

Browse files
authored
Merge pull request #14 from linuxserver/pipeline
adding pipeline logic, multi arch, and rebase to alpine 3.8
2 parents 12785b1 + 63adf95 commit 3fa2093

File tree

7 files changed

+1019
-58
lines changed

7 files changed

+1019
-58
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lsiobase/alpine:3.7
1+
FROM lsiobase/alpine:3.8
22

33
# set version label
44
ARG BUILD_DATE

Dockerfile.aarch64

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
FROM lsiobase/alpine.arm64:3.8
2+
3+
# Add qemu to build on x86_64 systems
4+
COPY qemu-aarch64-static /usr/bin
5+
6+
# set version label
7+
ARG BUILD_DATE
8+
ARG VERSION
9+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
10+
LABEL maintainer="saarg"
11+
12+
RUN \
13+
echo "**** install build packages ****" && \
14+
apk add --no-cache --virtual=build-dependencies \
15+
bzr \
16+
curl \
17+
gcc \
18+
g++ \
19+
libusb-dev \
20+
linux-headers \
21+
make \
22+
libressl-dev \
23+
pcsc-lite-dev \
24+
tar && \
25+
echo "**** install runtime packages ****" && \
26+
apk add --no-cache \
27+
ccid \
28+
libcrypto1.0 \
29+
libssl1.0 \
30+
libusb \
31+
pcsc-lite \
32+
pcsc-lite-libs && \
33+
echo "**** compile oscam ****" && \
34+
bzr branch lp:oscam /tmp/oscam-svn && \
35+
cd /tmp/oscam-svn && \
36+
./config.sh \
37+
--enable all \
38+
--disable \
39+
CARDREADER_DB2COM \
40+
CARDREADER_INTERNAL \
41+
CARDREADER_STINGER \
42+
CARDREADER_STAPI \
43+
CARDREADER_STAPI5 \
44+
IPV6SUPPORT \
45+
LCDSUPPORT \
46+
LEDSUPPORT \
47+
READ_SDT_CHARSETS && \
48+
make \
49+
CONF_DIR=/config \
50+
DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
51+
NO_PLUS_TARGET=1 \
52+
OSCAM_BIN=/usr/bin/oscam \
53+
pcsc-libusb && \
54+
echo "**** fix broken permissions from pcscd install ****" && \
55+
chown root:root \
56+
/usr/sbin/pcscd && \
57+
chmod 755 \
58+
/usr/sbin/pcscd && \
59+
echo "**** install PCSC drivers ****" && \
60+
mkdir -p \
61+
/tmp/omnikey && \
62+
curl -o \
63+
/tmp/omnikey.tar.gz -L \
64+
https://www.hidglobal.com/sites/default/files/drivers/ifdokccid_linux_x86_64-v4.2.8.tar.gz && \
65+
tar xzf \
66+
/tmp/omnikey.tar.gz -C \
67+
/tmp/omnikey --strip-components=2 && \
68+
cd /tmp/omnikey && \
69+
./install && \
70+
echo "**** fix group for card readers and add abc to dialout group ****" && \
71+
groupmod -g 24 cron && \
72+
groupmod -g 16 dialout && \
73+
usermod -a -G 16 abc && \
74+
echo "**** cleanup ****" && \
75+
apk del --purge \
76+
build-dependencies && \
77+
rm -rf \
78+
/tmp/*
79+
80+
# copy local files
81+
COPY root/ /
82+
83+
# Ports and volumes
84+
EXPOSE 8888
85+
VOLUME /config

Dockerfile.armhf

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
FROM lsiobase/alpine.armhf:3.8
2+
3+
# Add qemu to build on x86_64 systems
4+
COPY qemu-arm-static /usr/bin
5+
6+
# set version label
7+
ARG BUILD_DATE
8+
ARG VERSION
9+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
10+
LABEL maintainer="saarg"
11+
12+
RUN \
13+
echo "**** install build packages ****" && \
14+
apk add --no-cache --virtual=build-dependencies \
15+
bzr \
16+
curl \
17+
gcc \
18+
g++ \
19+
libusb-dev \
20+
linux-headers \
21+
make \
22+
libressl-dev \
23+
pcsc-lite-dev \
24+
tar && \
25+
echo "**** install runtime packages ****" && \
26+
apk add --no-cache \
27+
ccid \
28+
libcrypto1.0 \
29+
libssl1.0 \
30+
libusb \
31+
pcsc-lite \
32+
pcsc-lite-libs && \
33+
echo "**** compile oscam ****" && \
34+
bzr branch lp:oscam /tmp/oscam-svn && \
35+
cd /tmp/oscam-svn && \
36+
./config.sh \
37+
--enable all \
38+
--disable \
39+
CARDREADER_DB2COM \
40+
CARDREADER_INTERNAL \
41+
CARDREADER_STINGER \
42+
CARDREADER_STAPI \
43+
CARDREADER_STAPI5 \
44+
IPV6SUPPORT \
45+
LCDSUPPORT \
46+
LEDSUPPORT \
47+
READ_SDT_CHARSETS && \
48+
make \
49+
CONF_DIR=/config \
50+
DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
51+
NO_PLUS_TARGET=1 \
52+
OSCAM_BIN=/usr/bin/oscam \
53+
pcsc-libusb && \
54+
echo "**** fix broken permissions from pcscd install ****" && \
55+
chown root:root \
56+
/usr/sbin/pcscd && \
57+
chmod 755 \
58+
/usr/sbin/pcscd && \
59+
echo "**** install PCSC drivers ****" && \
60+
mkdir -p \
61+
/tmp/omnikey && \
62+
curl -o \
63+
/tmp/omnikey.tar.gz -L \
64+
https://www.hidglobal.com/sites/default/files/drivers/ifdokccid_linux_x86_64-v4.2.8.tar.gz && \
65+
tar xzf \
66+
/tmp/omnikey.tar.gz -C \
67+
/tmp/omnikey --strip-components=2 && \
68+
cd /tmp/omnikey && \
69+
./install && \
70+
echo "**** fix group for card readers and add abc to dialout group ****" && \
71+
groupmod -g 24 cron && \
72+
groupmod -g 16 dialout && \
73+
usermod -a -G 16 abc && \
74+
echo "**** cleanup ****" && \
75+
apk del --purge \
76+
build-dependencies && \
77+
rm -rf \
78+
/tmp/*
79+
80+
# copy local files
81+
COPY root/ /
82+
83+
# Ports and volumes
84+
EXPOSE 8888
85+
VOLUME /config

0 commit comments

Comments
 (0)