Skip to content

Add Ubuntu version-specific tags for Docker images #301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

blink-so[bot]
Copy link

@blink-so blink-so bot commented Jun 13, 2025

This PR resolves #282 by adding Ubuntu version-specific tags to prevent workspaces from breaking when the base Ubuntu version changes.

Changes Made

  • Modified build_images.sh: Added logic to extract Ubuntu version from Dockerfile and create additional version-specific tags (e.g., ubuntu-24.04, ubuntu-noble)
  • Updated push_images.sh: Added functionality to push version-specific tags to Docker Hub
  • Updated README.md: Documented the new Ubuntu version-specific tags with usage examples

How It Works

When building Ubuntu images, the scripts now:

  1. Extract the Ubuntu base version from the Dockerfile (e.g., noble)
  2. Map codenames to version numbers (noble24.04)
  3. Create additional tags:
    • codercom/enterprise-base:ubuntu-24.04
    • codercom/enterprise-base:ubuntu-noble

Benefits

  • Stability: Users can pin to specific Ubuntu versions to prevent breaking changes
  • Flexibility: Both version numbers and codenames are supported
  • Backward Compatibility: Existing ubuntu tag continues to work as before

Testing

  • Verified Ubuntu version extraction logic works correctly
  • Tested tag generation with dry-run mode
  • Updated documentation with clear usage examples

Fixes #282

blink-so bot and others added 4 commits June 13, 2025 13:24
- Add support for Ubuntu version-specific tags (e.g., ubuntu-24.04, ubuntu-noble)
- Modify build_images.sh to extract Ubuntu version from Dockerfile and create additional tags
- Update push_images.sh to push version-specific tags to Docker Hub
- Update README.md to document the new Ubuntu version-specific tags
- Resolves issue with workspaces breaking when Ubuntu base version changes

Co-authored-by: matifali <[email protected]>
Add missing blank line before code block in Ubuntu version tags documentation.

Co-authored-by: matifali <[email protected]>
- Update build and push scripts to only support Ubuntu 24.04 (Noble)
- Keep extensible structure for future Ubuntu version support
- Add warning messages for unsupported Ubuntu versions
- Update README to reflect current Ubuntu 24.04 only support

Co-authored-by: matifali <[email protected]>
- Update Dockerfile to use ubuntu:24.04 instead of ubuntu:noble
- Simplify build and push scripts to only create ubuntu-24.04 tags
- Remove codename-based tags (ubuntu-noble) for simplicity
- Update README to reflect simplified approach
- Keep extensible structure for future Ubuntu versions

Co-authored-by: matifali <[email protected]>
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.

Tag with ubuntu version
0 participants