SatelliteQE / satellite-populate

This new module adds tools and commands to populate and validate entities in the system based in YAML file.
Other
8 stars 10 forks source link

Add ability to have automated Docker builds #19

Closed JacobCallahan closed 7 years ago

JacobCallahan commented 7 years ago

With docker, we can more easily manage nailgun versions, as well as any version control we want to have with satellite-populate. Fixes #11

JacobCallahan commented 7 years ago

Images hosted on dockerhub are working as expected http://pastebin.test.redhat.com/445631

 docker run jacobcallahan/satellite-populate "actions: [{'action': 'echo', 'log': 'Hello World'}]" -v

2017-01-12 21:47:30 - satellite_populate.base - INFO - Starting in populate mode 2017-01-12 21:47:30 - satellite_populate.base - INFO - ECHO: Hello World 2017-01-12 21:47:30 - satellite_populate.base - INFO - populate finished! 2017-01-12 21:47:30 - satellite_populate.base - INFO - 0 entities already existing in the system 2017-01-12 21:47:30 - satellite_populate.base - INFO - 0 entities were created in the system

rochacbruno commented 7 years ago

@JacobCallahan how would we run it with a local datafile?

satellite-populate examples/theoffice.yaml -v -h server.com

Which parameters we should pass in to mount the local file to run in container?

Is that?

docker run -v examples:examples jacobcallahan/satellite-populate examples/theoffice.yaml -v -h server.com

So we can put example in documentation

rochacbruno commented 7 years ago

Got it!

docker run -v $PWD/examples:/datafiles jacobcallahan/satellite-populate /datafiles/theoffice.yaml -v -h server.com