diff --git a/.docker/build b/.docker/build index 067b09a..1c19ff5 100755 --- a/.docker/build +++ b/.docker/build @@ -73,7 +73,8 @@ build() { build_image "xfce4"; \ build_image "jwm"; \ build_image "firefox"; \ - build_image "chromium"; + build_image "chromium"; \ + build_image "tor-browser"; fi sudo docker images nurdism/neko @@ -90,6 +91,7 @@ push() { sudo docker push nurdism/neko:jwm sudo docker push nurdism/neko:firefox sudo docker push nurdism/neko:chromium + sudo docker push nurdism/neko:tor-browser fi } diff --git a/.docker/files/tor-browser/Dockerfile b/.docker/files/tor-browser/Dockerfile new file mode 100644 index 0000000..f8b76d3 --- /dev/null +++ b/.docker/files/tor-browser/Dockerfile @@ -0,0 +1,28 @@ +FROM nurdism/neko:openbox + +# +# install dependencies +RUN set -eux; apt-get update; \ + apt-get install -y --no-install-recommends curl xz-utils file libgtk-3-0 libdbus-glib-1-2; \ + # + # clean up + apt-get clean -y; \ + rm -rf /var/lib/apt/lists/* /var/cache/apt/* + +WORKDIR /home/neko +USER neko + +# +# download TOR browser +RUN DOWNLOAD_URI="$(curl -s -N https://www.torproject.org/download/ | grep -Po -m 1 '(?=(dist/torbrowser)).*(?<=.tar.xz)')"; \ + echo "Downloading $DOWNLOAD_URI"; \ + curl -sSL -o tor.tar.xz "https://www.torproject.org/$DOWNLOAD_URI"; \ + tar -xvJf tor.tar.xz; \ + rm -f tor.tar.xz*; + +USER root + +# +# copy configuation file +COPY .docker/files/tor-browser/supervisord.conf /etc/neko/supervisord/tor-browser.conf +COPY .docker/files/tor-browser/openbox.xml /etc/neko/openbox.xml diff --git a/.docker/files/tor-browser/openbox.xml b/.docker/files/tor-browser/openbox.xml new file mode 100644 index 0000000..f288d36 --- /dev/null +++ b/.docker/files/tor-browser/openbox.xml @@ -0,0 +1,763 @@ + + + + + + + + 10 + 20 + + + + + + no + true + yes + normal + + + + + yes + + no + + yes + + no + + 200 + + no + + + + + Smart + +
yes
+ + Primary + + 1 + +
+ + + Clearlooks + NLIMC + + yes + yes + + sans + 8 + + bold + + normal + + + + sans + 8 + + bold + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + bold + + normal + + + + sans + 9 + + bold + + normal + + + + + + + 1 + 1 + + + + 875 + + + + + yes + Nonpixel + + Center + + + + + 10 + + 10 + + + + + + + 0 + 0 + 0 + 0 + + + + TopLeft + + 0 + 0 + no + Above + + Vertical + + no + 300 + + 300 + + Middle + + + + + C-g + + + + leftno + + + rightno + + + upno + + + downno + + + leftno + + + rightno + + + upno + + + downno + + + 1 + + + 2 + + + 3 + + + 4 + + + + + + + + + + + + + + + + + + + + scrot -s + + + + + + + + + + + + + + + + + + + + + + + + yesyes + + + + + + + + + + + + right + + + + + left + + + + + up + + + + + down + + + + + + + + true + Konqueror + + kfmclient openProfile filemanagement + + + + + scrot + + + + + 1 + + 500 + + 400 + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + previous + + + next + + + previous + + + next + + + previous + + + next + + + + + + + + + + + + + + no + + + + + + + + + + + yes + + + + + + + + + + + + + + + + + + + + + + + + + + + top + + + + + + left + + + + + + right + + + + + + bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + vertical + + + horizontal + + + + + + + + + + + + + + + + + previous + + + next + + + + previous + + + next + + + previous + + + next + + + + + + + + + + + + + + + + + + + + previous + + + next + + + previous + + + next + + + + + + + + + + + menu.xml + 200 + + no + + 100 + + 400 + + yes + + yes + + + + + + + +
diff --git a/.docker/files/tor-browser/supervisord.conf b/.docker/files/tor-browser/supervisord.conf new file mode 100644 index 0000000..49cd15b --- /dev/null +++ b/.docker/files/tor-browser/supervisord.conf @@ -0,0 +1,13 @@ +[program:tor-browser] +environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s" +command=/home/neko/tor-browser_en-US/Browser/start-tor-browser --display=%(ENV_DISPLAY)s --setDefaultBrowser --window-size 1280,720 +autorestart=true +priority=800 +user=%(ENV_USER)s +stdout_logfile=/var/log/neko/tor-browser.log +stdout_logfile_maxbytes=100MB +stdout_logfile_backups=10 +redirect_stderr=true +stderr_logfile=/var/log/neko/tor-browser.err.log +stderr_logfile_maxbytes=100MB +stderr_logfile_backups=10