hotfix: add integrated Docker healthcheck

Refs #1400
This commit is contained in:
Kai (Tam Nhu) Tran
2026-05-29 11:16:19 -04:00
committed by GitHub
parent 2a5c99f624
commit 0e3383d31d
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -45,4 +45,7 @@ RUN chmod +x /entrypoint-integrated.sh \
EXPOSE 3000 8085 8317
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD node -e "const http=require('http');const probe=(url)=>new Promise((resolve)=>{const req=http.get(url,(res)=>{res.resume();resolve(res.statusCode<400);});req.on('error',()=>resolve(false));req.setTimeout(4500,()=>{req.destroy();resolve(false);});});Promise.all([probe('http://127.0.0.1:3000/'),probe('http://127.0.0.1:8317/')]).then((results)=>process.exit(results.every(Boolean)?0:1));"
ENTRYPOINT ["/entrypoint-integrated.sh"]
@@ -35,4 +35,12 @@ describe('docker release workflow context', () => {
/Verify promoted tags are anonymously pullable[\s\S]*DOCKER_CONFIG="\$\{CLEAN_DOCKER_CONFIG\}" docker pull/
);
});
test('gives the raw integrated image a Docker healthcheck for release smoke tests', () => {
const dockerfile = readFileSync(join(repoRoot, 'docker/Dockerfile.integrated'), 'utf8');
expect(dockerfile).toContain('HEALTHCHECK');
expect(dockerfile).toContain('127.0.0.1:3000');
expect(dockerfile).toContain('127.0.0.1:8317');
});
});