From b98db538d0470adde189255450a8f636558468e5 Mon Sep 17 00:00:00 2001 From: Songmin17 Date: Wed, 29 Nov 2023 14:30:13 +0900 Subject: [PATCH] added cron routine --- .github/workflows/ml_update.yml | 2 ++ recommend/entrypoint.sh | 6 +++--- recommendation_pipeline.sh | 0 3 files changed, 5 insertions(+), 3 deletions(-) mode change 100644 => 100755 recommendation_pipeline.sh diff --git a/.github/workflows/ml_update.yml b/.github/workflows/ml_update.yml index ff2f132..684defb 100644 --- a/.github/workflows/ml_update.yml +++ b/.github/workflows/ml_update.yml @@ -29,6 +29,8 @@ jobs: set -x chmod 600 key.pem scp -i ./"key.pem" -o StrictHostKeyChecking=no ./recommendation_pipeline.sh ec2-user@${{ secrets.CLOUD_URL }}:~ + scp -i ./"key.pem" -o StrictHostKeyChecking=no ./cron_routine.sh ec2-user@${{ secrets.CLOUD_URL }}:~ + chmod +x recommendation_pipeline.sh - name: Sync ML Code run: | diff --git a/recommend/entrypoint.sh b/recommend/entrypoint.sh index c2f1029..b2df974 100644 --- a/recommend/entrypoint.sh +++ b/recommend/entrypoint.sh @@ -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/ diff --git a/recommendation_pipeline.sh b/recommendation_pipeline.sh old mode 100644 new mode 100755