Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
fixed dockerfile url from git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
echyam committed Sep 17, 2019
1 parent c04e914 commit 6f986e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions submit_jobs/submit_jobs/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ def get(self,**params):
# proj_path = '/'.join(proj_path.split('/')[:-1])
# os.chdir(proj_path)
# git_url = subprocess.check_output("git remote get-url origin", shell=True).decode('utf-8').strip()
logging.debug('repo url is {}'.format(repo_url))
# params['repo_url'] = git_url
logging.debug('repo url is {}'.format(params['repo_url']))
# params['[repo_url]'] = git_url

# TODO: need way to build registry url instead of hardcoded
# user doesn't need to know how to make this parameter
image_name = repo_url.split('https://')[1].split('.git')[0] # slice off `https://` prefix and `.git` suffix
image_name = 'registry.nasa.maap'+(params['repo_url'].split('.git')[0]).split('repo.nasa.maap')[1] # slice off `https://` prefix and `.git` suffix
image_tag = 'master'
params['docker_url'] = '{}:{}'.format(image_name,image_tag)
# params['docker_url'] = os.environ['DOCKERIMAGE_PATH']
Expand Down

0 comments on commit 6f986e4

Please sign in to comment.