Merge pull request #1 from linuxserver/change_paths

change paths, tidy up, remove grab on start
This commit is contained in:
sparklyballs 2017-06-11 01:13:52 +01:00 committed by GitHub
commit 2de48c6a1a
7 changed files with 45 additions and 54 deletions

View File

@ -7,8 +7,8 @@ ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# Set correct environment variables.
ENV HOME /config
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME /config
# install runtime dependencies
RUN \
@ -16,19 +16,26 @@ RUN \
apt-get install -y \
cron && \
# download and extract WG++ to correct paths
mkdir wg++ && \
# install webgrab
mkdir -p \
/app/wg++ && \
curl -o /tmp/wg++.tar.gz -L \
http://webgrabplus.com/sites/default/files/download/SW/V2.0.0/WebGrabPlus_V2.0_install.tar.gz && \
tar xzf /tmp/wg++.tar.gz --strip-components=1 -C /wg++/ && \
tar xzf \
/tmp/wg++.tar.gz -C \
/app/wg++ --strip-components=1 && \
# download update
curl -o /tmp/update.tar.gz -L \
# install wg-update
curl -o \
/tmp/update.tar.gz -L \
http://webgrabplus.com/sites/default/files/download/SW/V2.0.7/WebGrabPlus_V2.0.7_beta_install.tar.gz && \
tar xf /tmp/update.tar.gz --strip-components=2 -C /wg++/bin/ && \
tar xf \
/tmp/update.tar.gz -C \
/app/wg++/bin/ --strip-components=2 && \
# download Siteini.pack
curl -o /tmp/ini.zip -L \
# download siteini.pack
curl -o \
/tmp/ini.zip -L \
http://webgrabplus.com/sites/default/files/download/ini/SiteIniPack_current.zip && \
unzip /tmp/ini.zip -d /defaults/ini/ && \
@ -41,5 +48,5 @@ RUN \
# copy files
COPY root/ /
VOLUME /config \
/data
# ports and volumes
VOLUME /config /data

View File

@ -2,8 +2,8 @@
[forumurl]: https://forum.linuxserver.io
[ircurl]: https://www.linuxserver.io/irc/
[podcasturl]: https://www.linuxserver.io/podcast/
[appurl]: www.example.com
[hub]: https://hub.docker.com/r/example/example/
[appurl]: http://www.webgrabplus.com
[hub]: https://hub.docker.com/r/linuxserver/webgrabplus/
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
@ -12,23 +12,20 @@ The [LinuxServer.io][linuxserverurl] team brings you another container release f
* [IRC][ircurl] on freenode at `#linuxserver.io`
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
# <image-name>
# linuxserver/webgrabplus
[![](https://images.microbadger.com/badges/version/linuxserver/webgrabplus.svg)](https://microbadger.com/images/linuxserver/webgrabplus "Get your own version badge on microbadger.com")[![](https://images.microbadger.com/badges/image/linuxserver/webgrabplus.svg)](http://microbadger.com/images/linuxserver/webgrabplus "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/webgrabplus.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/webgrabplus.svg)][hub][![Build Status](http://jenkins.linuxserver.io:8080/buildStatus/icon?job=Dockers/LinuxServer.io/linuxserver-webgrabplus)](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-webgrabplus/)
Provide a short, concise description of the application. No more than two SHORT paragraphs. Link to sources where possible and include an image illustrating your point if necessary. Point users to the original applications website, as that's the best place to get support - not here.
Our Plex container has immaculate docs so follow that if in doubt for layout.
`IMPORTANT, replace all instances of <image-name> with the correct dockerhub repo (ie linuxserver/plex) and <container-name> information (ie, plex)`
[WebGrab+Plus][appurl] is a multi-site incremental xmltv epg grabber. It collects tv-program guide data from selected tvguide sites for your favourite channels.
## Usage
```
docker create \
--name=<container-name> \
--name=webgrabplus \
-v <path to data>:/config \
-v <path to data>:/data \
-e PGID=<gid> -e PUID=<uid> \
-p 1234:1234 \
<image-name>
linuxserver/webgrabplus
```
## Parameters
@ -40,12 +37,12 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po
* `-p 1234` - the port(s)
* `-v /config` - explain what lives here
* `-v /config` - where webgrabplus should store it's config files
* `-v /config` - where webgrabplus should store it's data files
* `-e PGID` for GroupID - see below for explanation
* `-e PUID` for UserID - see below for explanation
It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it <container-name> /bin/bash`.
It is based on ubuntu xenial with s6 overlay, for shell access whilst the container is running do `docker exec -it webgrabplus /bin/bash`.
### User / Group Identifiers
@ -65,16 +62,16 @@ Insert a basic user guide here to get a n00b up and running with the software in
## Info
* Shell access whilst the container is running: `docker exec -it <container-name> /bin/bash`
* To monitor the logs of the container in realtime: `docker logs -f <container-name>`
* Shell access whilst the container is running: `docker exec -it webgrabplus /bin/bash`
* To monitor the logs of the container in realtime: `docker logs -f webgrabplus`
* container version number
`docker inspect -f '{{ index .Config.Labels "build_version" }}' <container-name>`
`docker inspect -f '{{ index .Config.Labels "build_version" }}' webgrabplus`
* image version number
`docker inspect -f '{{ index .Config.Labels "build_version" }}' <image-name>`
`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/webgrabplus`
## Versions

View File

@ -1 +0,0 @@
2 3 * * * /wg++/update.sh

View File

@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bash
cd /wg++/bin
cd /app/wg++/bin || exit
mono WebGrab+Plus.exe "/config"
exit 0
exit 0

1
root/defaults/wg-cron Normal file
View File

@ -0,0 +1 @@
2 3 * * * /defaults/update.sh

View File

@ -1,23 +1,18 @@
#!/usr/bin/with-contenv bash
# Check if Webgrab++ config file exists in config folder.
# copy config
[[ ! -e /config/WebGrab++.config.xml ]] && \
cp /defaults/WebGrab++.config.xml /config/
# Check if Ini folder exists in config folder.
[[ ! -e /config/ini/siteini.pack ]] && \
cp -R /defaults/ini/siteini.pack /config/
# Copy default cron file if not in config
[[ ! -e /config/abc ]] && \
cp /defaults/abc /config/abc
# add cron file for running webgrab+plus
[[ -e /config/abc ]] && \
crontab -u abc /config/abc
[[ ! -e /config/wg-cron ]] && \
cp /defaults/wg-cron /config/wg-cron
crontab -u abc /config/wg-cron
# Change owner for config files and guide.xml
chown -R abc:abc /config \
/data
chmod 766 /config \
# permissions
chown -R abc:abc \
/config \
/data

View File

@ -1,9 +0,0 @@
#!/usr/bin/with-contenv bash
[[ -e /config/WebGrab++.config.xml ]] && \
cd /wg++/bin || exit
exec \
s6-setuidgid abc \
mono WebGrab+Plus.exe "/config"
exit 0