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

Add support for github codespace #600

Open
remyleone opened this issue Dec 21, 2021 · 8 comments
Open

Add support for github codespace #600

remyleone opened this issue Dec 21, 2021 · 8 comments

Comments

@remyleone
Copy link

Adding devcontainers could be really useful to have quickly a complete setup with an editor, kubectl and a docker command line installed:

@jpetazzo
Copy link
Owner

jpetazzo commented Jan 9, 2022

Hi!

First of all, happy new year 🎉

I don't have access to codespace (looks like it's only for Team and Enterprise users) and I can't find docs showing how to do more than just a container image; but when it becomes more widely available, we can give it a try, yes.

I've tried gitpod in the past, and it's promising, but all these platforms suffer from a common issue: when learning Docker and Kubernetes, it's important to be able to connect to the machine (e.g. after publishing a container's port, or creating a NodePort or LoadBalancer service) and that requires some specific integration in the platform; like Play-With-Docker has, for instance.

Another approach, if you have a Kubernetes cluster (any Kubernetes cluster) is to use the image jpetazzo/shpod (or ghcr.io/jpetazzo/shpod). It provides a "ready to go" environment that you can use either by kubectl execing into it, or by SSH'ing.

I hope that helps!

@remyleone
Copy link
Author

remyleone commented Jan 14, 2022

I think you can do port manipulation with codespace: https://docs.github.com/en/codespaces/getting-started/quickstart I'm not sure to understand what you mean by platform-specific.
Right now I can use kubectl natively with codespace (and I don't have team or enterprise) and this repo. I have also access to a docker runtime out of the box. You can configure the image used in the codespace to include arbitrary tools.

@remyleone
Copy link
Author

#604

@remyleone
Copy link
Author

Just tested it and I was able to interact with a kapsule cluster in seconds without any special configuration. (I'm planning up a workshop soon that's why I thought of this solution to avoid the heterogeneity of the students configurations).

@jpetazzo
Copy link
Owner

I don't think codespaces is generally available, is it?
image

@jpetazzo
Copy link
Owner

If that can help --- I have Terraform configs that can spawn arbitrary number of Kapsule clusters, running an SSH server in a pod, with all the tools preinstalled. Ping me on Discord if you're interested, I can show you quickly what that looks like (that's what I use for training sessions)

@BretFisher
Copy link
Contributor

I've been using it for a year I think at https://github.com/codespaces. I love it.

@jpetazzo
Copy link
Owner

image

"None of your organizations have access to Codespaces yet"

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

No branches or pull requests

3 participants