Skip to content

Commit

Permalink
changed function name and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkyang-nvi committed Jul 20, 2021
1 parent 5012347 commit 2b73bef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def create_dockerfile_linux(ddir, dockerfile_name, argmap, backends, repoagents,
'''.format(argmap['TRITON_VERSION'], argmap['TRITON_CONTAINER_VERSION'],
argmap['BASE_IMAGE'])

df += dockerfile_add_installation_linux(argmap, backends)
df += dockerfile_prepare_container_linux(argmap, backends)

df += '''
WORKDIR /opt/tritonserver
Expand Down Expand Up @@ -692,8 +692,9 @@ def create_dockerfile_linux(ddir, dockerfile_name, argmap, backends, repoagents,
dfile.write(df)


def dockerfile_add_installation_linux(argmap, backends):
# Common steps for producing docker images shared by build.py and compose.py.
def dockerfile_prepare_container_linux(argmap, backends):
# Common steps to produce docker images shared by build.py and compose.py.
# Sets enviroment variables, installs dependencies and adds entrypoint
df = '''
ARG TRITON_VERSION
ARG TRITON_CONTAINER_VERSION
Expand Down
2 changes: 1 addition & 1 deletion compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def start_gpu_dockerfile(ddir, images, argmap, dockerfile_name, backends):
images["full"], images["min"])

import build
df += build.dockerfile_add_installation_linux(argmap, backends)
df += build.dockerfile_prepare_container_linux(argmap, backends)
# Copy over files
df += '''
WORKDIR /opt/tritonserver
Expand Down

0 comments on commit 2b73bef

Please sign in to comment.