Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@sven learn.fatherlinux.com]# ls
- code config data Dockerfile start.sh
- [root@sven learn.fatherlinux.com]# cat start.sh
- #!/bin/bash
- podman run -d --read-only -p 80:80 --name learn.fatherlinux.com \
- -v /srv/learn.fatherlinux.com/code/mediawiki:/var/www/html/learn.fatherlinux.com:Z \
- -v /srv/learn.fatherlinux.com/config/LocalSettings.php:/var/www/html/learn.fatherlinux.com/LocalSettings.php:Z \
- -v /srv/learn.fatherlinux.com/config/learn.fatherlinux.com.conf:/etc/httpd/conf.d/learn.fatherlinux.com.conf:Z \
- -v /srv/learn.fatherlinux.com/config/htpasswd:/etc/httpd/conf.d/htpasswd:Z \
- -v /srv/learn.fatherlinux.com/data/mariadb/:/var/lib/mysql:Z \
- -v /srv/learn.fatherlinux.com/data/images/:/var/www/html/learn.fatherlinux.com/images:Z \
- -v /srv/learn.fatherlinux.com/data/skins/:/var/www/html/learn.fatherlinux.com/skins:Z \
- --tmpfs /etc \
- --tmpfs /var/log/ \
- --tmpfs /var/tmp \
- localhost/wiki
- [root@sven learn.fatherlinux.com]# cat Dockerfile
- FROM registry.access.redhat.com/ubi8/ubi-init
- MAINTAINER fatherlinux <scott.mccarty@gmail.com>
- RUN yum install -y mariadb-server mariadb php php-apcu php-intl php-mbstring php-xml php-json php-mysqlnd
- RUN systemctl enable mariadb
- RUN systemctl enable httpd
- RUN systemctl disable systemd-update-utmp.service
- ENTRYPOINT ["/sbin/init"]
- CMD ["/sbin/init"]
- [root@sven learn.fatherlinux.com]# ls code/
- mediawiki
- [root@sven learn.fatherlinux.com]# ls config/
- Dockerfile htpasswd learn.fatherlinux.com.conf LocalSettings.php
- [root@sven learn.fatherlinux.com]# ls data
- images mariadb skins
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement