Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
build: added support for no_cache and pull, issue #13
Browse files Browse the repository at this point in the history
  • Loading branch information
francescou committed Dec 17, 2015
1 parent cfb7e6b commit 964124e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.py
Expand Up @@ -161,8 +161,13 @@ def build():
"""
docker-compose build
"""
name = loads(request.data)["id"]
get_project_with_name(name).build()
json = loads(request.data)
name = json["id"]

dic = dict(no_cache=json["no_cache"] if "no_cache" in json else None, pull=json["pull"] if "pull" in json else None)

get_project_with_name(name).build(**dic)

return jsonify(command='build')

@app.route(API_V1 + "create", methods=['POST'])
Expand Down

0 comments on commit 964124e

Please sign in to comment.