Merge pull request #2409 from coreos-inc/dockerfile-hack

Add a temporary HACK to work around bad path logic in trigger
This commit is contained in:
josephschorr 2017-03-07 23:40:36 -05:00 committed by GitHub
commit 88fcb199db

View file

@ -126,6 +126,14 @@ class BuildComponent(BaseComponent):
subdir, dockerfile_name = os.path.split(build_config.get('build_subdir', '/Dockerfile'))
# HACK HACK HACK HACK HACK HACK HACK
# TODO: FIX THIS in the database and then turn the split back on.
if dockerfile_name.find('Dockerfile') < 0:
# This is a *HACK* for the broken path handling. To be fixed ASAP.
subdir = build_config.get('build_subdir') or '/'
dockerfile_name = 'Dockerfile'
# /HACK HACK HACK HACK HACK HACK HACK
build_arguments = {
'build_package': build_job.get_build_package_url(self.user_files),
'sub_directory': subdir,