Podman » Historie » Version 1
Jeremias Keihsler, 23.09.2021 10:11
1 | 1 | Jeremias Keihsler | h1. Podman |
---|---|---|---|
2 | |||
3 | h2. install |
||
4 | |||
5 | <pre><code class="shell"> |
||
6 | yum install podman |
||
7 | yum install podman-compose |
||
8 | </code></pre> |
||
9 | |||
10 | h2. create container |
||
11 | |||
12 | see also: |
||
13 | https://www.redhat.com/sysadmin/wordpress-container |
||
14 | https://rancher.com/learning-paths/how-to-build-and-run-your-own-container-images/ |
||
15 | https://docs.podman.io/en/latest/markdown/podman-build.1.html |
||
16 | |||
17 | create @~/container.user/wordpress.user/dockerfile@ |
||
18 | |||
19 | <pre> |
||
20 | FROM docker.io/rockylinux/rockylinux |
||
21 | MAINTAINER jke <j@keihsler.com> |
||
22 | RUN dnf module enable -y php:7.4 |
||
23 | RUN yum install -y mariadb-server mariadb php php-apcu php-intl php-mbstring php-xml php-json php-mysqlnd crontabs cronie iputils net-tools;yum clean all |
||
24 | RUN systemctl enable mariadb |
||
25 | RUN systemctl enable httpd |
||
26 | RUN systemctl disable systemd-update-utmp.service |
||
27 | ENTRYPOINT ["/sbin/init"] |
||
28 | CMD ["/sbin/init"] |
||
29 | </pre> |
||
30 | |||
31 | <pre><code class="shell"> |
||
32 | cd ~/container.user/wordpress.user/ |
||
33 | podman build -t wordpress_user . |
||
34 | </code></pre> |