diff options
Diffstat (limited to 'cypress/dockerNode.ts')
-rw-r--r-- | cypress/dockerNode.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cypress/dockerNode.ts b/cypress/dockerNode.ts index 33c2829c9d0..14ca7b936b1 100644 --- a/cypress/dockerNode.ts +++ b/cypress/dockerNode.ts @@ -82,7 +82,12 @@ export const startNextcloud = async function(branch: string = getCurrentGitBranc Image: SERVER_IMAGE, name: CONTAINER_NAME, HostConfig: { - Binds: [], + Mounts: [{ + Target: '/var/www/html/data', + Source: '', + Type: 'tmpfs', + ReadOnly: false, + }], }, Env: [ `BRANCH=${branch}`, @@ -90,6 +95,13 @@ export const startNextcloud = async function(branch: string = getCurrentGitBranc }) await container.start() + // Set proper permissions for the data folder + await runExec(container, ['chown', '-R', 'www-data:www-data', '/var/www/html/data'], false, 'root') + await runExec(container, ['chmod', '0770', '/var/www/html/data'], false, 'root') + + // Init Nextcloud + // await runExec(container, ['initnc.sh'], true, 'root') + // Get container's IP const ip = await getContainerIP(container) |