Nextcloud » Historie » Version 6
Jeremias Keihsler, 22.02.2021 13:11
1 | 1 | Jeremias Keihsler | h1. Nextcloud |
---|---|---|---|
2 | |||
3 | h2. Install |
||
4 | |||
5 | 4 | Jeremias Keihsler | currently in EPEL-testing ... |
6 | |||
7 | |||
8 | |||
9 | 1 | Jeremias Keihsler | h3. ius-release repo |
10 | 2 | Jeremias Keihsler | |
11 | [[dw_os_cos7:repo_ius_release|IUS repository]] |
||
12 | 3 | Jeremias Keihsler | |
13 | h3. php7.1 |
||
14 | |||
15 | <code> |
||
16 | yum install php71u php71u-mysqlnd php71u-dom php71u-mbstring php71u-gd php71u-pdo php71u-json php71u-xml php71u-zip curl php71u-curl php71u-mcrypt |
||
17 | </code> |
||
18 | 5 | Jeremias Keihsler | |
19 | h2. podman based |
||
20 | |||
21 | taken from https://fedoramagazine.org/nextcloud-20-on-fedora-linux-with-podman/ |
||
22 | |||
23 | <pre><code class="shell"> |
||
24 | sudo dnf install podman |
||
25 | </code></pre> |
||
26 | |||
27 | <pre><code class="shell"> |
||
28 | podman network create nextcloud-net |
||
29 | podman network ls |
||
30 | podman network inspect nextcloud-net |
||
31 | </code></pre> |
||
32 | |||
33 | <pre><code class="shell"> |
||
34 | podman volume create nextcloud-app |
||
35 | podman volume create nextcloud-data |
||
36 | podman volume create nextcloud-db |
||
37 | </code></pre> |
||
38 | |||
39 | <pre><code class="shell"> |
||
40 | podman volume ls |
||
41 | podman volume inspect nextcloud-app |
||
42 | </code></pre> |
||
43 | |||
44 | <pre class="wrap"><code class="shell"> |
||
45 | podman run --detach --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env MYSQL_ROOT_PASSWORD=DB_ROOT_PASSWORD --volume nextcloud-db:/var/lib/mysql --network nextcloud-net --restart on-failure --name nextcloud-db docker.io/library/mariadb:10 |
||
46 | </code></pre> |
||
47 | 6 | Jeremias Keihsler | |
48 | <pre><code class="shell"> |
||
49 | podman run --detach --env MYSQL_HOST=nextcloud-db.dns.podman --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env NEXTCLOUD_ADMIN_USER=NC_ADMIN --env NEXTCLOUD_ADMIN_PASSWORD=NC_PASSWORD --volume nextcloud-app:/var/www/html --volume nextcloud-data:/var/www/html/data --network nextcloud-net --restart on-failure --name nextcloud --publish 8080:80 docker.io/library/nextcloud:20 |
||
50 | </code></pre> |
||
51 | |||
52 | <pre><code class="shell"> |
||
53 | podman container ls |
||
54 | </code></pre> |
||
55 | |||
56 | h3. update container |
||
57 | |||
58 | <pre><code class="shell"> |
||
59 | podman pull mariadb:10 |
||
60 | podman stop nextcloud-db |
||
61 | podman rm nextcloud-db |
||
62 | podman run --detach --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env MYSQL_ROOT_PASSWORD=DB_ROOT_PASSWORD --volume nextcloud-db:/var/lib/mysql --network nextcloud-net --restart on-failure --name nextcloud-db docker.io/library/mariadb:10 |
||
63 | </code></pre> |
||
64 | |||
65 | <pre><code class="shell"> |
||
66 | podman pull nextcloud:20 |
||
67 | podman stop nextcloud |
||
68 | podman rm nextcloud |
||
69 | podman run --detach --env MYSQL_HOST=nextcloud-db.dns.podman --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env NEXTCLOUD_ADMIN_USER=NC_ADMIN --env NEXTCLOUD_ADMIN_PASSWORD=NC_PASSWORD --volume nextcloud-app:/var/www/html --volume nextcloud-data:/var/www/html/data --network nextcloud-net --restart on-failure --name nextcloud --publish 8080:80 docker.io/library/nextcloud:20 |
||
70 | </code></pre> |