From a7e5065f71532f80352260bacf0e3c5aa776aab7 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Wed, 27 Sep 2023 00:10:42 +0100 Subject: [PATCH 1/3] just mount to docker --- infra/cloud/0001_initialise_playbook.yaml | 8 +------- infra/cloud/nextcloud/all-in-one.sh | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/infra/cloud/0001_initialise_playbook.yaml b/infra/cloud/0001_initialise_playbook.yaml index 579ebcc..c7a7e5e 100644 --- a/infra/cloud/0001_initialise_playbook.yaml +++ b/infra/cloud/0001_initialise_playbook.yaml @@ -35,14 +35,8 @@ - name: Mount data partition ansible.posix.mount: src: /dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:1-part1 - path: /mnt/data + path: /var/lib/docker fstype: ext4 opts: rw,errors=remount-ro,x-systemd.growfs state: mounted become: true - - name: Set data partition permissions - ansible.builtin.file: - path: /mnt/data - owner: debian - group: debian - become: true diff --git a/infra/cloud/nextcloud/all-in-one.sh b/infra/cloud/nextcloud/all-in-one.sh index b169620..1f605aa 100644 --- a/infra/cloud/nextcloud/all-in-one.sh +++ b/infra/cloud/nextcloud/all-in-one.sh @@ -9,7 +9,6 @@ docker run \ --name nextcloud-aio-mastercontainer \ --restart unless-stopped \ --publish 8080:8080 \ ---env NEXTCLOUD_DATADIR=/mnt/data/nextcloud \ --env NEXTCLOUD_UPLOAD_LIMIT=16G \ --env NEXTCLOUD_MAX_TIME=7200 \ --env APACHE_PORT=11000 \ -- 2.40.1 From a0babb5226c84ad6076624e69c84fa694c3f2051 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Wed, 27 Sep 2023 00:10:46 +0100 Subject: [PATCH 2/3] deploy all --- .github/workflows/infra.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index cb0cc9c..0f51db8 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -11,7 +11,8 @@ on: - main env: - DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }} + # DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }} + DEPLOY: all jobs: ansible-playbooks: -- 2.40.1 From deab8ccb1fc85be1c9e7174fe71a38c9a5d3c400 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Wed, 27 Sep 2023 00:11:00 +0100 Subject: [PATCH 3/3] Revert "deploy all" This reverts commit a0babb5226c84ad6076624e69c84fa694c3f2051. --- .github/workflows/infra.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 0f51db8..cb0cc9c 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -11,8 +11,7 @@ on: - main env: - # DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }} - DEPLOY: all + DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }} jobs: ansible-playbooks: -- 2.40.1