File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ def run_docker(os, architecture=nil)
114114 id = os
115115 id = "#{ id } -#{ architecture } " if architecture
116116 docker_tag = "#{ @package } -#{ id } "
117+ # TODO: Fix docker tag name
118+ docker_tag = "watson1978/#{ docker_tag } " if os == "centos-7"
117119 build_command_line = [
118120 "docker" ,
119121 "build" ,
@@ -149,7 +151,14 @@ def run_docker(os, architecture=nil)
149151 build_command_line << docker_context
150152 run_command_line . concat ( [ docker_tag , "/host/build.sh" ] )
151153
152- sh ( *build_command_line )
154+ if os == "centos-7"
155+ if ENV [ "BUILD_DOCKER_IMAGE_ONLY" ]
156+ sh ( *build_command_line )
157+ exit
158+ end
159+ else
160+ sh ( *build_command_line )
161+ end
153162 sh ( *run_command_line )
154163 end
155164
You can’t perform that action at this time.
0 commit comments