-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
81 lines (74 loc) · 2.79 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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"
# package versions
ARG WEBGRAB_VER
ARG WGUPDATE_VER=""
# environment variables.
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME /config
RUN \
echo "**** add mono repository ****" && \
apt-get update && \
apt-get install -y \
gnupg && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
echo "deb http://download.mono-project.com/repo/ubuntu bionic main" | tee /etc/apt/sources.list.d/mono-official.list && \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
cron \
libmono-system-data4.0-cil \
libmono-system-web4.0-cil \
libmono-system-net-http4.0-cil \
mono-runtime \
unzip
RUN echo "**** install webgrabplus ****" && \
WEBGRAB_BRANCH=${WEBGRAB_VER%.*} && \
mkdir -p \
/app/wg++ && \
curl -o /tmp/wg++.tar.gz -L \
"http://www.webgrabplus.com/sites/default/files/download/SW/V${WEBGRAB_VER}/WebGrabPlus_V${WEBGRAB_BRANCH}_install.tar.gz" && \
tar xzf \
/tmp/wg++.tar.gz -C \
/app/wg++ --strip-components=1 && \
if [ ! -z "$WGUPDATE_ver" ]; then \
WGUPDATE_BRANCH=${WGUPDATE_VER%%_*} && \
curl -o \
/tmp/update.tar.gz -L \
"http://webgrabplus.com/sites/default/files/download/SW/V${WGUPDATE_BRANCH}/WebGrabPlus_V${WGUPDATE_VER}_install.tar.gz" && \
tar xf \
/tmp/update.tar.gz -C \
/app/wg++/bin/ --strip-components=2; \
fi && \
echo "**** download siteini.pack ****" && \
curl -o \
/tmp/ini.zip -L \
http://webgrabplus.com/sites/default/files/download/ini/SiteIniPack_current.zip && \
unzip -q /tmp/ini.zip -d /defaults/ini/ && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# copy files
COPY root/ /
LABEL maintainer="synker-team@synker.ovh" \
description="WebGrab++ docker run one shot (the container run one and exit)" \
system.dist="linux" system.arch="$arch" multi.name="WebGrab++docker"
VOLUME ["/config","/data"]
ENV PAT xxxxx
ENV TZ Europe/London
ENV DEBUG false
ENV FILE_NAME 2018.12.16_121300
ENV WEBGRAB_URL https://gist.githubusercontent.com/Fazzani/cce67905b458bae3eb5818adeffd2510/raw/WebGrab++.config.xml
RUN apt update -y && apt install -yy nano git
COPY updateChannels.sh /defaults
COPY run.sh /defaults
RUN chmod -R 777 /defaults && chmod -R +x /defaults/*.sh
RUN echo "e23d8e547b6149e5a1f51daf05537007" > /etc/machine-id
ENTRYPOINT [ "/defaults/run.sh" ]
CMD ["/config"]