26 Commits
Author SHA1 Message Date
Patrick Linnane 708188dc51 Disable ask mode in Codespaces prebuild
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2026-07-19 19:31:53 -07:00
Ruoyu Zhong 7917e28733 devcontainer: install bash-completion
This gives codespace users a better shell completion experience.
2026-05-09 01:49:43 +08:00
Mike McQuaid d661cffc1f Switch to using main as the default branch
Homebrew/brew has moved to a `main` default branch so we can more move
references from `master` to `main`.
2025-06-24 11:14:57 +01:00
Mike McQuaid 9076213cad devcontainer/on-create-command: fix permissions harder.
This `chmod -t` seems to fix things on other Codespaces so let's try it
here too.
2025-03-19 08:57:13 +00:00
Mike McQuaidandBo Anderson bdeca530ff Migrate Homebrew/bundle to Homebrew/brew
Co-authored-by: Bo Anderson <mail@boanderson.me>
2025-03-19 06:47:01 +00:00
Mike McQuaid 084ddca27a Cleanup and fix homebrew-services migration 2025-03-13 15:22:01 +00:00
Mike McQuaid 68a0ad05dc devcontainer.json: use master image.
For development it feels like it makes sense to use the master image.

While we're here, let VSCode autoformat the devcontainer.json.
2024-11-20 11:34:03 +00:00
Michka PopoffandMike McQuaid 496ece235a Drop Ubuntu 18.04 devcontainer
Ubuntu 18.04 is EOL now, so stop building devcontainers for it.

Also adjust some dates in the documentation.
2024-09-24 08:35:58 +01:00
Issy LongandGitHub 1d22b83363 devcontainer: Fix Codespace repository permissions
As pointed out in https://github.com/Homebrew/brew/commit/8b3be30a839788972a56b44a1ffacf8f7bee4053#r146048190 (thank you, @noahsettersten!), this was nested wrong. JSON is hard!
2024-08-30 20:54:48 +01:00
Issy LongandGitHub 8b3be30a83 Tap bundle and services in Codespaces
- Yes, I wanted to do more Homebrew stuff from Codespaces on my iPad
  because I couldn't be bothered to get out of bed and walk downstairs
  to get my laptop.
- For that I needed my `Homebrew/brew` branch and `brew services`
  tapped, with sufficient permissions for write access so I could
  push commits.
- So I thought I'd do `bundle` as well as it seemed like another
  "would maybe use Codespaces for this" tap.
2024-08-18 22:19:36 +00:00
Rylan Polster 26cd148031 Update dev container recommended extensions 2024-08-15 11:52:43 -04:00
Rylan Polster b26bf95288 Update Ruby LSP config to install necessary gems automatically 2024-08-02 15:52:58 -04:00
Rylan Polster 9ddde17ea5 Add vscode Ruby LSP config and documentation 2024-08-02 10:44:43 -04:00
Okinea Dev 39aaf33340 Removed "settings" section 2024-05-14 11:29:28 +00:00
Okinea Dev 0836cdfbee Added a list of extensions to pre-install in Codespaces. Improved the readability of the configuration 2024-05-14 09:57:17 +00:00
Bo Anderson 34d7a12f6b devcontainer: fix creation error 2024-02-19 18:41:24 +00:00
Bo Anderson 3b1c171184 Further split up Gemfile into groups 2023-09-27 17:33:44 +01:00
Mike McQuaidandGitHub d984ce06f2 Improve Codespaces behaviour
- ensure that homebrew/core is always tapped
- make RuboCop stop complaining about permissions
2023-01-25 16:05:02 +00:00
Mike McQuaid a92c9eed82 style: check more shell scripts.
We were missing a few here so add them. Also, fix the changes in
`on-create-command.sh` that this catches.
2022-11-09 17:29:38 +00:00
Mike McQuaid 709bb23d49 devcontainer/on-create-command: fix prebuild handling.
`CODESPACES_PREBUILD_TOKEN` has been unset as it breaks other things.
2022-11-09 15:38:40 +00:00
Mike McQuaidandGitHub 59f4b5226a tests: test on Ubuntu 18.04. 2022-11-09 14:45:43 +00:00
Mike McQuaidandGitHub bc4274fda0 devcontainer/on-create-command: fix Ubuntu 18.04, add debugging.
Add some debugging information to be able to customise the prebuild/not
cases for this script.

Also, handle `zsh-autosuggestions` not being available for Ubuntu 18.04.
2022-11-07 16:36:57 +00:00
Issy Long 0a950a4c23 .devcontainer/on-create-command: Add openssh-server (for gh cs ssh)
- My Codespaces workflow sometimes involves `gh cs ssh` for a terminal
  and tmux and vim (for better or for worse).
- I tried this on a `Homebrew/brew` Codespace and got this error. But it felt
  weird following that instruction to the letter and bloating the Docker image
  which we by default keep minimal.

```
❯ gh cs ssh
? Choose codespace: Homebrew/brew (master): redesigned spork
error getting ssh server details: failed to start server:
Please check if an SSH server is installed in the container.
If the docker image being used for the codespace does not have an SSH server,
install it in your Dockerfile or, for codespaces that use Debian-based images,
you can add the following to your devcontainer.json:

"features": {
    "ghcr.io/devcontainers/features/sshd:1": {
        "version": "latest"
    }
}
```
2022-11-01 22:59:24 +00:00
Mike McQuaidandGitHub f977ff4892 devcontainer/on-create-command: install Sorbet.
This doesn't take any longer and nice to have it cached.
2022-11-01 15:49:10 +00:00
Mike McQuaidandGitHub d8940d3cae devcontainer/on-create-command: do more stuff.
- fix permissions
- install more gems/formulae
- remove system shellcheck that won't be used
2022-10-31 16:58:58 +00:00
Mike McQuaid dd39b2be64 Add VSCode devcontainers
Should be useful for getting a development environment setup quickly.
2022-10-27 09:18:49 +01:00