occitech / docker Goto Github PK
View Code? Open in Web Editor NEWDocker images we use at Occitech
Docker images we use at Occitech
Reported by @mokadev
In https://github.com/occitech/docker/blob/master/magento/php5.3/apache/Dockerfile it is from occitech/php:5.3-apache which is not correct ;)
Why not use php:5.4-apache directly?
After trying (quick start)
docker pull occitech/munin
docker run -p 80 occitech/munin:latest
I always got (on localhost:32770)
Munin has not run yet. Please try again in a few moments.
==> /var/log/munin/munin-update.log <==
2021/03/07 13:50:02 [INFO]: Starting munin-update
2021/03/07 13:50:02 [INFO] starting work in 313 for munin/172.17.0.1:4949.
2021/03/07 13:50:02 [FATAL] Socket read from munin failed. Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 256.
2021/03/07 13:50:02 [ERROR] Munin::Master::UpdateWorker<munin;munin> died with '[FATAL] Socket read from munin failed. Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 256.'
2021/03/07 13:50:12 [INFO] Remaining workers: munin;munin
2021/03/07 13:50:12 [INFO] Reaping Munin::Master::UpdateWorker<munin;munin>. Exit value/signal: 18/0
2021/03/07 13:50:12 [INFO] No old data available for failed worker munin;munin. This node will disappear from the html web page hierarchy
2021/03/07 13:50:12 [INFO]: Munin-update finished (10.00 sec)
2021/03/07 13:55:01 [INFO]: Starting munin-update
2021/03/07 13:55:01 [INFO] Process 313 is dead, stealing lock, removing file
2021/03/07 13:55:01 [INFO] starting work in 323 for munin/172.17.0.1:4949.
2021/03/07 13:55:01 [FATAL] Socket read from munin failed. Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 256.
2021/03/07 13:55:01 [ERROR] Munin::Master::UpdateWorker<munin;munin> died with '[FATAL] Socket read from munin failed. Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 256.'
Plutôt que la solution actuelle pour portLinkedTo80
qui ne fonctionne pas partout.
Piste : docker port $(docker ps -a | grep ${WEB_1_NAME:1} | grep "\->80" | awk '{print $1}') 80 | sed s/0.0.0.0://
What about
https://github.com/scanterog/munin-plugin-docker
?
Can it be added to the occitech/docker image ?
RM
part fromRUN rm /etc/php5/apache2/php.ini
RUN rm /etc/php5/cli/php.ini
ADD ./php.ini /etc/php5/apache2/php.ini
ADD ./php.ini /etc/php5/cli/php.ini
php5-crypt
with RUN php5enmod mcrypt
RUN chmod +x /init.sh
by making it runnable in the repoI used the command suggest in README.md with a volume for logs.
This does not work, if the directoy /data/munin does not exist. Webserver does not start, because wrong directory permissions.
$ rm -rf /data/munin
$ docker run \
-ti \
--name=munin \
-p 127.0.0.1:8080:80 \
-e THISNODENAME="munin.example.com" \
-e TZ="Europe/London" \
-e CRONDELAY=2 \
-e NODES="anothernode.example.com:1.2.3.4 anothernode2.example.com:5.6.7.8" \
-v /data/munin/db:/var/lib/munin \
-v /data/munin/logs:/var/log/munin \
-v /data/munin/cache:/var/cache/munin \
occitech/munin:latest
...
/usr/local/bin/run: line 90: /var/cache/munin/www/index.html: No such file or directory
chown: cannot access '/var/cache/munin/www/index.html': No such file or directory
Webside is not accessable
$ curl -v http://127.0.0.1:8080/
...
< HTTP/1.1 403 Forbidden
...
<p>You don't have permission to access this resource.</p>
If I stop this container and start the container again, then the directory exists and the line 90 has no errors.
The webside is empty with the text "Munin has not run yet. Please try again in a few moments." now.
Wait long time not helps. No graphics will be see, because wrong permission for html log.
To fix this, needs to change directory rights after docker was started. This is a simple woraround:
$ docker exec munin chown munin:munin /var/log/munin
Some minutes later Munin website is working.
Pull request #33 fixes this issue completely.
Hi
When i launch the container with kitematic i got this error:
AH00526: Syntax error on line 38 of /etc/apache2/apache2.conf:
DocumentRoot must be a directory
Do i have to pass some environments variable?
Add magento cron to the crontab
Let's lighten the image!
By adding kalenjordan/magerun-addons we could easily automate theme analysis
Its an apparent error but on further investigation I found its not running the php app.
You do https://github.com/occitech/docker/blob/master/magento/php5.5/apache/Dockerfile#L22 which isnt working anymore since docker-library/php@2dc37fa#diff-cdd13b855552defd96c41899f4203964L34
Seems to be working if you sed against /etc/apache2/sites-available/000-default.conf
now
Or stick with /var/www/html
Hi thanks for your work however I'm new to munin and can't make it work on my local computer:
sudo docker run \
--name=munin \
-p 8080:80 \
-e THISNODENAME="myservice" \
-e TZ="UTC" \
-e CRONDELAY=1 \
-v /data/munin/db:/var/lib/munin \
-v /data/munin/logs:/var/log/munin \
-v /data/munin/cache:/var/cache/munin \
munin:latest
I get this:
2019/11/27 22:38:12 [INFO] Remaining workers: munin;munin
2019/11/27 22:38:12 [INFO] Reaping Munin::Master::UpdateWorker<munin;munin>. Exit value/signal: 18/0
2019/11/27 22:38:12 [INFO] No old data available for failed worker munin;munin. This node will disappear from the html web page hierarchy
2019/11/27 22:38:12 [INFO]: Munin-update finished (10.00 sec)
2019/11/27 22:40:01 [INFO]: Starting munin-update
2019/11/27 22:40:01 [INFO] Process 681 is dead, stealing lock, removing file
2019/11/27 22:40:01 [INFO] starting work in 691 for munin/172.17.0.1:4949.
2019/11/27 22:40:01 [FATAL] Socket read from munin failed. Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 254.
2019/11/27 22:40:01 [ERROR] Munin::Master::UpdateWorker<munin;munin> died with '[FATAL] Socket read from munin failed. Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 254.
'
2019/11/27 22:40:11 [INFO] Remaining workers: munin;munin
2019/11/27 22:40:11 [INFO] Reaping Munin::Master::UpdateWorker<munin;munin>. Exit value/signal: 18/0
2019/11/27 22:40:11 [INFO] No old data available for failed worker munin;munin. This node will disappear from the html web page hierarchy
2019/11/27 22:40:11 [INFO]: Munin-update finished (10.00 sec)
No error when I do this :
su -s /bin/bash munin
/usr/share/munin/munin-update --debug --nofork --host localhost --service cpu
And by the way I had to manually create 2 folders in the volume to avoid run.sh errors: /var/cache/munin/www
/var/lib/munin/cgi-tmp
See title
munin:
I added two hosts to the NODES variable with IP addresses 10.10.10.150 and 10.10.10.15.
The run.sh script greps the IP in munin.conf before adding, to make sure it does not duplicate entries, but grepping for "10.10.10.15" matches "10.10.10.150", so it does not add 10.10.10.15 unless you rearrange the NODES list or change the grep in run.sh to something like:
grep -q "${HOST}$" /etc/munin/munin.conf || cat << EOF >> /etc/munin/munin.conf
And for nginx mutliple configurations (like for SF2, laravel, Cakephp, Magento…)
echo 'PassEnv MAGE_RUN_TYPE MAGE_RUN_CODE' >> /etc/apache2/apache2.conf
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.