Skip to content

Commit

Permalink
Security added to the package.json for the monte-carlo lab (#6)
Browse files Browse the repository at this point in the history
* Audit fix of old npm modules on the web monte-carlo version:
* Removed node_modules from the git_repo there will be built as part of cfn/userdata initialisation
* changed order of labs, monte-carlo at the bottom
  • Loading branch information
ruecarlo authored Jul 6, 2019
1 parent 912c1b8 commit 44d4c5d
Show file tree
Hide file tree
Showing 86 changed files with 13 additions and 16,363 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
/public/
resources/
node_modules/
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "EC2 Auto Scaling with multiple instance types and purchase options"
date: 2019-01-26T00:00:00Z
weight: 80
weight: 90
pre: "<b>⁃ </b>"
---

Expand Down
2 changes: 1 addition & 1 deletion content/monte-carlo-on-ec2-spot-fleet/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Run Monte Carlo Simulations on EC2 Spot Fleet"
date: 2019-01-24T09:05:54Z
weight: 70
weight: 80
pre: "<b>⁃ </b>"
---

Expand Down
2 changes: 1 addition & 1 deletion content/monte-carlo-on-ec2-spot-fleet/lab4.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Please make sure you are using the Cloud9 environment created by the workshop Cl
1. On the terminal run the following commands. This will download the repository of code we will
use to build our image.
```
git clone https://github.com/ruecarlo/ec2-spot-workshops.git
git clone https://github.com/awslabs/ec2-spot-workshops.git
cd ec2-spot-workshops/workshops/monte-carlo-on-ec2-spot-fleet
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,11 @@ Resources:
ALLOCATION_ID=${workstationElasticIp.AllocationId}
aws ec2 associate-address --instance-id $INSTANCE_ID --allocation-id $ALLOCATION_ID

#Download node_modules
cd $WORKSHOPDIR/web
npm install

#Start Web and Jupyter
# FIXME: Perhaps for consideration, instead of committing node_modules to github
# this could run npm install before running the "node" process. The trade-off
# is taht sometimes there might be glitches during labs when things may fail.
cd $WORKSHOPDIR
node web/bin/www > stdout.txt 2>&1 &
jupyter notebook --allow-root --no-browser --ip 0.0.0.0 --port ${JupyterPort} &
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 44d4c5d

Please sign in to comment.