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

Add documentation for making custom min container #3059

Closed
wants to merge 3 commits into from

Conversation

jbkyang-nvi
Copy link
Contributor

Addressing /github.com//issues/2910

docs/compose.md Outdated
&& apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub \
&& add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
RUN apt-get update \
&& apt-get install -y datacenter-gpu-manager
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indents here and above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you want me to indent everything? Not sure if this matters?

Then use Docker to create the image.

```
$ docker build -t tritonserver_min .
$ docker build -t tritonserver_min -f <Dockerfile name> .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is ":-f " needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dockerbuild assumes default dockerfile name to be PATH/Dockerfile so we want to specify here

docs/compose.md Outdated
@@ -67,11 +67,33 @@ FROM nvcr.io/nvidia/tritonserver:<xx.yy>-py3-min
COPY --from=full /opt/tritonserver/bin /opt/tritonserver/bin
COPY --from=full /opt/tritonserver/lib /opt/tritonserver/lib
```
Then install dependencies outlined in [build.py](https://github.com/triton-inference-server/server/blob/main/build.py#L670-L694)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refer to function name instead of line numbers since the line numbers will quickly become out of date.

docs/compose.md Outdated

Then install dependencies outlined in [build.py](https://github.com/triton-inference-server/server/blob/main/build.py), `dockerfile_add_installation_linux()` function.

Example Dockerfile that only uses `Tensorflow 1` with the 21.06 build:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example Dockerfile that creates a Triton image that contains only the TensorFlow 1 backend.

docs/compose.md Outdated
```
FROM nvcr.io/nvidia/tritonserver:21.06-py3 as full
FROM nvcr.io/nvidia/tritonserver:21.06-py3-min
COPY --from=full /opt/tritonserver/bin /opt/tritonserver/bin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this because it is not complete. I think we should stop documenting the manual way of doing compose and instead just change this documentation to only refer to the compose.py script and how to use it.

@deadeyegoodwin
Copy link
Contributor

I wasn't clear in my earlier comment. I would not make any of these changes at all. As part of your compose.py change you should update the documentation so that it only talks about using compose.py and not about doing it yourself. One thing we can do is add a --dryrun flag to compose.py that stops after generating the dockerfile, so that anyone that wants to use that as a starting point to add additional changes can use that flag and then modify the generated dockerfile.

@jbkyang-nvi
Copy link
Contributor Author

all changes will be addressed in #3039

@jbkyang-nvi jbkyang-nvi deleted the kyang-fix-compose-documentation branch June 30, 2021 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants