Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 2.43 KB

dev_container.md

File metadata and controls

51 lines (37 loc) · 2.43 KB

Dev Containers

The Visual Studio Code Dev Containers extension lets you use a Docker container as a full-featured development environment.

Steps to install and use dev Containers -

1. Install docker

Windows / macOs

Linux

2. Install Visual Studio Code


Clone the repo and open it in vscode

git clone https://github.com/IRIS-NITK/IRIS-RoR-Bootcamp-2022
cd IRIS-RoR-Bootcamp-2022
code .

3. Open the folder in dev container

  • Open the repo in VS code and press Ctrl + Shift + p to bring up the Command Palette, and search for command Dev Containers: Reopen in Container and execute it. This uses the dev container config file inside .devcontainer folder to create a new dev container.

dev_cont

  • The VS Code window will reload and start building the dev container. A progress notification provides status updates.
  • After the build completes, VS Code will automatically connect to the container.

The folder will be reopened inside a Debian container. The container has rvm, node and yarn preinstalled so you can get started off working with rails.

image


Once done head over here, to learn about RVM and gemsets.