Skip to content

Commit 3d35df0

Browse files
committed
docker: add single-image dockerization through submodule
1 parent d5c0e6d commit 3d35df0

17 files changed

Lines changed: 19 additions & 424 deletions

.github/workflows/test-and-deploy-ipv4only.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
image: ${{ steps.image-ref.outputs.image }}
2828
steps:
2929
- uses: actions/checkout@v4
30+
with:
31+
submodules: true
3032

3133
- name: Set up Docker Buildx
3234
uses: docker/setup-buildx-action@v3
@@ -83,6 +85,8 @@ jobs:
8385
concurrency: staging-ipv4.testrun.org
8486
steps:
8587
- uses: actions/checkout@v4
88+
with:
89+
submodules: true
8690

8791
- name: prepare SSH
8892
run: |

.github/workflows/test-and-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
image: ${{ steps.image-ref.outputs.image }}
2828
steps:
2929
- uses: actions/checkout@v4
30+
with:
31+
submodules: true
3032

3133
- name: Set up Docker Buildx
3234
uses: docker/setup-buildx-action@v3
@@ -83,6 +85,8 @@ jobs:
8385
concurrency: staging2.testrun.org
8486
steps:
8587
- uses: actions/checkout@v4
88+
with:
89+
submodules: true
8690

8791
- name: prepare SSH
8892
run: |

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,3 @@ chatmail.zone
168168
# docker
169169
/data/
170170
/custom/
171-
docker/docker-compose.override.yaml
172-
docker/.env

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docker"]
2+
path = docker
3+
url = git@github.com:chatmail/docker.git

doc/source/docker.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ Either:
5858
- Create a service directory and download the compose files::
5959

6060
mkdir -p /srv/chatmail-relay && cd /srv/chatmail-relay
61-
wget https://raw.githubusercontent.com/chatmail/relay/refs/heads/main/docker/docker-compose.yaml
62-
wget https://raw.githubusercontent.com/chatmail/relay/refs/heads/main/docker/docker-compose.override.yaml.example -O docker-compose.override.yaml
61+
wget https://raw.githubusercontent.com/deltachat/docker/refs/heads/main/docker-compose.yaml
62+
wget https://raw.githubusercontent.com/deltachat/docker/refs/heads/main/docker-compose.override.yaml.example -O docker-compose.override.yaml
6363

64-
- or clone the chatmail repo and enter the docker directory::
64+
- or clone the docker repo directly::
6565

66-
git clone https://github.com/chatmail/relay
67-
cd relay/docker
66+
git clone https://github.com/deltachat/docker
67+
cd docker
6868

6969

7070
Customize and start
@@ -231,9 +231,9 @@ switch to Docker:
231231
Building the image
232232
------------------
233233

234-
Clone the repository and build the Docker image::
234+
Clone the repository (including the docker submodule) and build the Docker image::
235235

236-
git clone https://github.com/chatmail/relay
236+
git clone --recurse-submodules https://github.com/chatmail/relay
237237
cd relay
238238
docker/build.sh
239239

docker

Submodule docker added at 7352317

docker/build.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

docker/chatmail-init.service

Lines changed: 0 additions & 14 deletions
This file was deleted.

docker/chatmail-init.sh

Lines changed: 0 additions & 85 deletions
This file was deleted.

docker/chatmail_relay.dockerfile

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)