Skip to content

Commit

Permalink
[m] upd weekly cleanup suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacopo committed Jun 17, 2021
1 parent 6d06f0a commit fb2bb6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _server_setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

6. Setup AWS EC2. You can have separate accounts for the main site and the periodic cleaner. See [sample IAM policy](./example_ec2_iam_policy.txt).

7. Setup the non-cloudfronted website. See the Apache sample files in this folder.Make sure to expose the static files too: for instance, `ln -sr ctfoood/static/ /var/www/html/` (+ Django's contrib/admin/static/admin/)
7. Setup the non-cloudfronted website. See the Apache sample files in this folder. Make sure to expose the static files too: for instance, `ln -sr ctfoood/static/ /var/www/html/` (+ Django's contrib/admin/static/admin/)

8. Create an S3 bucket to host public files. Otherwise, create `dockerimg` and `public_files` folders and link them in `/var/www/html/`.

Expand Down
3 changes: 1 addition & 2 deletions _server_setup/weekly_docker_cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ systemctl stop apache2

docker ps --all -q | xargs --no-run-if-empty docker rm -f >/dev/null
docker images -q | xargs --no-run-if-empty docker rmi -f >/dev/null
docker network prune -f >/dev/null
docker volume prune -f >/dev/null
docker system prune -f >/dev/null

systemctl start apache2

0 comments on commit fb2bb6d

Please sign in to comment.