{"id":13876016,"url":"https://github.com/iloveitaly/asdf-devcontainer","last_synced_at":"2025-08-20T07:05:09.747Z","repository":{"id":136689527,"uuid":"553576120","full_name":"iloveitaly/asdf-devcontainer","owner":"iloveitaly","description":"Devcontainer (for use with GitHub Codespace) setup with asdf support","archived":false,"fork":false,"pushed_at":"2025-04-07T12:00:19.000Z","size":44,"stargazers_count":19,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T13:22:06.839Z","etag":null,"topics":["asdf","asdf-plugin","codespace","codespaces","devcontainer","docker"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iloveitaly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["iloveitaly"]}},"created_at":"2022-10-18T12:32:37.000Z","updated_at":"2025-04-07T12:00:16.000Z","dependencies_parsed_at":"2024-04-01T01:29:42.357Z","dependency_job_id":"48537e3a-cd72-41a6-a6aa-f8972d841921","html_url":"https://github.com/iloveitaly/asdf-devcontainer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iloveitaly%2Fasdf-devcontainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iloveitaly%2Fasdf-devcontainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iloveitaly%2Fasdf-devcontainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iloveitaly%2Fasdf-devcontainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iloveitaly","download_url":"https://codeload.github.com/iloveitaly/asdf-devcontainer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250545555,"owners_count":21448229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asdf","asdf-plugin","codespace","codespaces","devcontainer","docker"],"created_at":"2024-08-06T06:00:57.120Z","updated_at":"2025-04-24T01:41:35.311Z","avatar_url":"https://github.com/iloveitaly.png","language":"Shell","readme":"# ASDF Devcontainer for GitHub Codespaces\n\nI've been having fun playing with GitHub codespaces. One of the things that has seemed odd to me is the language-specific\ndevelopment environments. Most projects—even small side projects—have multiple languages. Composing these images feels\nmessy. I've always enjoyed `asdf` for managing language versions in a unified fashion.\n\nThis project builds a devcontainer image (for use with GitHub Codespace) setup with asdf support. It also includes a nice\nutility script for installing all asdf plugins, finding all `.tool-versions` files, installing the versions specified,\nand starting up a `docker-compose.yml` if one exists.\n\n[Here's my blog post which walks through this in detail.](http://mikebian.co/my-experience-with-github-codespaces/)\n\nMain design goals:\n\n* Include all relevant packages that most popular languages require for install. The `Dockerfile` is very aggressive with\n  including many packages so the container can install asdf packages in many languages. I am no sysadmin so there may be\n  negative side effects with this approach.\n* Fix homebrew not working due to out of date image. This means `apt-get update` in the build, combined with a monthly\n  gh actions cron, fixes this.\n* Easily install all asdf plugins used in a project. `/asdf-post-create.sh` finds all `.tool-versions` included in the repo\n  and installs the relevant asdf plugins.\n* Easily start `docker-compose` services. For instance, if your project requires postgres + redis, you can include a `docker-compose.yml`\n  file in `.devcontainer/` and it will be started when you run `/asdf-post-create.sh`.\n\nHere are the languages I've confirmed compile and run via asdf on this image:\n\n* Elixir + Erlang\n* Python\n* Ruby\n* NodeJS\n* Deno\n* Bun\n* PHP\n\n## Usage\n\nCheck out `devcontainer-example` folder for how to use this in your application.\n\nHere's how to easily copy the example into your project:\n\n```shell\nmkdir .devcontainer \u0026\u0026 cd .devcontainer \u0026\u0026 curl https://codeload.github.com/iloveitaly/asdf-devcontainer/tar.gz/main | tar -xz --strip=2 asdf-devcontainer-main/devcontainer-example\n```\n\nIf you clone the repo locally, here's a quick script to copy:\n\n```shell\ncp -R ~/Projects/asdf-devcontainer/devcontainer-example your-new-project/.devcontainer\n```\n\nHere's what your `devcontainer.json` should look like:\n\n```json\n{\n\t\"image\": \"iloveitaly/asdf-devcontainer:0-ubuntu-22.04\",\n\t\"postCreateCommand\": \"/asdf-post-create.sh \u0026\u0026 bin/setup\",\n\t\"remoteUser\": \"vscode\",\n\t\"features\": {\n\t\t\"homebrew\": \"latest\",\n\t\t\"ghcr.io/devcontainers/features/sshd:1\": {\n\t\t\t\"version\": \"latest\"\n\t\t},\n\t\t\"ghcr.io/devcontainers/features/docker-in-docker:1\": {\n\t\t\t\"version\": \"latest\",\n\t\t\t\"dockerDashComposeVersion\":\"v2\"\n\t\t}\n\t}\n}\n```\n\n## Development\n\nEasiest way to iterate on this image is to setup a codespace and rebuild the Dockerfile. Some tips:\n\n* What base variants exist? `http https://mcr.microsoft.com/v2/vscode/devcontainers/base/tags/list | fzf`\n* Build on a different base variant `docker build -t asdf-devcontainer . --build-arg VARIANT=dev-ubuntu`\n* Run a shell inside the image `docker run --rm -it asdf-devcontainer bash -lc `\n* Get github webhook structure for github actions development `gh api repos/iloveitaly/asdf-devcontainer/events`\n* [View all available devcontainer features](https://github.com/devcontainers/features/tree/main/src)\n* [Devcontainers open source spec](https://containers.dev/implementors/json_reference/)\n","funding_links":["https://github.com/sponsors/iloveitaly"],"categories":["Shell","docker"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filoveitaly%2Fasdf-devcontainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filoveitaly%2Fasdf-devcontainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filoveitaly%2Fasdf-devcontainer/lists"}