Skip to content

Update artifacts #36

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

Merged
merged 4 commits into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions docker/1.2.0/py2/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ RUN useradd -m model-server \

COPY docker/$PYTORCH_VERSION/py2/mms-entrypoint.py /usr/local/bin/dockerd-entrypoint.py
COPY docker/$PYTORCH_VERSION/py2/config.properties /home/model-server
COPY src/sagemaker_pytorch_serving_container/deep_learning_container.py /usr/local/bin/deep_learning_container.py

RUN chmod +x /usr/local/bin/dockerd-entrypoint.py && \
chmod +x /usr/local/bin/deep_learning_container.py
RUN chmod +x /usr/local/bin/dockerd-entrypoint.py

COPY dist/sagemaker_pytorch_serving_container-1.2-py2.py3-none-any.whl /sagemaker_pytorch_serving_container-1.2-py2.py3-none-any.whl
RUN pip install --no-cache-dir /sagemaker_pytorch_serving_container-1.2-py2.py3-none-any.whl && \
Expand Down
4 changes: 1 addition & 3 deletions docker/1.2.0/py2/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ RUN useradd -m model-server \

COPY docker/$PYTORCH_VERSION/py2/mms-entrypoint.py /usr/local/bin/dockerd-entrypoint.py
COPY docker/$PYTORCH_VERSION/py2/config.properties /home/model-server
COPY src/sagemaker_pytorch_serving_container/deep_learning_container.py /usr/local/bin/deep_learning_container.py

RUN chmod +x /usr/local/bin/dockerd-entrypoint.py && \
chmod +x /usr/local/bin/deep_learning_container.py
RUN chmod +x /usr/local/bin/dockerd-entrypoint.py

# Install OpenSSH for MPI to communicate between containers, Allow OpenSSH to talk to containers without asking for confirmation
RUN apt-get install -y --no-install-recommends openssh-client openssh-server && \
Expand Down
3 changes: 0 additions & 3 deletions docker/1.2.0/py2/mms-entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
import shlex
import subprocess
import sys
import os.path

from sagemaker_pytorch_serving_container import serving

if not os.path.exists("/opt/ml/input/config"):
subprocess.call(['python', '/usr/local/bin/deep_learning_container.py', '&>/dev/null', '&'])

if sys.argv[1] == 'serve':
serving.main()
Expand Down
4 changes: 1 addition & 3 deletions docker/1.2.0/py3/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ RUN useradd -m model-server \

COPY docker/$PYTORCH_VERSION/py3/mms-entrypoint.py /usr/local/bin/dockerd-entrypoint.py
COPY docker/$PYTORCH_VERSION/py3/config.properties /home/model-server
COPY src/sagemaker_pytorch_serving_container/deep_learning_container.py /usr/local/bin/deep_learning_container.py

RUN chmod +x /usr/local/bin/dockerd-entrypoint.py && \
chmod +x /usr/local/bin/deep_learning_container.py
RUN chmod +x /usr/local/bin/dockerd-entrypoint.py

COPY dist/sagemaker_pytorch_serving_container-1.2-py2.py3-none-any.whl /sagemaker_pytorch_serving_container-1.2-py2.py3-none-any.whl
RUN pip install --no-cache-dir /sagemaker_pytorch_serving_container-1.2-py2.py3-none-any.whl && \
Expand Down
4 changes: 1 addition & 3 deletions docker/1.2.0/py3/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ RUN useradd -m model-server \

COPY docker/$PYTORCH_VERSION/py3/mms-entrypoint.py /usr/local/bin/dockerd-entrypoint.py
COPY docker/$PYTORCH_VERSION/py3/config.properties /home/model-server
COPY src/sagemaker_pytorch_serving_container/deep_learning_container.py /usr/local/bin/deep_learning_container.py

RUN chmod +x /usr/local/bin/dockerd-entrypoint.py && \
chmod +x /usr/local/bin/deep_learning_container.py
RUN chmod +x /usr/local/bin/dockerd-entrypoint.py

COPY dist/sagemaker_pytorch_serving_container-1.2-py2.py3-none-any.whl /sagemaker_pytorch_serving_container-1.2-py2.py3-none-any.whl
RUN pip install --no-cache-dir /sagemaker_pytorch_serving_container-1.2-py2.py3-none-any.whl && \
Expand Down
3 changes: 0 additions & 3 deletions docker/1.2.0/py3/mms-entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
import shlex
import subprocess
import sys
import os.path

from sagemaker_pytorch_serving_container import serving

if not os.path.exists("/opt/ml/input/config"):
subprocess.call(['python', '/usr/local/bin/deep_learning_container.py', '&>/dev/null', '&'])

if sys.argv[1] == 'serve':
serving.main()
Expand Down
4 changes: 1 addition & 3 deletions docker/1.3.1/py2/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ RUN useradd -m model-server \

COPY mms-entrypoint.py /usr/local/bin/dockerd-entrypoint.py
COPY config.properties /home/model-server
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py

RUN chmod +x /usr/local/bin/dockerd-entrypoint.py \
&& chmod +x /usr/local/bin/deep_learning_container.py
RUN chmod +x /usr/local/bin/dockerd-entrypoint.py

COPY sagemaker_pytorch_serving_container-1.3-py2.py3-none-any.whl /sagemaker_pytorch_serving_container-1.3-py2.py3-none-any.whl
RUN pip install --no-cache-dir \
Expand Down
4 changes: 1 addition & 3 deletions docker/1.3.1/py2/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ RUN useradd -m model-server \

COPY mms-entrypoint.py /usr/local/bin/dockerd-entrypoint.py
COPY config.properties /home/model-server
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py

RUN chmod +x /usr/local/bin/dockerd-entrypoint.py \
&& chmod +x /usr/local/bin/deep_learning_container.py
RUN chmod +x /usr/local/bin/dockerd-entrypoint.py

# Install OpenSSH for MPI to communicate between containers, Allow OpenSSH to talk to containers without asking for confirmation
RUN apt-get install -y --no-install-recommends \
Expand Down
4 changes: 1 addition & 3 deletions docker/1.3.1/py3/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ RUN useradd -m model-server \

COPY mms-entrypoint.py /usr/local/bin/dockerd-entrypoint.py
COPY config.properties /home/model-server
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py

RUN chmod +x /usr/local/bin/dockerd-entrypoint.py \
&& chmod +x /usr/local/bin/deep_learning_container.py
RUN chmod +x /usr/local/bin/dockerd-entrypoint.py

COPY sagemaker_pytorch_serving_container-1.3-py2.py3-none-any.whl /sagemaker_pytorch_serving_container-1.3-py2.py3-none-any.whl
RUN pip install --no-cache-dir \
Expand Down
4 changes: 1 addition & 3 deletions docker/1.3.1/py3/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ RUN useradd -m model-server \

COPY mms-entrypoint.py /usr/local/bin/dockerd-entrypoint.py
COPY config.properties /home/model-server
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py

RUN chmod +x /usr/local/bin/dockerd-entrypoint.py \
&& chmod +x /usr/local/bin/deep_learning_container.py
RUN chmod +x /usr/local/bin/dockerd-entrypoint.py

COPY sagemaker_pytorch_serving_container-1.3-py2.py3-none-any.whl /sagemaker_pytorch_serving_container-1.3-py2.py3-none-any.whl
RUN pip install --no-cache-dir \
Expand Down
Empty file removed docker/__init__.py
Empty file.
13 changes: 0 additions & 13 deletions docker/build_artifacts/__init__.py

This file was deleted.

113 changes: 0 additions & 113 deletions docker/build_artifacts/deep_learning_container.py

This file was deleted.

3 changes: 0 additions & 3 deletions docker/build_artifacts/mms-entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
import shlex
import subprocess
import sys
import os.path

if not os.path.exists("/opt/ml/input/config"):
subprocess.call(['python', '/usr/local/bin/deep_learning_container.py', '&>/dev/null', '&'])

if sys.argv[1] == 'serve':
from sagemaker_pytorch_serving_container import serving
Expand Down
Loading