WIP: spike: add devcontainers #74
Draft
Luke-Watts
wants to merge 3 commits from
spike/add-devcontainers into main
pull from: spike/add-devcontainers
merge into: msl:main
msl:main
msl:chore/deps-upgrade-django
msl:chore/enable-errors-for-deprecation-warning
msl:chore/django-upgrade
msl:chore/pull-in-migration-from-production
msl:prod
msl:chore_quell_malformed_rq
msl:chore_prod_catchup_20260225
msl:fix/servicelog-styled-element-on-crud
msl:feat/pettycash-reports-reimbursements
msl:update-sbom-238
msl:feat_api-unk-tags
msl:chore/empty-commit
msl:fix/remove-new-tab
msl:chore/merge-migrations
msl:fix/drop-unused-property
msl:update-sbom-202
msl:fix/petty-cash-reports-iteration
msl:fix/pettycash-reports-remove-unused
msl:fix/pettycash-reports-group-by-sku-name
msl:feat/pettycash-delete
msl:fix/match-against-description
msl:feat/pettycash-reports-iteration
msl:feat/petty-cash-reports
msl:refactor/drop-deprecated-methods
msl:feat/django-5-remove-use-of-deprecated-method
msl:feat/drop-use-of-django-six
msl:fix/acl-queryset-missing-method
msl:refactor/adopt-new-active-method
msl:refactor/namespace-management-commands
msl:refactor/acl-split-models-over-multiple-files
msl:refactor/move-factory-to-member
msl:refactor/split-models-over-multiple-files
msl:update-sbom-134
msl:fix/manage-permissions-on-venv
msl:chore/django-v5-migration-admin
msl:chore/django-v5-migration-a-c
msl:feat/adds-passwordless-login-url-capability
msl:update-sbom-111
msl:feat/adds-login-link
msl:test/introduce-pytest-coverage-of-terminal-api
msl:refactor/nest-model-tests
msl:update-sbom-85
msl:fix/capture-stale-checkin-datetime
msl:feat/checkout-should-include-recent-use
msl:update-sbom-77
msl:feat/reorder-navigation
msl:feat/adopt-time-element
msl:update-sbom-71
msl:feat/agenda-with-participants
msl:docs/outline-deployment-workflow
msl:feat/agenda-notify-about-upcoming-events
msl:fix/agenda-with-notifications
msl:chore/ci-migrate-to-forgejo
msl:update-sbom-7
msl:chore/logging-for-cron
msl:update-sbom-21
msl:update-sbom-18
msl:update-sbom-17
msl:update-sbom-16
msl:feat/get-if-modified-sku
msl:feat/upgrade-to-django-v5
msl:feat-tagdumper
msl:feat/drop-ultimaker
msl:update-sbom-12
msl:feat/update-agenda-view
msl:feat/add-chores-detail
msl:chore/apply-missing-migrations
msl:fix/events-that-are-happening-now
msl:feat/inline-chores-notifications
msl:fix/petty-cash-styling
msl:feat/adopt-django-oauth-toolkit
msl:chore/annotated-output
msl:feat/introduce-oauth
msl:hotfix/nodered-ws-url
msl:hotfix/nodered
msl:feat_acl_extra_info
msl:chore/align-python-verison
msl:feat-claims
msl:chore/ci-add-test-runnner
msl:delete-xs
msl:fix/pre-commit-fixes
No reviewers
Labels
No labels
Draft
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
msl/intranet!74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "spike/add-devcontainers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
This PR adds Dev Container support to the Makerspace Leiden CRM project, providing a pre-configured, consistent development environment that works across VS Code, Dev Containers CLI, and Docker.
Why
To lower the barrier to contribution by eliminating manual setup. New contributors can start developing with just Docker installed—no need to manually configure Python, dependencies, databases, or tooling.
Changes
.devcontainer/Dockerfile.devcontainer/devcontainer.json.devcontainer/postCreateCommand.sh.devcontainer/README.mdCONTRIBUTING.mdREADME.mdINSTALL.md.claude/settings.local.jsonDev Container Features
uv syncadmin/admin123)LOAD_DEMO_DATA=true)Usage
VS Code
http://localhost:8000→ Login:admin/admin123Dev Containers CLI
Docker
Checks
✅ All CI tests passing (1m36s - 1m38s)
spike: add devcontainersto WIP spike: add devcontainersWIP spike: add devcontainersto WIP: spike: add devcontainersMy admin user could not be automatically created. I get the following output in the console:
When I run the failing script manually, I get this:

On my machine, it was fixed by removing the first argument "admin", and then the username is just the email address "admin@makerspaceleiden.nl". I don't know why it doesn't work otherwise though, as my IntelliSense also just says there's 3 parameters (4 if you include
self): username, email and password. Maybe there's some version discrepancy somewhere?the dev container also keeps needing to reconnect for me, as it appears Podman hangs a lot when I try to run this project.
I use Podman instead of Docker as I didn't want to violate the docker desktop licensing rules. I have run other containers before that work fine.
We can probably strip out the admin user creation in the postCreateCommand.sh as we already create one during the loaddemo.sh script.
Credentials for this user are,
username: admin@admin.nl
password: 1234
@Ference-Nieuwkerk wrote in #74 (comment):
Can you confirm the steps you took to get to this output?
@Ference-Nieuwkerk wrote in #74 (comment):
To my knowledge Docker Desktop is freely available for education, open source and non-commercial work. Do the logs either from the container or podman suggest a potential reason for the crashing?
I can't remember if you're on a MacOS, but if so I can recommend https://docs.orbstack.dev as an alternative.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.