Move to using ubuntu as base with feature already installed for devcontainer
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- bash, docker, python, ubuntu, zsh
- Domain
- developer-experience, devops, tooling
Research direction
Review devcontainer.json and the existing base-container setup, then trace how python-copier-template and epics-containers consume it. Confirm the Ubuntu LTS image includes uv, bash, zsh, and the bash-config feature, and verify that the generated configuration provides the persistent bash-config mount.
Written by the indexing model from the issue text.
Description
At the moment we:
- Use
python:3.xxas the base container - Make a venv
- Install into it and use that
- Apply the
bash-configfeature on top
This means that vscode is taking up to 30s adding in the feature every time. We were thinking of putting the feature in the base container for epics-containers but publishing this for multiple python bases would be prohibitive for the copier template.
However with uv we now have a different option:
- Publish an ubuntu LTS derived devcontainer with uv, bash and zsh, and the
bash-configfeature installed - Use it for both
python-copier-templateandepics-containers - Get
uvto manage the version of python
This should allow us to have a much better out of the box experience by pulling a single rarely changing base image that will be used for many purposes. The only downside is that every devcontainer.json will need to provide the mount of ${localEnv:HOME}/.config/bash-config to do persistent history, but as we use copier that is easy to arrange for.
As discussed with @gilesknap @callumforrester
- Dominant language
- Jinja
- Stars
- 28
- Forks
- 10
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 4
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DiamondLightSource/python-copier-template
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Ignore renovate updates for ubuntu and ubuntu-devcontainerPossibly taken @KayMohh claimed this 30 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
documentation good first issue
Difficulty 1/5 Under an hour Newbie friendliness 70/100
All issues in DiamondLightSource/python-copier-template
Similar issues
-
formatter-markdown: keep a bare URL followed by a period linked when emphasis delimiters changeOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
swc-project/swc-next-issues#1167 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
tangentcode/tangentswarm#167 ·
Maintainers usually reply within 1 day
-
priority:low ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
OpenHands/extensions#1015 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ardia-browser/ardia#5763 ·
Maintainers usually reply within 1 day