Skip to content

Commit 1b73df0

Browse files
authored
Merge pull request #167 from nextcloud/enh/28/add-docs-for-arm64
add docs for arm64
2 parents 225038b + 282592f commit 1b73df0

File tree

2 files changed

+51
-40
lines changed

2 files changed

+51
-40
lines changed

develop.md

+5-21
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,24 @@ nextcloud/all-in-one:develop
1414
And you are done :)
1515
It will now also select the developer channel for all other containers automatically.
1616

17-
## How to promote builds from develop to latest
18-
19-
<!---
20-
You can use the Docker CLI to promote builds from develop to latest. Make sure to adjust:
17+
## How to build new containers
2118

22-
- $name
23-
- $digest
19+
Go to https://github.com/nextcloud-releases/all-in-one/actions/workflows/repo-sync.yml and run the workflow that will first sync the repo and then build new container that automatically get published to `develop` and `develop-arm64`.
2420

25-
```shell
26-
export AIO_NAME=$name
27-
export AIO_DIGEST=$digest
28-
docker pull nextcloud/$AIO_NAME@sha256:$AIO_DIGEST
29-
docker tag nextcloud/$AIO_NAME@sha256:$AIO_DIGEST nextcloud/$AIO_NAME\:latest
30-
docker push nextcloud/$AIO_NAME\:latest
31-
```
32-
--->
21+
## How to promote builds from develop to latest
3322

3423
To automatically promoted the latest develop version you can use the following script:
3524

3625
**WARNING:** Make sure to verify that the latest develop tag is what you really want to deploy since someone could have pushed to main and created a new container in between.
3726
```shell
38-
# x64
27+
# Set the name of the container that you want to promote from the develop- to the latest channels
3928
export AIO_NAME=$name
29+
# x64
4030
docker pull nextcloud/$AIO_NAME\:develop
4131
docker tag nextcloud/$AIO_NAME\:develop nextcloud/$AIO_NAME\:latest
4232
docker push nextcloud/$AIO_NAME\:latest
43-
```
44-
45-
**ATTENTION**: don't run the script below since the arm64 containers currently don't work!
46-
```shell
4733
# arm64
48-
export AIO_NAME=$name
4934
docker pull nextcloud/$AIO_NAME\:develop-arm64
5035
docker tag nextcloud/$AIO_NAME\:develop-arm64 nextcloud/$AIO_NAME\:latest-arm64
5136
docker push nextcloud/$AIO_NAME\:latest-arm64
5237
```
53-
Later when the arm64 containers work, we can simply publish to latest and latest-arm64 in a rush by providing the name one time at the top of the script.

readme.md

+46-19
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,56 @@ Included are:
1515
**Found a bug?** Please file an issue at https://github.com/nextcloud/all-in-one
1616

1717
## How to use this?
18-
1. Install Docker on your Linux installations using:
19-
20-
```
21-
curl -fsSL get.docker.com | sudo sh
22-
```
18+
1. Install Docker on your Linux installation using:
19+
```
20+
curl -fsSL get.docker.com | sudo sh
21+
```
2322
2. Make sure to pull the latest image:
23+
```
24+
# For x64 CPUs:
25+
sudo docker pull nextcloud/all-in-one:latest
26+
```
27+
<details>
28+
<summary>Command for arm64 CPUs like the Raspberry Pi 4</summary>
29+
30+
```
31+
# For arm64 CPUs:
32+
sudo docker pull nextcloud/all-in-one:latest-arm64
33+
```
34+
35+
</details>
2436
25-
```
26-
sudo docker pull nextcloud/all-in-one:latest
27-
```
2837
3. Run the following command in order to start the container:
38+
```
39+
# For x64 CPUs:
40+
sudo docker run -it \
41+
--name nextcloud-aio-mastercontainer \
42+
--restart always \
43+
-p 80:80 \
44+
-p 8080:8080 \
45+
-p 8443:8443 \
46+
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
47+
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
48+
nextcloud/all-in-one:latest
49+
```
50+
<details>
51+
<summary>Command for arm64 CPUs like the Raspberry Pi 4</summary>
52+
53+
```
54+
# For arm64 CPUs:
55+
sudo docker run -it \
56+
--name nextcloud-aio-mastercontainer \
57+
--restart always \
58+
-p 80:80 \
59+
-p 8080:8080 \
60+
-p 8443:8443 \
61+
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
62+
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
63+
nextcloud/all-in-one:latest-arm64
64+
```
65+
66+
</details>
2967
30-
```
31-
sudo docker run -it \
32-
--name nextcloud-aio-mastercontainer \
33-
--restart always \
34-
-p 80:80 \
35-
-p 8080:8080 \
36-
-p 8443:8443 \
37-
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
38-
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
39-
nextcloud/all-in-one:latest
40-
```
4168
4. After the initial startup, you should be able to open the Nextcloud AIO Interface now on port 8080 of this server.<br>
4269
E.g. https://internal.ip.of.this.server:8080<br>
4370
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatially by opening the Nextcloud AIO Interface via:<br>

0 commit comments

Comments
 (0)