Commit Graph

10 Commits

Author SHA1 Message Date
Andrew Novoselac
7f8e0af2a7 Use the Rails org ruby image in the Rails devcontainer 2024-03-22 09:23:08 -04: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
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
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
Edwin Vlieg
6e7a376b00 Github Codespaces configuration 2021-08-20 19:05:00 +00:00