Skip to content

Commit

Permalink
increase test timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
  • Loading branch information
vvoland committed Oct 17, 2024
1 parent a74c891 commit 7ec9dc8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __tests__/docker/install.test.itg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ aarch64:https://cloud.debian.org/images/cloud/bookworm/20231013-1532/debian-12-g
await Docker.printInfo();
await install.tearDown();
})()).resolves.not.toThrow();
}, 1200000);
}, 10 * 60 * 1000);
});
2 changes: 1 addition & 1 deletion src/docker/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ provision:
-O /etc/systemd/system/docker.socket || true
mkdir -p /usr/local/bin
cp /tmp/lima/* /usr/local/bin/
cp {{toolDir}}/* /usr/local/bin/
sed -i 's|^ExecStart=.*|ExecStart=/usr/local/bin/dockerd -H fd://|' /etc/systemd/system/docker.service
sed -i 's|containerd.service||' /etc/systemd/system/docker.service
if ! getent group docker; then
Expand Down
5 changes: 4 additions & 1 deletion src/docker/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {Util} from '../util';
import {limaYamlData, dockerServiceLogsPs1, setupDockerWinPs1} from './assets';
import {GitHubRelease} from '../types/github';
import {HubRepository} from '../hubRepository';
import {randomUUID} from 'node:crypto';

export interface InstallSourceImage {
type: 'image';
Expand Down Expand Up @@ -202,7 +203,9 @@ export class Install {

// this.toolDir is a very long path which causes trouble when mounting it in lima.
// Copy it to a shorter path.
const limaToolsDir = '/tmp/lima';
// Random path
const limaToolsDir = '/tmp/lima/' + randomUUID();
await io.mkdirP(limaToolsDir);

await core.group('Copy tools', async () => {
await Exec.exec('cp', ['-rv', this.toolDir, limaToolsDir]);
Expand Down

0 comments on commit 7ec9dc8

Please sign in to comment.