Add tests for backend asset handling and frontend boot sequence, remove outdated MOTD script, and add icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
OverlordandClaude Bot committed 2026-10-13 15:53:41 +02:00
1 parent 0ad5b5f44f
commit 7937879ace
34 files changed
+613 -116

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ describe('containerSpec', () => {
});
it('mounts host paths read only', () => {
expect(host.Binds).toEqual(['/srv/content:/srv/www:ro', '/srv/status:/var/status:ro']);
expect(host.Binds).toEqual(['/srv/content:/home/guest:ro', '/srv/status:/var/status:ro']);
expect(Object.values(host.Tmpfs).every((options) => options.includes('noexec'))).toBe(true);
});
+4 -6
View File
@@ -37,11 +37,9 @@ export function containerSpec(config: SpawnerConfig, sessionId: string, expiresA
NanoCpus: 500_000_000,
PidsLimit: 50,
Ulimits: [{ Name: 'nofile', Soft: 256, Hard: 256 }],
Tmpfs: {
'/home/guest': 'size=8m,mode=1777,noexec,nosuid',
'/tmp': 'size=8m,noexec,nosuid',
},
Binds: [`${config.contentDir}:/srv/www:ro`, `${config.statusDir}:/var/status:ro`],
// The content is the read only home directory, so /tmp is the only writable place.
Tmpfs: { '/tmp': 'size=8m,noexec,nosuid' },
Binds: [`${config.contentDir}:/home/guest:ro`, `${config.statusDir}:/var/status:ro`],
LogConfig: { Type: 'none', Config: {} },
AutoRemove: true,
},
@@ -91,7 +89,7 @@ export class SandboxManager {
return created.Id;
}
/** Attaches before starting, so the motd and first prompt are not lost. */
/** Attaches before starting, so the first prompt is not lost. */
async attach(containerId: string): Promise<Socket>
{
const container = await this.managed(containerId);