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 carme ssh command #52

Open
aeksco opened this issue Jul 9, 2018 · 1 comment
Open

Add carme ssh command #52

aeksco opened this issue Jul 9, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@aeksco
Copy link
Member

aeksco commented Jul 9, 2018

As per a discussion I had with @jkuruzovich we've agreed it would be interesting to add a new command:

carme ssh

The carme ssh command is designed to be run in either a Carme project directory, or an arbitrary directory containing python code. The command does the following:

  1. Start a new Docker container using the available or default image
  2. Mount the current directory into the container
  3. Connect the user's terminal session to the container

Questions we will need to address:

  • What happens if a carme container is already running?
  • What if a user wants port mapping?

Other questions will arise I'm sure - feel free to leave any comments below!

@aeksco aeksco added the enhancement New feature or request label Jul 9, 2018
@aeksco aeksco self-assigned this Jul 9, 2018
@jkuruzovich
Copy link
Contributor

jkuruzovich commented Jul 10, 2018

@aeksco Right now there is a docker wrapper, but I've not used that code in the latest implementation. A simple way is to assume the container is running. You might start with that.

I've imagined that multiple different packages might map to a single shortcut name. For example, Jupyter could be implemented by a bunch of different containers. The shortcut name is added to the carme-config.yaml file.

If someone issued carme ssh jupyter it should know to ssh into the Juptyer container. I think that using the directory Similarly, someone should be able to use carme ssh carmelabs/base (the image name). A challenge would be containers that aren't running in background already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants