From: Chocobozzz Date: Mon, 3 Jan 2022 10:01:39 +0000 (+0100) Subject: Try to fix docker build X-Git-Tag: v4.1.0-rc.1~185 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=b18a501a0ee898aeb2e34b92de61e682a1894547;hp=cc4bf76c13e38e9065d49161b6e0485657424577;p=github%2FChocobozzz%2FPeerTube.git Try to fix docker build --- diff --git a/server/tests/api/server/proxy.ts b/server/tests/api/server/proxy.ts index c40a4f9b8..2a8ff56d2 100644 --- a/server/tests/api/server/proxy.ts +++ b/server/tests/api/server/proxy.ts @@ -96,7 +96,7 @@ describe('Test proxy', function () { } it('Should succeed import with the appropriate proxy config', async function () { - this.timeout(40000) + this.timeout(120000) await servers[0].kill() await servers[0].run({}, { env: goodEnv }) @@ -111,7 +111,7 @@ describe('Test proxy', function () { }) it('Should fail import with a wrong proxy config', async function () { - this.timeout(40000) + this.timeout(120000) await servers[0].kill() await servers[0].run({}, { env: badEnv }) diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index 9fa03f1a9..ecdd36613 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts @@ -380,7 +380,7 @@ describe('Test multiple servers', function () { describe('Should seed the uploaded video', function () { it('Should add the file 1 by asking server 3', async function () { - this.timeout(10000) + this.timeout(30000) const { data } = await servers[2].videos.list() @@ -396,7 +396,7 @@ describe('Test multiple servers', function () { }) it('Should add the file 2 by asking server 1', async function () { - this.timeout(10000) + this.timeout(30000) const { data } = await servers[0].videos.list() @@ -410,7 +410,7 @@ describe('Test multiple servers', function () { }) it('Should add the file 3 by asking server 2', async function () { - this.timeout(10000) + this.timeout(30000) const { data } = await servers[1].videos.list() @@ -424,7 +424,7 @@ describe('Test multiple servers', function () { }) it('Should add the file 3-2 by asking server 1', async function () { - this.timeout(10000) + this.timeout(30000) const { data } = await servers[0].videos.list() @@ -438,7 +438,7 @@ describe('Test multiple servers', function () { }) it('Should add the file 2 in 360p by asking server 1', async function () { - this.timeout(10000) + this.timeout(30000) const { data } = await servers[0].videos.list() @@ -595,7 +595,7 @@ describe('Test multiple servers', function () { let updatedAtMin: Date it('Should update video 3', async function () { - this.timeout(10000) + this.timeout(30000) const attributes = { name: 'my super video updated', @@ -618,7 +618,7 @@ describe('Test multiple servers', function () { }) it('Should have the video 3 updated on each server', async function () { - this.timeout(10000) + this.timeout(30000) for (const server of servers) { const { data } = await server.videos.list() @@ -669,7 +669,7 @@ describe('Test multiple servers', function () { }) it('Should only update thumbnail and update updatedAt attribute', async function () { - this.timeout(10000) + this.timeout(30000) const attributes = { thumbnailfile: 'thumbnail.jpg' @@ -861,7 +861,7 @@ describe('Test multiple servers', function () { }) it('Should delete a reply', async function () { - this.timeout(10000) + this.timeout(30000) await servers[2].comments.delete({ videoId: videoUUID, commentId: childOfFirstChild.comment.id }) @@ -892,7 +892,7 @@ describe('Test multiple servers', function () { }) it('Should delete the thread comments', async function () { - this.timeout(10000) + this.timeout(30000) const { data } = await servers[0].comments.listThreads({ videoId: videoUUID }) const commentId = data.find(c => c.text === 'my super first comment').id diff --git a/support/docker/production/Dockerfile.bullseye b/support/docker/production/Dockerfile.bullseye index ec0e30e47..6cb1a4e5f 100644 --- a/support/docker/production/Dockerfile.bullseye +++ b/support/docker/production/Dockerfile.bullseye @@ -21,10 +21,10 @@ WORKDIR /app USER peertube -RUN yarn install --pure-lockfile --network-timeout 1200000 \ +RUN yarn install --pure-lockfile --network-timeout 1200000 --network-concurrency 20 \ && npm run build -- $NPM_RUN_BUILD_OPTS \ && rm -r ./node_modules ./client/node_modules \ - && yarn install --pure-lockfile --production --network-timeout 1200000 \ + && yarn install --pure-lockfile --production --network-timeout 1200000 --network-concurrency 20 \ && yarn cache clean USER root