Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compose.py to use updated container_versions() function from build.py #4267

Merged
merged 1 commit into from
Apr 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def add_requested_backends(ddir, dockerfile_name, backends):
import build
ver = next(iter(build.TRITON_VERSION_MAP.values()))
backend = build.tagged_backend(backend, ver[4][0])
df += '''COPY --chown=1000:1000 --from=full /opt/tritonserver/backends/{} /opt/tritonserver/backends/{}
df += '''COPY --chown=1000:1000 --from=full /opt/tritonserver/backends/{} /opt/tritonserver/backends/{}
'''.format(backend, backend)
if len(backends) > 0:
df += '''
Expand All @@ -122,7 +122,7 @@ def add_requested_backends(ddir, dockerfile_name, backends):
def add_requested_repoagents(ddir, dockerfile_name, repoagents):
df = "# Copying over repoagents \n"
for ra in repoagents:
df += '''COPY --chown=1000:1000 --from=full /opt/tritonserver/repoagents/{} /opt/tritonserver/repoagents/{}
df += '''COPY --chown=1000:1000 --from=full /opt/tritonserver/repoagents/{} /opt/tritonserver/repoagents/{}
'''.format(ra, ra)
if len(repoagents) > 0:
df += '''
Expand Down Expand Up @@ -159,7 +159,7 @@ def get_container_version_if_not_specified():
with open('TRITON_VERSION', "r") as vfile:
version = vfile.readline().strip()
import build
_, FLAGS.container_version = build.get_container_versions(
_, FLAGS.container_version = build.container_versions(
version, None, FLAGS.container_version)
log('version {}'.format(version))
log('using container version {}'.format(FLAGS.container_version))
Expand Down