-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Now the repo has a .devcontainer configuration. Which means that it can run on any VC Code IDE - including a handfuld of others that als support devcontainers.
Note
βοΈ Learning goals in this issue
- Install Docker on you PC
- Clone the repo to your own PC
- Start the devcontainer as a locally hosted Docker container π€
- Create the codepace, run it in the cloud and connect to it from VS Code on your PC πͺ
If you haven't installed VS Code and Docker Desktop already...
Do it now
ποΈββοΈ Exercise
- π Install Docker Desktopπ
- π Test that Docker is working
docker run hello-worldπ- π Install VS Codeπ
Clone the repo to your PC and open it in VS Code. VS Code will recognize that you have a .devcontainer file in your project and offer you to open your container locally using Docker.
Choose "Reopen in container"
Try to open you Docker Desktop app. You'll see that the container is running locally on your PC. When you run bundle exec jekyll serve from the /docs folder you'll see that the site is also hosted from your local machine on `127.0.0.1:4000``
Close VC Code and stop the container. Try this alternative:
Browse to the repository on GitHub and under code, browse to the CodeSpace, right click on it and chose Open In VS Code.
You can achieve the same thing from opening VS Code and from the Command Palette chose "CodeSpaces: Connect to code space" chose your CodeSpace from the list.