File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,8 @@ def dockerfile(self_module, input_params):
173173 comments = []
174174
175175 # Push Docker image if specified
176- if str (input_params .get ('docker_push_image' )).lower () in [ 'true' , 'yes' , '1' ]:
176+ if str (input_params .get ('docker_push_image' )
177+ ).lower () in ['true' , 'yes' , '1' ]:
177178 env ['MLC_DOCKER_PUSH_IMAGE' ] = 'yes'
178179
179180 dockerfile_env = docker_inputs .get ('env' , {})
@@ -193,7 +194,6 @@ def dockerfile(self_module, input_params):
193194
194195 if docker_inputs .get ('mlc_repo_path' , '' ) != '' :
195196 mlc_docker_input ['mlc_repo_path' ] = docker_inputs ['mlc_repo_path' ]
196-
197197
198198 docker_v = False
199199 docker_s = False
Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ def preprocess(i):
8989
9090 repo_name = os .path .basename (mlc_repo_path )
9191 # Create mlc_repo directory relative to the build context
92- repo_build_context_path = os .path .join (build_context_dir , "mlc_repo" , repo_name )
92+ repo_build_context_path = os .path .join (
93+ build_context_dir , "mlc_repo" , repo_name )
9394
9495 # Remove existing directory if it exists
9596 if os .path .exists (repo_build_context_path ):
@@ -330,7 +331,7 @@ def preprocess(i):
330331
331332 f .write (EOL + '# Download MLC repo for scripts' + EOL )
332333 pat = env .get ('MLC_GH_TOKEN' , '' )
333-
334+
334335 if pat != '' :
335336 token_string = f" --pat={ pat } "
336337 else :
@@ -347,7 +348,7 @@ def preprocess(i):
347348 f .write (
348349 'RUN mlc add repo {} --quiet' .format (docker_repo_dest ) +
349350 EOL )
350- #f.write(
351+ # f.write(
351352 # 'RUN mlc pull repo --url={} {} --quiet'.format(docker_repo_dest, token_string) +
352353 # EOL)
353354 f .write (EOL )
You can’t perform that action at this time.
0 commit comments