Advertisement
fatherlinux

Code, Configuration, and Data

Nov 20th, 2019
670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.54 KB | None | 0 0
  1. [root@sven learn.fatherlinux.com]# ls
  2. code  config  data  Dockerfile  start.sh
  3. [root@sven learn.fatherlinux.com]# cat start.sh
  4. #!/bin/bash
  5.  
  6. podman run -d --read-only -p 80:80 --name learn.fatherlinux.com \
  7. -v /srv/learn.fatherlinux.com/code/mediawiki:/var/www/html/learn.fatherlinux.com:Z \
  8. -v /srv/learn.fatherlinux.com/config/LocalSettings.php:/var/www/html/learn.fatherlinux.com/LocalSettings.php:Z \
  9. -v /srv/learn.fatherlinux.com/config/learn.fatherlinux.com.conf:/etc/httpd/conf.d/learn.fatherlinux.com.conf:Z \
  10. -v /srv/learn.fatherlinux.com/config/htpasswd:/etc/httpd/conf.d/htpasswd:Z \
  11. -v /srv/learn.fatherlinux.com/data/mariadb/:/var/lib/mysql:Z \
  12. -v /srv/learn.fatherlinux.com/data/images/:/var/www/html/learn.fatherlinux.com/images:Z \
  13. -v /srv/learn.fatherlinux.com/data/skins/:/var/www/html/learn.fatherlinux.com/skins:Z \
  14. --tmpfs /etc \
  15. --tmpfs /var/log/ \
  16. --tmpfs /var/tmp \
  17. localhost/wiki
  18. [root@sven learn.fatherlinux.com]# cat Dockerfile
  19. FROM registry.access.redhat.com/ubi8/ubi-init
  20. MAINTAINER fatherlinux <scott.mccarty@gmail.com>
  21. RUN yum install -y mariadb-server mariadb php php-apcu php-intl php-mbstring php-xml php-json php-mysqlnd
  22. RUN systemctl enable mariadb
  23. RUN systemctl enable httpd
  24. RUN systemctl disable systemd-update-utmp.service
  25. ENTRYPOINT ["/sbin/init"]
  26. CMD ["/sbin/init"]
  27. [root@sven learn.fatherlinux.com]# ls code/
  28. mediawiki
  29. [root@sven learn.fatherlinux.com]# ls config/
  30. Dockerfile  htpasswd  learn.fatherlinux.com.conf  LocalSettings.php
  31. [root@sven learn.fatherlinux.com]# ls data
  32. images  mariadb  skins
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement