@atolis-hq/wake 0.4.17 → 0.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -413,18 +413,15 @@ function createSandboxRuntimeApplications(root) {
|
|
|
413
413
|
*/
|
|
414
414
|
async function deploySandboxTag(root, docker, tag, image, overrides) {
|
|
415
415
|
const port = createSandboxDockerPort(docker, sandboxDockerOptions(root, { image, ...overrides }));
|
|
416
|
-
await port.build();
|
|
417
|
-
await port.update();
|
|
418
416
|
const wakeInvocation = overrides?.development?.mode === 'source'
|
|
419
417
|
? ['node', '/app/dist/src/main.js']
|
|
420
418
|
: sandboxWakeInvocation(root);
|
|
419
|
+
const healthcheckRoot = `/tmp/wake-self-update-healthcheck-${tag}`;
|
|
420
|
+
await port.build();
|
|
421
|
+
await port.update();
|
|
421
422
|
await verifyResidentStart(docker, root.config.host.sandbox.containerName, [...wakeInvocation, 'start', '--wake-root', '/wake'].join(' '));
|
|
422
|
-
await port.exec([
|
|
423
|
-
|
|
424
|
-
'tick',
|
|
425
|
-
'--wake-root',
|
|
426
|
-
`/tmp/wake-self-update-healthcheck-${tag}`,
|
|
427
|
-
]);
|
|
423
|
+
await port.exec([...wakeInvocation, 'init', healthcheckRoot]);
|
|
424
|
+
await port.exec([...wakeInvocation, 'tick', '--wake-root', healthcheckRoot, '--no-sandbox']);
|
|
428
425
|
}
|
|
429
426
|
async function rollbackSandboxTag(root, docker, image, development) {
|
|
430
427
|
const port = createSandboxDockerPort(docker, sandboxDockerOptions(root, { image }));
|
|
@@ -124,6 +124,6 @@ export function resolveWakeVersion(options = {}) {
|
|
|
124
124
|
return `g${headHash.slice(0, 7)}`;
|
|
125
125
|
return '0.1.0-dev';
|
|
126
126
|
}
|
|
127
|
-
export const wakeVersion = "v0.4.
|
|
127
|
+
export const wakeVersion = "v0.4.19";
|
|
128
128
|
/** The registry-installable version used by packaged sandbox images. */
|
|
129
129
|
export const wakePackageVersion = packageVersion(defaultRepoRoot) ?? wakeVersion;
|