Skip to content

Commit

Permalink
fix: updated path for volume mount with abs path
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmin17 committed Nov 28, 2023
1 parent 5987d55 commit 6c0e99f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ml_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ jobs:
ssh -i ./"key.pem" -o StrictHostKeyChecking=no ec2-user@${{ secrets.CLOUD_URL }} <<EOF
docker stop ml-container
docker rm ml-container
docker run -d --name ml-container -v /recommend:/app "${{ secrets.DOCKER_USERNAME }}/ml-image:latest" tail -f /dev/null
docker run -d --name ml-container -v /home/ec2-user/recommend:/app "${{ secrets.DOCKER_USERNAME }}/ml-image:latest" tail -f /dev/null
EOF
6 changes: 3 additions & 3 deletions recommend/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
set -e

# Set environment variables for S3 bucket and file paths
S3_BUCKET=${S3_BUCKET}
EVENT_FILE="eventData.csv"
USER_FILE="userData.csv"
# S3_BUCKET=${S3_BUCKET}
# EVENT_FILE="eventData.csv"
# USER_FILE="userData.csv"

# Use AWS CLI to download the CSV file from S3
aws s3 cp s3://${S3_BUCKET}/${EVENT_FILE} /app/
Expand Down

0 comments on commit 6c0e99f

Please sign in to comment.