diff options
author | ankitjavalkar | 2017-12-11 12:14:33 +0530 |
---|---|---|
committer | ankitjavalkar | 2018-01-04 11:37:20 +0530 |
commit | 268371d956dbe5cf349f1f6d8b3e4594a5c8c479 (patch) | |
tree | 649d60d38536d82bc31c2de27ae5ab4609adaf8f /tasks.py | |
parent | 8c9c7fdf227c7a107345c70fea4cf77cc550a10f (diff) | |
download | online_test-268371d956dbe5cf349f1f6d8b3e4594a5c8c479.tar.gz online_test-268371d956dbe5cf349f1f6d8b3e4594a5c8c479.tar.bz2 online_test-268371d956dbe5cf349f1f6d8b3e4594a5c8c479.zip |
Multiple changes:
- Remove requirement files placed in docker/Files
- Modify tasks to dynamically copy requirement files into docker directory
- Add java installation to Docker files
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -154,10 +154,16 @@ def stop(ctx, container=TARGET_CONTAINER_NAME, hide=True): else: print("** Docker container <{0}> not found **".format(container)) +# Docker compose based deployment @task def build(ctx): run_as_cmd = run_as(OS_NAME) + copy_tree( + os.path.join(SCRIPT_DIR, 'requirements'), + os.path.join(SCRIPT_DIR, 'docker', 'Files') + ) + base_build_cmd = "docker-compose build --no-cache" cmd = get_cmd(run_as_cmd, base_build_cmd) print ("** Building docker images **") |