Compare commits
13 Commits
45
...
ubuntu_reb
Author | SHA1 | Date | |
---|---|---|---|
cb181bae0e | |||
12785b1711 | |||
548e6e1cf7 | |||
9c7d852c19 | |||
d09999bb98 | |||
fa339bcc4d | |||
aef729f7c2 | |||
95ef84a777 | |||
bc850b20aa | |||
3e2ad3cdff | |||
3c372e7836 | |||
84de5b1894 | |||
bae428a8a3 |
130
Dockerfile
130
Dockerfile
@ -1,85 +1,85 @@
|
||||
FROM lsiobase/alpine:3.6
|
||||
MAINTAINER saarg
|
||||
FROM lsiobase/ubuntu:bionic as buildstage
|
||||
############## build stage ##############
|
||||
|
||||
# environment settings
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
build-essential \
|
||||
bzr \
|
||||
libpcsclite-dev \
|
||||
libssl-dev \
|
||||
libusb-1.0-0-dev
|
||||
|
||||
RUN \
|
||||
echo "**** fetch oscam source ****" && \
|
||||
bzr branch lp:oscam /tmp/oscam-svn
|
||||
|
||||
RUN \
|
||||
echo "**** compile oscam ****" && \
|
||||
cd /tmp/oscam-svn && \
|
||||
./config.sh \
|
||||
--enable all \
|
||||
--disable \
|
||||
CARDREADER_DB2COM \
|
||||
CARDREADER_INTERNAL \
|
||||
CARDREADER_STINGER \
|
||||
CARDREADER_STAPI \
|
||||
CARDREADER_STAPI5 \
|
||||
IPV6SUPPORT \
|
||||
LCDSUPPORT \
|
||||
LEDSUPPORT \
|
||||
READ_SDT_CHARSETS && \
|
||||
make \
|
||||
CONF_DIR=/config \
|
||||
DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
|
||||
NO_PLUS_TARGET=1 \
|
||||
OSCAM_BIN=/usr/bin/oscam \
|
||||
pcsc-libusb
|
||||
############## runtime stage ##############
|
||||
FROM lsiobase/ubuntu:bionic
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="saarg"
|
||||
|
||||
# environment settings
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
|
||||
# install build packages
|
||||
RUN \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
gcc \
|
||||
g++ \
|
||||
libusb-dev \
|
||||
linux-headers \
|
||||
make \
|
||||
libressl-dev \
|
||||
pcsc-lite-dev \
|
||||
subversion \
|
||||
tar && \
|
||||
|
||||
# install runtime packages
|
||||
apk add --no-cache \
|
||||
libcrypto1.0 \
|
||||
libssl1.0 \
|
||||
libusb \
|
||||
pcsc-lite \
|
||||
pcsc-lite-libs && \
|
||||
|
||||
|
||||
# compile oscam from source
|
||||
svn checkout http://www.streamboard.tv/svn/oscam/trunk /tmp/oscam-svn && \
|
||||
cd /tmp/oscam-svn && \
|
||||
./config.sh \
|
||||
--enable all \
|
||||
--disable \
|
||||
CARDREADER_DB2COM \
|
||||
CARDREADER_INTERNAL \
|
||||
CARDREADER_STINGER \
|
||||
CARDREADER_STAPI \
|
||||
CARDREADER_STAPI5 \
|
||||
IPV6SUPPORT \
|
||||
LCDSUPPORT \
|
||||
LEDSUPPORT \
|
||||
READ_SDT_CHARSETS && \
|
||||
make \
|
||||
OSCAM_BIN=/usr/bin/oscam \
|
||||
NO_PLUS_TARGET=1 \
|
||||
CONF_DIR=/config \
|
||||
DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
|
||||
pcsc-libusb && \
|
||||
|
||||
# fix broken permissions from pcscd install.
|
||||
chown root:root \
|
||||
/usr/sbin/pcscd && \
|
||||
chmod 755 \
|
||||
/usr/sbin/pcscd && \
|
||||
|
||||
# install PCSC drivers for OmniKey devices
|
||||
echo "**** install runtime packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
libccid \
|
||||
libpcsclite1 \
|
||||
libusb-1.0-0 \
|
||||
pcscd \
|
||||
udev && \
|
||||
echo "**** install PCSC drivers ****" && \
|
||||
mkdir -p \
|
||||
/tmp/omnikey && \
|
||||
curl -o \
|
||||
/tmp/omnikey.tar.gz -L \
|
||||
https://www.hidglobal.com/sites/default/files/drivers/ifdokccid_linux_x86_64-v4.2.8.tar.gz && \
|
||||
tar xzf /tmp/omnikey.tar.gz -C \
|
||||
tar xzf \
|
||||
/tmp/omnikey.tar.gz -C \
|
||||
/tmp/omnikey --strip-components=2 && \
|
||||
cd /tmp/omnikey && \
|
||||
./install && \
|
||||
|
||||
# fix group for card readers and add abc to dialout group
|
||||
groupmod -g 24 cron && \
|
||||
groupmod -g 16 dialout && \
|
||||
usermod -a -G 16 abc && \
|
||||
|
||||
# cleanup
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
|
||||
# copy local files
|
||||
# copy buildstage and local files
|
||||
COPY --from=buildstage /usr/bin/oscam /usr/bin/
|
||||
COPY --from=buildstage /usr/bin/oscam.debug /usr/bin/
|
||||
COPY root/ /
|
||||
|
||||
# Ports and volumes
|
||||
|
16
README.md
16
README.md
@ -13,7 +13,7 @@ The [LinuxServer.io][linuxserverurl] team brings you another container release f
|
||||
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
||||
|
||||
# linuxserver/oscam
|
||||
[](https://microbadger.com/images/linuxserver/oscam "Get your own version badge on microbadger.com")[](https://microbadger.com/images/linuxserver/oscam "Get your own image badge on microbadger.com")[][hub][][hub][](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-oscam/)
|
||||
[](https://microbadger.com/images/linuxserver/oscam "Get your own version badge on microbadger.com")[](https://microbadger.com/images/linuxserver/oscam "Get your own image badge on microbadger.com")[][hub][][hub][](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-oscam/)
|
||||
|
||||
[Oscam][appurl] is an Open Source Conditional Access Module software used for descrambling DVB transmissions using smart cards. It's both a server and a client.
|
||||
|
||||
@ -100,8 +100,12 @@ The web interface is at port 8888.
|
||||
|
||||
## Versions
|
||||
|
||||
+ **28.05.2017:** Rebase to alpine 3.6.
|
||||
+ **09.02.2017:** Rebase to alpine 3.5.
|
||||
+ **14.10.2016:** Add version layer information.
|
||||
+ **02.10.2016:** Add info on passing through devices to README.
|
||||
+ **25.09.2016:** Initial release.
|
||||
+ **03.01.18:** Deprecate cpu_core routine lack of scaling.
|
||||
+ **13.12.17:** Rebase to alpine 3.7.
|
||||
+ **19.10.17:** Add ccid package for usb card readers.
|
||||
+ **17.10.17:** Switch to using bzr for source code, streamboard awol.
|
||||
+ **28.05.17:** Rebase to alpine 3.6.
|
||||
+ **09.02.17:** Rebase to alpine 3.5.
|
||||
+ **14.10.16:** Add version layer information.
|
||||
+ **02.10.16:** Add info on passing through devices to README.
|
||||
+ **25.09.16:** Initial release.
|
||||
|
Reference in New Issue
Block a user