Commit Graph

29 Commits

Author SHA1 Message Date
Akhil G Krishnan
aa10d79bce Upgrade devcontainer to use ruby 3.3.4 2024-07-09 10:25:16 +05:30
wonda-tea-coffee
fb69560bea Delete obsolete version in compose.yaml
The following warning appeared when starting devcontainer.

```
WARN[0000] /home/***/ghq/github.com/rails/rails/.devcontainer/compose.yaml: `version` is obsolete
WARN[0000] /tmp/devcontainercli-***/docker-compose/docker-compose.devcontainer.build-1720224621191.yml: `version` is obsolete
```

In fact, the top-level version element will be obsolete in the compose specification.
https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-top-level-element-obsolete
2024-07-06 09:29:11 +09:00
Rafael Mendonça França
5cfc1f8f56
Remove the default network from the devcontainer compose
And stop exposing the capybara server port to all interfaces.

We were using this just to make sure the selenium container can access
the capybara server but it can with the default bridge network.
2024-06-04 19:18:07 +00:00
Akhil G Krishnan
5f76665023 Upgrade devcontainer to use ruby 3.3.2 2024-05-31 23:46:18 +05:30
Rafael Mendonça França
775cf110fe
Upgrade devcontainer to use 3.3.1 2024-04-23 21:02:00 +00:00
Andrew Novoselac
7f8e0af2a7 Use the Rails org ruby image in the Rails devcontainer 2024-03-22 09:23:08 -04:00
Andrew Novoselac
48fac06233
Rename .devcontainer/docker_compose.yml to compose.yaml
compose.yaml is considered the preferred name for the Compose file.

See https://docs.docker.com/compose/compose-application-model/#the-compose-file for details.
2024-02-14 20:58:46 +00:00
Rafael Mendonça França
f4ef4a52d3
Use Ruby 3.3 in the devcontainer 2024-01-25 19:39:47 +00:00
Rafael Mendonça França
a96c3713a7
Run memcached using docker compose on devcontainer 2023-08-05 02:47:45 +00:00
Rafael Mendonça França
a0d7732e1c
Run redis using docker compose on devcontainer 2023-08-05 02:47:44 +00:00
Rafael Mendonça França
6cc4dc287d
Run mariadb using docker compose on devcontainer 2023-08-05 02:47:43 +00:00
Rafael Mendonça França
451dec7968
Run postgresql using docker compose on devcontainer
This will make easier to make sure the service is running when the
development container is started.

Before after the first time the container was created, if it was
restarted you needed to run the boot.sh script manually to start the
service.
2023-08-05 02:47:42 +00:00
Alex Baldwin
d5b5ce32ae Fix devcontainer trilogy connection for tests
Previously, executing Active Record tests against the trilogy adapter
within a devcontainer would fail with the error message:

```
Trilogy::SyscallError::ENOENT: No such file or directory - trilogy_connect
- unable to connect to /tmp/mysql.sock (ActiveRecord::StatementInvalid)
```
2023-06-20 12:07:01 -04:00
Rafael Mendonça França
0a4d76d3f7
Update devcontainer.json to use Shopify.ruby-lsp extension
rebornix.Ruby is deprecated.
2023-06-20 15:46:16 +00:00
Rafael Mendonça França
b8abf7e04d
Update all the development gems
Also fix permission in the devcontainer in the bundler folder.
2023-01-11 22:59:03 +00:00
Rafael Mendonça França
2c5d61b0a6
Use devcontainer features to install github CLI (#45990)
* Use devcontainer features to install github CLI

* Use new devcontainer image
2022-09-09 18:52:20 -04:00
willnet
b6253ee2a9
Fix building docker container
Building docker container failed due to the imagemagick download URL was 404. So changed it to the correct one.

ref: https://imagemagick.org/script/install-source.php#linux
2022-06-22 18:46:29 +09:00
John Bampton
99fa730aba Change github to GitHub 2022-03-30 05:55:48 +10:00
eileencodes
f136509ad9
Auto-create user and grant privs when creating dbs
Everytime I need to set up Rails locally on a new computer I have to
search for how to do this, then login to mysql, and run all these
commands.

In this change creating the rails user and running the grants is now
part of the `mysql` build rake task. This will default to using the
`root` user and no password. If this becomes problematic we can make it
configurable with env vars. I created the `rails` user twice for each
database defined even though the user is the same. This is in case we
decide to change it later on for arunit2.

This also updates the devcontainer for codespaces to use the rake tasks.
The container requires `sudo` so I had to provide an env var to make
that available.
2022-03-17 08:43:35 -04:00
Rafael Mendonça França
66c9a2c8a9
Fix typos in the script 2021-11-15 22:18:36 +00:00
Rafael Mendonça França
ea26ea7278 Fix the Dockerfile 2021-11-15 21:05:09 +00:00
Rafael Mendonça França
9cbc55a858
Install github cli in dev container 2021-11-15 20:55:57 +00:00
Rafael Mendonça França
cbe2ad0e5f
Fix the devcontainer setup to also fix the permissions of git gems 2021-10-14 16:46:35 +00:00
Rafael Mendonça França
0bba05100d
Fix the development container to set the right permissions to bundler 2021-10-12 22:16:38 +00:00
Rafael Mendonça França
eb04c7f61c Start the mariadb service in the dev container
Signed-off-by: GitHub <noreply@github.com>
2021-09-21 21:04:43 +00:00
Rafael França
7df466c384
Fix name of the development package 2021-09-21 14:08:26 -04:00
Edwin Vlieg
539d41bf5a Install ImageMagick from source for latest version with SVG support 2021-08-23 10:49:51 +00:00
Edwin Vlieg
70cde72623 Add bundle install and yarn install to Dockerfile 2021-08-23 08:44:29 +00:00
Edwin Vlieg
6e7a376b00 Github Codespaces configuration 2021-08-20 19:05:00 +00:00