bobmaerten / docker-wallabag Goto Github PK
View Code? Open in Web Editor NEWSources of docker image build for wallabag testing
Sources of docker image build for wallabag testing
Hi,
Since you have the most downloaded and starred docker image for wallabag, I thought I might direct the question at you. Do you have any plans to support wallabag 2.0?
I don't see it documented how to log-in initially once the container is up. I went in and modified config.inc.php by hand to temporarily allow user registration, but it'd be great if you could do this through environment variables or something. Or if there is a way, could you put it in the readme?
Also, you may consider generating a secure salt value in the init script, via openssl rand -base64 32
or some other command. I know the salt value has to be persistent, so you'd have to write a lock file somewhere safe to remember that you've already generated it or something. your call though, it might make it more of a hassle, and lead to data loss if it's not done carefully or people don't understand how to use it. just a thought.
thanks! Otherwise super easy.
Hello, I've run the image and found it very helpful. Unfortunately, I had to change the permissions of the db/
directory to get the server working. This was prompted by the server's error message An error occured: "db" directory must be writeable for your web server user!
Temporary fix:
sudo docker exec -it (CONTAINER ID HERE) /bin/bash
cd /var/www/wallabag
sudo chown -R www-data:www-data db
I'm not too experienced with Docker, but I'm guessing the Dockerfile needs adjusting. It could also be a wallabag issue.
Default wallabag/wallabag does not valid ๐
1.6.1 is released
hey @bobmaerten,
thanks for the nicely done and well documented container recipe. just noticed the following, and thought I'd ping you about it.
relatively minor thing, but since hosting ones own Web data services is often about privacy, I believe the phusion 00_regenerate_host_keys.sh script should be left to the container boot, so that users who run the image from the docker registry rather than building it themselves have unique keys that wouldn't be susceptible to man-in-the-middle attacks. as is, one could use the key from the publicly available image to intercept communication with the docker container.
Hi,
I'm having some trouble here to run the docker-wallabag image.
When I connect to localhost:8080 I get 502 Bad Gateway
I'm using b10651d5f0712df2188ee539a776036e25e24b81
on Ubuntu 14.04.
Here is what I can get from the container :
cat /var/log/nginx/error.log
2014/08/30 09:36:31 [crit] 41#0: *1 stat() "/var/www/wallabag/" failed (13: Permission denied), client: 172.17.42.1, server: localhost, request: "GET / HTTP/1.1", host: "localhost:8080"
2014/08/30 09:36:31 [crit] 41#0: *1 stat() "/var/www/wallabag/" failed (13: Permission denied), client: 172.17.42.1, server: localhost, request: "GET / HTTP/1.1", host: "localhost:8080"
2014/08/30 09:36:31 [crit] 41#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 172.17.42.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost:8080"
2014/08/30 09:36:31 [crit] 41#0: *1 stat() "/var/www/wallabag/favicon.ico" failed (13: Permission denied), client: 172.17.42.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost:8080"
2014/08/30 09:36:31 [crit] 41#0: *1 stat() "/var/www/wallabag/favicon.ico" failed (13: Permission denied), client: 172.17.42.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost:8080"
2014/08/30 09:36:31 [crit] 41#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 172.17.42.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost:8080"
2014/08/30 09:36:31 [crit] 41#0: *1 stat() "/var/www/wallabag/favicon.ico" failed (13: Permission denied), client: 172.17.42.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost:8080"
2014/08/30 09:36:31 [crit] 41#0: *1 stat() "/var/www/wallabag/favicon.ico" failed (13: Permission denied), client: 172.17.42.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost:8080"
2014/08/30 09:36:31 [crit] 41#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 172.17.42.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost:8080"
ps -edf
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 09:34 ? 00:00:00 /usr/bin/python2 -u /sbin/my_init --enable-insecure-key
root 22 1 0 09:34 ? 00:00:00 /usr/bin/runsvdir -P /etc/service log: ................................................................................................................
root 23 22 0 09:34 ? 00:00:00 runsv nginx
root 24 22 0 09:34 ? 00:00:00 runsv php5-fpm
root 25 22 0 09:34 ? 00:00:00 runsv syslog-ng
root 26 22 0 09:34 ? 00:00:00 runsv cron
root 27 22 0 09:34 ? 00:00:00 runsv sshd
root 28 23 0 09:34 ? 00:00:00 nginx: master process nginx
root 30 27 0 09:34 ? 00:00:00 /usr/sbin/sshd -D
root 31 25 0 09:34 ? 00:00:00 syslog-ng -F -p /var/run/syslog-ng.pid --no-caps --default-modules=affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat
root 34 26 0 09:34 ? 00:00:00 /usr/sbin/cron -f
www-data 41 28 0 09:34 ? 00:00:00 nginx: worker process
www-data 42 28 0 09:34 ? 00:00:00 nginx: worker process
www-data 43 28 0 09:34 ? 00:00:00 nginx: worker process
www-data 44 28 0 09:34 ? 00:00:00 nginx: worker process
root 52 1 0 09:34 ? 00:00:00 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
www-data 53 52 0 09:34 ? 00:00:00 php-fpm: pool www
www-data 54 52 0 09:34 ? 00:00:00 php-fpm: pool www
www-data 55 52 0 09:34 ? 00:00:00 php-fpm: pool www
www-data 56 52 0 09:34 ? 00:00:00 php-fpm: pool www
root 282 30 0 09:35 ? 00:00:00 sshd: root@pts/0
root 284 282 0 09:35 pts/0 00:00:00 -bash
root 2672 284 0 09:39 pts/0 00:00:00 ps -edf
ll /var/run
total 52
drwxr-xr-x 6 root root 4096 Aug 30 09:35 ./
drwxr-xr-x 185 root root 4096 Aug 30 09:34 ../
-rw-r--r-- 1 root root 3 Aug 30 09:34 crond.pid
---------- 1 root root 0 Aug 30 09:34 crond.reboot
-rw-r--r-- 1 root root 0 Feb 26 2014 init.upgraded
drwxrwxrwt 2 root root 4096 Jan 29 2014 lock/
-rw-r--r-- 1 root root 111 Feb 26 2014 motd
drwxr-xr-x 2 root root 4096 Jan 29 2014 network/
-rw-r--r-- 1 root root 3 Aug 30 09:34 nginx.pid
-rw-r--r-- 1 root root 2 Aug 30 09:34 php5-fpm.pid
srw-rw-rw- 1 www-data www-data 0 Aug 30 09:34 php5-fpm.sock=
drwxr-xr-x 3 root root 4096 Jan 29 2014 resolvconf/
drwxr-xr-x 2 root root 4096 Feb 26 2014 sshd/
-rw-r--r-- 1 root root 3 Aug 30 09:34 sshd.pid
-rw-r--r-- 1 root root 3 Aug 30 09:34 syslog-ng.pid
-rw-rw-r-- 1 root utmp 384 Aug 30 09:35 utmp
I've seen this "USN-2254-1: PHP vulnerabilities" : http://www.ubuntu.com/usn/usn-2254-1/
And i've tried to change the socket permission to 0660
but without success
Thanks in advance
I get [unable to retrieve full-text content] on any link I clip.
Using Docker version 1.2.0, build fa7b24f on Digital Ocean's Docker host.
and latest Docker image.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.