Skip to content

Commit 0c53583

Browse files
grichaclaude
andauthored
Rename local image from workspace:latest to perry:latest (#10)
Standardize on perry naming for local Docker images to match the registry image naming convention (ghcr.io/gricha/perry). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b099bee commit 0c53583

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188
with:
189189
context: ./perry
190190
load: true
191-
tags: workspace:latest
191+
tags: perry:latest
192192
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-test
193193
cache-to: ${{ steps.docker-changes.outputs.changed == 'true' && format('type=registry,ref={0}/{1}:buildcache-test,mode=max', env.REGISTRY, env.IMAGE_NAME) || '' }}
194194

docs/docs/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Common issues and their solutions when working with Perry.
3636
docker ps
3737
```
3838

39-
### "Image 'workspace:latest' not found"
39+
### "Image 'perry:latest' not found"
4040

4141
**Symptoms:** Workspace creation fails with missing image error.
4242

src/shared/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const DEFAULT_AGENT_PORT = 7391;
33
export const SSH_PORT_RANGE_START = 2200;
44
export const SSH_PORT_RANGE_END = 2400;
55

6-
export const WORKSPACE_IMAGE_LOCAL = 'workspace:latest';
6+
export const WORKSPACE_IMAGE_LOCAL = 'perry:latest';
77
export const WORKSPACE_IMAGE_REGISTRY = 'ghcr.io/gricha/perry';
88

99
export const VOLUME_PREFIX = 'workspace-';

test/setup/global.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function cleanupOrphanedResources() {
2929

3030
function imageExists() {
3131
try {
32-
execSync('docker image inspect workspace:latest', { stdio: 'ignore' });
32+
execSync('docker image inspect perry:latest', { stdio: 'ignore' });
3333
return true;
3434
} catch {
3535
return false;
@@ -38,20 +38,20 @@ function imageExists() {
3838

3939
async function buildImage() {
4040
if (process.env.SKIP_DOCKER_BUILD === 'true' && imageExists()) {
41-
console.log('\n✅ Using existing workspace:latest image (SKIP_DOCKER_BUILD=true)\n');
41+
console.log('\n✅ Using existing perry:latest image (SKIP_DOCKER_BUILD=true)\n');
4242
return;
4343
}
4444

4545
if (imageExists() && !process.env.FORCE_DOCKER_BUILD) {
46-
console.log('\n✅ Using existing workspace:latest image\n');
46+
console.log('\n✅ Using existing perry:latest image\n');
4747
return;
4848
}
4949

5050
return new Promise((resolve, reject) => {
5151
console.log('\n🏗️ Building workspace Docker image once for all tests...\n');
5252

5353
const buildContext = path.join(process.cwd(), 'perry');
54-
const proc = spawn('docker', ['build', '-t', 'workspace:latest', buildContext], {
54+
const proc = spawn('docker', ['build', '-t', 'perry:latest', buildContext], {
5555
stdio: 'inherit',
5656
});
5757

0 commit comments

Comments
 (0)