diff --git a/endpoints/api.py b/endpoints/api.py index 0a4700a22..c77fffbac 100644 --- a/endpoints/api.py +++ b/endpoints/api.py @@ -1239,7 +1239,10 @@ def request_repo_build(namespace, repository): permission = ModifyRepositoryPermission(namespace, repository) if permission.can(): logger.debug('User requested repository initialization.') - dockerfile_id = request.get_json()['file_id'] + request_json = request.get_json() + + dockerfile_id = request_json['file_id'] + subdir = request_json['subdirectory'] if 'subdirectory' in request_json else '' # Check if the dockerfile resource has already been used. If so, then it # can only be reused if the user has access to the repository for which it @@ -1255,7 +1258,7 @@ def request_repo_build(namespace, repository): display_name = user_files.get_file_checksum(dockerfile_id) build_request = start_build(repo, dockerfile_id, ['latest'], display_name, - '', True) + subdir, True) resp = jsonify(build_status_view(build_request, True)) repo_string = '%s/%s' % (namespace, repository) diff --git a/static/css/quay.css b/static/css/quay.css index 3ddf44b50..636343e4b 100644 --- a/static/css/quay.css +++ b/static/css/quay.css @@ -9,7 +9,23 @@ } } +.dockerfile-path { + margin-top: 10px; + padding: 20px; + padding-bottom: 0px; + font-family: Consolas, "Lucida Console", Monaco, monospace; + font-size: 14px; +} + +.dockerfile-path:before { + content: "\f15b"; + font-family: FontAwesome; + margin-right: 8px; + font-size: 18px; +} + .dockerfile-view { + margin-top: 10px; margin: 20px; padding: 20px; background: #F7F6F6; diff --git a/static/directives/trigger-description.html b/static/directives/trigger-description.html index 7cb1a5731..2a081aa69 100644 --- a/static/directives/trigger-description.html +++ b/static/directives/trigger-description.html @@ -9,7 +9,7 @@ -