Skip to content

Commit

Permalink
add sagemaker_pytorch_training dependency in Dockerfile
Browse files Browse the repository at this point in the history
- This is required for using the image via AWS SageMaker's PyTorch Estimator.
- Also bump boto3 and awscli to compatible versions.
  • Loading branch information
AdeelH committed Jan 23, 2024
1 parent 6a918ba commit fe37b51
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,8 @@ COPY ./rastervision_aws_sagemaker/ /opt/src/rastervision_aws_sagemaker/
COPY ./rastervision_pytorch_backend/ /opt/src/rastervision_pytorch_backend/
COPY ./rastervision_pytorch_learner/ /opt/src/rastervision_pytorch_learner/

# needed for this image to be used by the AWS SageMaker PyTorch Estimator
RUN pip install sagemaker_pytorch_training==2.8.1
ENV SAGEMAKER_TRAINING_MODULE=sagemaker_pytorch_container.training:main

CMD ["bash"]
4 changes: 2 additions & 2 deletions rastervision_aws_batch/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rastervision_pipeline==0.21.4-dev
boto3==1.28.8
awscli==1.29.8
boto3==1.34.14
awscli==1.32.14
4 changes: 2 additions & 2 deletions rastervision_aws_s3/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rastervision_pipeline==0.21.4-dev
boto3==1.28.8
awscli==1.29.8
boto3==1.34.14
awscli==1.32.14
tqdm==4.65.0

2 changes: 1 addition & 1 deletion rastervision_core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ opencv-python-headless==4.6.0.66
tqdm==4.65.0
xarray==2023.2.0
scikit-image==0.21.0
boto3==1.28.8
boto3==1.34.14
stackstac==0.5.0
humanize==4.8.0

0 comments on commit fe37b51

Please sign in to comment.