-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
feat: vscode devcontainer #2335
Conversation
I don't think this is a good idea (to add the dev environment specifics to the repo) since some users like me don't use docker during development, and some not even VSCode. But I agree about adding your setup as a suggestion in the |
The purpose of this proposal is to offer an alternative to the existing methods available. While there are several installation options provided in The VSCode setup is particularly interesting because it not only enables running Jekyll but also automatically integrates Remote Development has 5M+ installations.
Do you mean to add the description to |
I don't think devcontainers are a feature specific to VS Code: https://containers.dev/supporting |
Exactly. Maybe write the content of the file and how/where to create it in As for the install instructions we should remove the legacy information from the local install. It works, it is just not the best solution. But for some reasons a user might not be able to install docker in its environment, so it is an alternative. |
That's okay for me. It was just an offer to add another method to user. I'am not going to fight for dev container integration :-) I changed the PR according to your input.
In my humble opinion, I would argue that over 23 million people use development containers - it is the fourth most frequently installed Visual Studio Code extension. Regarding unnecessary files, it might be beneficial to eliminate one of those two Docker Compose files (for instance, |
In this matter I think it's best to include @alshedivat and @pourmand1376 on this discussion. |
Hi. I wish I've got involved in the conversation a little sooner. Since @george-gca has commented on this PR and my opinion is a little different. I like the idea of having dev containers. I installed it in But I am not totally happy with the way it is presented in And If the person doesn't know anything about devcontainers, he can just ignore the prompt about installing devcontainers. He can also choose So, I am pro with the idea of having support for devcontainers but I want not to pollute our |
Do you know how to do this? This PR is still up to modifications @pourmand1376. |
So in summary, I see four possible solutions:
I hope that this correctly summarizes everything. We had one additional change (removing the legacy variant form I'm open for any solution. Tell me what you prefer. |
Thanks @george-gca, I know how to change it but I wanted us to first come to a conclusion about how to present this PR then we can change it. @CheariX
|
Ok I can live with one single new unused file (at least for my setup) in the repo, no problem haha. So I am down for adding it in the repo. Regarding the
What about this part @pourmand1376? Any thoughts? |
Hi again, @george-gca I totally agree. I think we've arrived to a conclusion. Can you add the changes please, @CheariX? |
f628e8a
to
df09022
Compare
Okay, hopefully, I integerated everything according to the discussion. I decided to to a force push into this PR's changes because it had lots of back and forth. Now it is a clean single commit. |
Is this part implemented? |
The button is a VSCode feature, see the Screenshot in OP. Would you like me to include this information in the |
No, it is fine. Just fixed a few capitalization changes. Thanks for your contribution. |
Thank you guys. @george-gca @CheariX |
I added a [Remote Development Containers](https://code.visualstudio.com/docs/devcontainers/tutorial) in Visual Studio Code (VSCode). Lots of people like to develop in Containers to have a clean system. With this PR, it is possible to work with al-folio without any installation (except for VS Code, its Remote Dev Container extension, and Docker). Once you've opened the `al-folio` repository, a prompt will appear requesting to reopen the project within a container. <img width="541" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/2963446f-8e42-4df1-9e8c-22691d78b7e4"> Upon doing so, Jekyll will automatically start within the container and prompt you to open the website's preview sidebar directly in VSCode or using your Browser. Additionally, it installs extensions for `liquid` and Prettier (`npx prettier`). Files are formatted using `al-folios`-prettier settings (`.prettierrc`) to streamline pull request submission. Additionally, the performance seems to be much better compared to the `docker-compose`setup, see alshedivat#2333. --------- Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
I added a [Remote Development Containers](https://code.visualstudio.com/docs/devcontainers/tutorial) in Visual Studio Code (VSCode). Lots of people like to develop in Containers to have a clean system. With this PR, it is possible to work with al-folio without any installation (except for VS Code, its Remote Dev Container extension, and Docker). Once you've opened the `al-folio` repository, a prompt will appear requesting to reopen the project within a container. <img width="541" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/2963446f-8e42-4df1-9e8c-22691d78b7e4"> Upon doing so, Jekyll will automatically start within the container and prompt you to open the website's preview sidebar directly in VSCode or using your Browser. Additionally, it installs extensions for `liquid` and Prettier (`npx prettier`). Files are formatted using `al-folios`-prettier settings (`.prettierrc`) to streamline pull request submission. Additionally, the performance seems to be much better compared to the `docker-compose`setup, see alshedivat#2333. --------- Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
I added a [Remote Development Containers](https://code.visualstudio.com/docs/devcontainers/tutorial) in Visual Studio Code (VSCode). Lots of people like to develop in Containers to have a clean system. With this PR, it is possible to work with al-folio without any installation (except for VS Code, its Remote Dev Container extension, and Docker). Once you've opened the `al-folio` repository, a prompt will appear requesting to reopen the project within a container. <img width="541" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/2963446f-8e42-4df1-9e8c-22691d78b7e4"> Upon doing so, Jekyll will automatically start within the container and prompt you to open the website's preview sidebar directly in VSCode or using your Browser. Additionally, it installs extensions for `liquid` and Prettier (`npx prettier`). Files are formatted using `al-folios`-prettier settings (`.prettierrc`) to streamline pull request submission. Additionally, the performance seems to be much better compared to the `docker-compose`setup, see alshedivat#2333. --------- Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
I added a [Remote Development Containers](https://code.visualstudio.com/docs/devcontainers/tutorial) in Visual Studio Code (VSCode). Lots of people like to develop in Containers to have a clean system. With this PR, it is possible to work with al-folio without any installation (except for VS Code, its Remote Dev Container extension, and Docker). Once you've opened the `al-folio` repository, a prompt will appear requesting to reopen the project within a container. <img width="541" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/2963446f-8e42-4df1-9e8c-22691d78b7e4"> Upon doing so, Jekyll will automatically start within the container and prompt you to open the website's preview sidebar directly in VSCode or using your Browser. Additionally, it installs extensions for `liquid` and Prettier (`npx prettier`). Files are formatted using `al-folios`-prettier settings (`.prettierrc`) to streamline pull request submission. Additionally, the performance seems to be much better compared to the `docker-compose`setup, see alshedivat#2333. --------- Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
I added a [Remote Development Containers](https://code.visualstudio.com/docs/devcontainers/tutorial) in Visual Studio Code (VSCode). Lots of people like to develop in Containers to have a clean system. With this PR, it is possible to work with al-folio without any installation (except for VS Code, its Remote Dev Container extension, and Docker). Once you've opened the `al-folio` repository, a prompt will appear requesting to reopen the project within a container. <img width="541" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/2963446f-8e42-4df1-9e8c-22691d78b7e4"> Upon doing so, Jekyll will automatically start within the container and prompt you to open the website's preview sidebar directly in VSCode or using your Browser. Additionally, it installs extensions for `liquid` and Prettier (`npx prettier`). Files are formatted using `al-folios`-prettier settings (`.prettierrc`) to streamline pull request submission. Additionally, the performance seems to be much better compared to the `docker-compose`setup, see alshedivat#2333. --------- Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
I added a [Remote Development Containers](https://code.visualstudio.com/docs/devcontainers/tutorial) in Visual Studio Code (VSCode). Lots of people like to develop in Containers to have a clean system. With this PR, it is possible to work with al-folio without any installation (except for VS Code, its Remote Dev Container extension, and Docker). Once you've opened the `al-folio` repository, a prompt will appear requesting to reopen the project within a container. <img width="541" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/2963446f-8e42-4df1-9e8c-22691d78b7e4"> Upon doing so, Jekyll will automatically start within the container and prompt you to open the website's preview sidebar directly in VSCode or using your Browser. Additionally, it installs extensions for `liquid` and Prettier (`npx prettier`). Files are formatted using `al-folios`-prettier settings (`.prettierrc`) to streamline pull request submission. Additionally, the performance seems to be much better compared to the `docker-compose`setup, see alshedivat#2333. --------- Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
I added a [Remote Development Containers](https://code.visualstudio.com/docs/devcontainers/tutorial) in Visual Studio Code (VSCode). Lots of people like to develop in Containers to have a clean system. With this PR, it is possible to work with al-folio without any installation (except for VS Code, its Remote Dev Container extension, and Docker). Once you've opened the `al-folio` repository, a prompt will appear requesting to reopen the project within a container. <img width="541" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/2963446f-8e42-4df1-9e8c-22691d78b7e4"> Upon doing so, Jekyll will automatically start within the container and prompt you to open the website's preview sidebar directly in VSCode or using your Browser. Additionally, it installs extensions for `liquid` and Prettier (`npx prettier`). Files are formatted using `al-folios`-prettier settings (`.prettierrc`) to streamline pull request submission. Additionally, the performance seems to be much better compared to the `docker-compose`setup, see alshedivat#2333. --------- Co-authored-by: George <31376482+george-gca@users.noreply.github.com>
I added a Remote Development Containers in Visual Studio Code (VSCode).
Lots of people like to develop in Containers to have a clean system. With this PR, it is possible to work with al-folio without any installation (except for VS Code, its Remote Dev Container extension, and Docker).
Once you've opened the
al-folio
repository, a prompt will appear requesting to reopen the project within a container.Upon doing so, Jekyll will automatically start within the container and prompt you to open the website's preview sidebar directly in VSCode or using your Browser. Additionally, it installs extensions for
liquid
and Prettier (npx prettier
). Files are formatted usingal-folios
-prettier settings (.prettierrc
) to streamline pull request submission.Additionally, the performance seems to be much better compared to the
docker-compose
setup, see #2333.