working on implementing server.js
This commit is contained in:
parent
4ccc534f3d
commit
55b2398370
13 changed files with 2320 additions and 0 deletions
18
deployment-service/snakeapi_service/entrypoint.sh
Normal file
18
deployment-service/snakeapi_service/entrypoint.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
while true; do
|
||||
# Fetch the latest notebook from S3 (common bucket + prefix)
|
||||
aws --endpoint-url "$AWS_ENDPOINT_URL_S3" --region "$AWS_REGION" \
|
||||
s3 cp "s3://$BUCKET_NAME/$INSTANCE_PREFIX/notebook.ipynb" notebook.ipynb
|
||||
|
||||
# Execute all cells, including run_server(...) in the last cell
|
||||
jupyter nbconvert \
|
||||
--to notebook \
|
||||
--execute \
|
||||
--inplace \
|
||||
--ExecutePreprocessor.timeout=0 \
|
||||
notebook.ipynb
|
||||
|
||||
echo "Notebook executed; restarting..."
|
||||
sleep 1
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue