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

Remove devcontainers #1411

Merged
merged 2 commits into from
Jul 4, 2023
Merged

Remove devcontainers #1411

merged 2 commits into from
Jul 4, 2023

Conversation

tzjames
Copy link
Collaborator

@tzjames tzjames commented Jun 28, 2023

Features and Changes

We recommended at the top of our CONTRIBUTING.md that people do the quickstart of using dev containers. Unfortunately dev containers doesn't work out of the box right now. The are reports that it was slow to use when it was working. It is a good idea in principle, but until we get it working out of the box we shouldn't be recommending it to people as they might waste their time getting it working.

I also removed it from the code base so that VScode doesn't ask people if they want to use it. Once someone gets this working someday they can add this back in again.

For those looking to one day resurrect this, the main issue seems to be that the VARIANT arg in docker-compose.yml doesn't seem to be respected and it ends up using 20-bullseye instead. Mongo doesn't seem to be available in bullseye from the same location so the build was dying there. Also our app doesn't build correctly with node v20 and really needs to be 16.

Testing

Restart VScode and see it not show a bubble about reopening in remote container.

Comment on lines -9 to -13
The fastest way to start contributing to GrowthBook is by using our pre configured devcontainer. A dev container is a Docker container that is specifically configured to provide a full-featured development environment.

1. Install the vscode extension [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers). Launch VS code Quick Open `Ctrl + P` then paste the following command `ext install ms-vscode-remote.remote-containers` and press enter.
2. If you do not have Docker installed follow these instructions [Docker](https://docs.docker.com/engine/install/)
3. Open the Command Palette `Ctrl + Shift + P` then paste the following command `Remote-Containers: Reopen in Container` and press enter.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there other quick start docs we can add instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the full directions are quick enough. Or at least we can't get any quicker unless we actually get the dev container working.

@tzjames tzjames merged commit 58b712a into main Jul 4, 2023
2 checks passed
@tzjames tzjames deleted the ji/rm_dev_containers branch July 4, 2023 10:39
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

3 participants