maintenance_tasks icon indicating copy to clipboard operation
maintenance_tasks copied to clipboard

Add .devcontainer config

Open rafaelfranca opened this issue 4 years ago • 5 comments

This config can be used with GitHub Codespaces and VSCode Remote - Containers, so it make easier to contributors to get a working development environment.

rafaelfranca avatar Dec 02 '21 20:12 rafaelfranca

It is very easy to get started. If you fork this repository for example, and in your account enable code spaces. You just need to press this button. Screen Shot 2021-12-02 at 4 21 10 PM

VSCode Remote - Container. You only need to open the command pallet and select Remote-Containers: Clone Repository in container Volume and follow the instructions. https://code.visualstudio.com/docs/remote/containers-tutorial

rafaelfranca avatar Dec 02 '21 21:12 rafaelfranca

Does this handle the installation of PostgreSQL? That's something I ran into locally when I tried to bundle install, because the pg gem needed some part of it to compile the native extensions.

The development headers (libpq) are in the base image. If we want the postgresql server I need to add.

rafaelfranca avatar Dec 02 '21 22:12 rafaelfranca

I can't seem to get codespaces working on a fork, but using this as a local development container works well. Maybe we need the main repo to have this config first?

In order to run tests, we need chrome for the webdrivers gem because we have system tests.

gmcgibbon avatar Dec 03 '21 00:12 gmcgibbon

Just a quick update: pg is not a development requirement anymore, though we still need to look into being able to run system tests

nvasilevski avatar Jan 27 '23 15:01 nvasilevski

@rafaelfranca are you still interested in working on this?

gmcgibbon avatar Jan 19 '24 20:01 gmcgibbon