cloudmesh / cloudmesh-cmsd

Other
0 stars 2 forks source link

weird bug with cmsd --setup --mongo #17

Open amirjankar opened 4 years ago

amirjankar commented 4 years ago

Running windows 10 with an updated environment, discussed by Gregor and I in our last meeting. The previous iteration of cmsd was working fine for me, but the mongo container failed to start this time around, returning an error of Unable to find image 'value:latest' locally. This might be an issue with the string manipulation of the docker run mongo command. It can be fixed by removing the formatting blocks and passing the string in as a raw text:

r"""docker run -d \
 --name cloudmesh-mongo \
-v cloudmesh-mongo-vol:/data/db \
 -p 127.0.0.1:27017:27017/tcp \
 -e MONGO_INITDB_ROOT_USERNAME=admin \
 -e MONGO_INITDB_ROOT_PASSWORD=mongo_pw \
 mongo:4.2"""
laszewsk commented 4 years ago

I am not sure why this would make a difference. Also why not do the string

"...." \ "...."

e.g. make it a one line. maybe the \ is the issue, or the method to which we pass it.

e.g Linux has \n windows has \r\n so maybe the string needs to be parsed and converter to the host format????