cloudmesh / cloudmesh-cmsd

Other
0 stars 2 forks source link

Adding editable mode for cmsd setup for cms development #3

Open amirjankar opened 4 years ago

amirjankar commented 4 years ago

https://github.com/cloudmesh/cloudmesh-cmsd/blob/master/cloudmesh_cmsd/cmsd/command/cmsd.py#L238-L245

# Windows/cross-platform code that works
docker run -d -it \
    --mount type=bind,src={cloudmesh_home_dir},dst=/root/.cloudmesh \
    --mount type=bind,src=~/cm,dst=/cm \
    --mount type=bind,src=~/.ssh,dst=/root/.ssh \
    --net host \
    --name {CMS_CONTAINER_NAME} \
    {CMS_IMAGE_NAME}

Also, could I add an -e tag that adds the cm directory as a volume so that we can use it for testing? New code above

Originally posted by @amirjankar in https://github.com/cloudmesh/cloudmesh-cmsd/issues/2#issuecomment-584738157

laszewsk commented 4 years ago

see also #2 which has now been split up into this

looks like we shoudl use mount not -v

laszewsk commented 4 years ago

needs do be verified on

laszewsk commented 4 years ago

niranda, can you see if we switched to mounts?

nirandaperera commented 4 years ago

I think this is not possible because inside the cms image ~/cm dir would not be empty.