m2 icon indicating copy to clipboard operation
m2 copied to clipboard

Docker for BMI

Open chemistry-sourabh opened this issue 8 years ago • 14 comments

Docker scripts for BMI and HIL for dev environment #108

chemistry-sourabh avatar Mar 24 '17 03:03 chemistry-sourabh

@CCI-MOC/bmi-breakers try it out!!

chemistry-sourabh avatar Mar 28 '17 03:03 chemistry-sourabh

@chemistry-sourabh Create a wiki instead of PR.

ravisantoshgudimetla avatar Apr 08 '17 02:04 ravisantoshgudimetla

Did you mean the Readme file as a wiki ? or the Dockerfile ? because making the latter a wiki doesn't make sense

chemistry-sourabh avatar Apr 10 '17 04:04 chemistry-sourabh

Either way is fine but PR doesn't make sense.

ravisantoshgudimetla avatar Apr 18 '17 00:04 ravisantoshgudimetla

@ravisantoshgudimetla what do you mean doesn't make sense ?

chemistry-sourabh avatar Apr 18 '17 00:04 chemistry-sourabh

So, do you want this to be used for setting up BMI, if yes raise an issue and write documentation on how to use it.(This could be in alternate ways to install BMI). Even if this goes into repo, the location has to be decided where this has to stay in repo, without that this PR staying here, doesn't make sense.

ravisantoshgudimetla avatar Apr 18 '17 01:04 ravisantoshgudimetla

@ravisantoshgudimetla Ya in the future this can be an easier deployment option for people who use something like kubernetes or docker swarm, etc. For now this just sets up a dev environment for easy deployment on the local system. I am using it on a regular basis and is faster than using a VM on kaizen.

I attached a docker.md with instructions on setting it up. I asked people to give it a try, but nobody did :(, Also typically all the docker files go in the root of the project as docker builds the context of the directories below when building images.

We can later upload it to a MOC docker registry (if it exists)

chemistry-sourabh avatar Apr 18 '17 01:04 chemistry-sourabh

You can upload to docker hub as of now, if I am not mistaken, everyone should be able to access it if you give privileges. @akshayakhare has created a openshift registry, if I am not mistaken again, we can try uploading there. There is no need to use docker swarm or kubernetes unless we want the software to be container grade in production usage. We can use it quick development setup. I recommend you to write a clear README and add it to dev guide. I can test this over next weekend. This is really cool.

ravisantoshgudimetla avatar Apr 18 '17 01:04 ravisantoshgudimetla

@ravisantoshgudimetla should we have this in an examples/bmi-docker/ directory in the main repo?

naved001 avatar Jul 07 '17 16:07 naved001

@naved001 add what to examples ?

chemistry-sourabh avatar Jul 09 '17 04:07 chemistry-sourabh

add what to examples ?

The scripts in this PR aren't really part of the main BMI code which is why I think it should be in a different folder.

naved001 avatar Jul 13 '17 17:07 naved001

Let's add a contrib folder in root and tell developers that this is supported way to do development.

ravisantoshgudimetla avatar Jul 23 '17 03:07 ravisantoshgudimetla

I am planning on writing a start dev env script using docker-compose (which I learnt about recently). Also I am thinking of submitting a better version of the run tests script to this PR.

@ravisantoshgudimetla @naved001 let me know more stuff which may be required.

chemistry-sourabh avatar Jul 27 '17 02:07 chemistry-sourabh

@chemistry-sourabh can we close this?

apoorvemohan avatar Feb 12 '18 21:02 apoorvemohan