Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial setup of devcontainer #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jwhitlark
Copy link

Gives a clean-room workspace with little to no setup for experimentation.

Note that the badge Open in Codespace will need to be edited to point at the parent repository. It can always be accessed through the Code button on the github site, by selecting Codespaces instead of Local on the pop-up menu.

@jwhitlark
Copy link
Author

This is ready for you to take a look at. I've not gone through the entire tutorial, but it starts, you can create the app without any other setup, jack-in (selecting the guestbook project you just created, and :dev), type (go) into the repl buffer, and it'll ask you if you want to forward the port and open it in your browser.

**For people to use this with codespaces and the badge, you'll need to update the link in guestbook.md to point at the official repo instead of mine. **

Take if for a spin, and let's talk how to handle docs, db, etc. I think I'd setup docker compose and have it start a real db, all setup with env vars, etc.

A couple of things I've found that are handy:

Settings sync works with this, and the cloud changes setting will transfer saved-but-uncommitted changes between locations.
You can specify a dotfile repo for either codespaces or devcontainers, and have the rest of your setup at hand.
There are lots of ways to handle env-vars.
This all works with branches and PRs, if you want to try something specific in a clean system.
If you use docker compose and add a db, you can include the vscode plugin and you're all set. Or just use the docker-outside-of-docker feature, add the docker plugin, and you can read logs, shell into things, etc.
This also works with LiveShare, so someone could start a session and invite you for learning/debugging purposes.

@jwhitlark jwhitlark marked this pull request as ready for review October 10, 2023 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant