Skip to content

Conversation

@matifali
Copy link
Member

Summary

  • Stops the Coder service in the cleanup script
  • Wipes the PostgreSQL data directory and reinitializes it
  • Ensures each marketplace installation gets a unique deployment ID

Test plan

  • Build a GCP Marketplace image with these changes
  • Verify the PostgreSQL data directory is properly cleaned up
  • Check that deployments have unique IDs in telemetry

Fixes #180

🤖 Generated with Claude Code

The GCP Marketplace VM images were all showing the same deployment ID
(68aaf8cf-de7f-452f-8f23-32a9ba7fa864) because Coder was started during
the image build process, which generated and saved a deployment ID in
the PostgreSQL database.

This change:
1. Stops the Coder service in the cleanup script
2. Wipes the PostgreSQL data directory
3. Reinitializes the database structure
4. Ensures PostgreSQL is stopped before image creation

Fixes #180

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@matifali
Copy link
Member Author

Closing in favor of #211

@matifali matifali closed this Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wipe deployment ID and any other Coder-specific information before imaging

1 participant