Skip to content

Commit

Permalink
Remove mirroring, update digital-hub
Browse files Browse the repository at this point in the history
  • Loading branch information
discordianfish committed Nov 30, 2018
1 parent 76d5384 commit 4398edc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
28 changes: 6 additions & 22 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,16 @@ RUN mkdir -p /usr/src/kiwix \
&& mv /usr/src/kiwix/$BIN/* /usr/bin/ \
&& rm -rf /usr/src/kiwix

# Install httrack
RUN apk add --update -t build-deps build-base zlib-dev openssl-dev \
&& wget -O - https://github.com/xroche/httrack/archive/3.48.21.tar.gz \
| tar -C /usr/src -xzf - \
&& cd /usr/src/httrack-3.48.21 \
&& ./configure \
&& make -j8 \
&& make install \
&& apk add --update hostapd dnsmasq s6 nginx openssh py-pip python \
RUN apk add --update hostapd dnsmasq s6 nginx openssh py-pip python \
usb-modeswitch \
&& pip install --upgrade pip \
&& sed -i 's/#PermitRootLogin.*/PermitRootLogin\ yes/' \
/etc/ssh/sshd_config \
&& pip install ka-lite \
&& mkdir /data \
&& adduser -h /data/kalite kalite -D \
&& apk del build-deps \
&& rm -rf /root/.cache/ /usr/src/*

# Mirror Websites
ENV SITES http://elpissite.weebly.com http://elpissite2.weebly.com
RUN mkdir -p /content/www \
&& cd /content/www \
&& httrack --near --disable-security-limits --max-rate 0 \
--connection-per-second 100 $SITES \
&& find . -type f -maxdepth 1 -delete \
&& rm -rf hts-cache

# Go-Questionaire
RUN apk add -t build-deps --update go git libc-dev \
&& export GOPATH=/opt/go \
Expand All @@ -64,10 +48,10 @@ RUN apk add -t build-deps --update go git libc-dev \
&& adduser -h /opt/questionnaire elpis -D

# Digital Hub
ENV DH_REV=65103cf4a
RUN mkdir /content/www/digital-hub \
ENV DH_REV=9829de9
RUN mkdir -p /content/digital-hub \
&& wget -O - https://github.com/ElpisSolar/digital-hub/archive/${DH_REV}.tar.gz \
| tar --strip-components 1 -C /content/www/digital-hub -xzf -
| tar --strip-components 1 -C /content/digital-hub -xzf -

VOLUME [ "/data" ]

Expand Down
4 changes: 1 addition & 3 deletions files/content/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<!-- Landing page -->
<div class="container">
<div class="welcome">

<div class="vertical-align">
<h1><img src="logo.png">Digital Hub</h1>
<p>Welcome to our digital library. Here you can access a collection of free e-books and educational content.</p>
Expand All @@ -22,8 +21,7 @@ <h1><img src="logo.png">Digital Hub</h1>
<div id="nav" class="overlay">
<a href="#" class="closeBtn" onclick="closeNav()">&times</a>
<div class="overlayContent">
<a href="/elpissite-en">Book collection (English)</a>
<a href="/elpissite-ar">Book collection (Arabic)</a>
<a href="/digital-hub">Digital Hub</a>
<a id="kiwix" href=":8080/">Wikipedia &amp; Wikibooks</a>
<a href="/feedback/">Give us feedback</a>
</div>
Expand Down

0 comments on commit 4398edc

Please sign in to comment.