Nextcloud » Historie » Version 7
Jeremias Keihsler, 19.03.2021 17:43
1 | 1 | Jeremias Keihsler | h1. Nextcloud |
---|---|---|---|
2 | |||
3 | 7 | Jeremias Keihsler | one variant to be tested for Fedora 33 Server: https://www.howtoforge.de/anleitung/wie-man-nextcloud-auf-fedora-32-installiert-und-konfiguriert/ |
4 | |||
5 | 1 | Jeremias Keihsler | h2. Install |
6 | |||
7 | 4 | Jeremias Keihsler | currently in EPEL-testing ... |
8 | |||
9 | |||
10 | |||
11 | 1 | Jeremias Keihsler | h3. ius-release repo |
12 | 2 | Jeremias Keihsler | |
13 | [[dw_os_cos7:repo_ius_release|IUS repository]] |
||
14 | 3 | Jeremias Keihsler | |
15 | h3. php7.1 |
||
16 | |||
17 | <code> |
||
18 | yum install php71u php71u-mysqlnd php71u-dom php71u-mbstring php71u-gd php71u-pdo php71u-json php71u-xml php71u-zip curl php71u-curl php71u-mcrypt |
||
19 | </code> |
||
20 | 5 | Jeremias Keihsler | |
21 | h2. podman based |
||
22 | |||
23 | taken from https://fedoramagazine.org/nextcloud-20-on-fedora-linux-with-podman/ |
||
24 | |||
25 | <pre><code class="shell"> |
||
26 | sudo dnf install podman |
||
27 | </code></pre> |
||
28 | |||
29 | <pre><code class="shell"> |
||
30 | podman network create nextcloud-net |
||
31 | podman network ls |
||
32 | podman network inspect nextcloud-net |
||
33 | </code></pre> |
||
34 | |||
35 | <pre><code class="shell"> |
||
36 | podman volume create nextcloud-app |
||
37 | podman volume create nextcloud-data |
||
38 | podman volume create nextcloud-db |
||
39 | </code></pre> |
||
40 | |||
41 | <pre><code class="shell"> |
||
42 | podman volume ls |
||
43 | podman volume inspect nextcloud-app |
||
44 | </code></pre> |
||
45 | |||
46 | <pre class="wrap"><code class="shell"> |
||
47 | 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 |
||
48 | </code></pre> |
||
49 | 6 | Jeremias Keihsler | |
50 | <pre><code class="shell"> |
||
51 | 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 |
||
52 | </code></pre> |
||
53 | |||
54 | <pre><code class="shell"> |
||
55 | podman container ls |
||
56 | </code></pre> |
||
57 | |||
58 | h3. update container |
||
59 | |||
60 | <pre><code class="shell"> |
||
61 | podman pull mariadb:10 |
||
62 | podman stop nextcloud-db |
||
63 | podman rm nextcloud-db |
||
64 | 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 |
||
65 | </code></pre> |
||
66 | |||
67 | <pre><code class="shell"> |
||
68 | podman pull nextcloud:20 |
||
69 | podman stop nextcloud |
||
70 | podman rm nextcloud |
||
71 | 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 |
||
72 | </code></pre> |