From 70edf16f283fd974110a9117904938fff7fb281f Mon Sep 17 00:00:00 2001 From: shaniwein Date: Thu, 28 Dec 2023 00:12:20 +0200 Subject: [PATCH 1/2] Add comment about freeing build cache to DOCKER.md --- docs/DOCKER.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/DOCKER.md b/docs/DOCKER.md index ac9dcafe..e3fcb784 100644 --- a/docs/DOCKER.md +++ b/docs/DOCKER.md @@ -111,7 +111,10 @@ Note - At some point you should gett the message "Waiting for postgres server, 4 Note - If the "anyway" container does not start because of the error: "exec /anyway/docker-entrypoint.sh: no such file or directory", run `dos2unix` on all files mentioned in "important" note under the Windows section and go back to step 7. -**8.** **You're all set!** ANYWAY is up and running with the DB data - connect to http://127.0.0.1:8080 +**8.** (Optional) To free up disk space: Run `docker buildx prune -f`. This will clear the build cache. +To remove all unused artifacts Docker has produced, run `docker system prune -f`. This will remove all unused containers, images, networks, and build cache. + +**9.** **You're all set!** ANYWAY is up and running with the DB data - connect to http://127.0.0.1:8080 Note - you won't see the map since the key works in production. You now need to see the map for development, so contact us via email [anyway@anyway.co.il](mailto:anyway@anyway.co.il) to get a developer key. The developer key needs to replace the production key in the file /anyway/blob/dev/templates/index.html where you can find: "https://maps.googleapis.com/maps/api/js?key=AIzaSyDUIWsBLkvIUwzLHMHos9qFebyJ63hEG2M&libraries=places,visualization&language=iw" (google maps url) From aa6081d04cc4962ae4569fd5912f65a19d4b1339 Mon Sep 17 00:00:00 2001 From: shaniwein Date: Wed, 3 Jan 2024 15:30:55 +0200 Subject: [PATCH 2/2] Add prune comment to line 60 as well. --- docs/DOCKER.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/DOCKER.md b/docs/DOCKER.md index e3fcb784..f5a12efb 100644 --- a/docs/DOCKER.md +++ b/docs/DOCKER.md @@ -57,7 +57,10 @@ This will start the containers. It will take a few minutes until it's done. *notice* The docker image, after copying the DB, will be around 20GB and defaultly on C: drive. If you don't have enough space, follow this instractions in order to move the docker image to a different drive - https://needlify.com/post/how-to-move-wsl-distributions-including-docker-images-to-new-locations-on-windows-6412384cbd14c -**8.** **You're all set!** ANYWAY is up and running with the DB data - connect to http://127.0.0.1:8080 +**8.** (Optional) To free up disk space: Run `docker buildx prune -f`. This will clear the build cache. +To remove all unused artifacts Docker has produced, run `docker system prune -f`. This will remove all unused containers, images, networks, and build cache. + +**9.** **You're all set!** ANYWAY is up and running with the DB data - connect to http://127.0.0.1:8080 Note - you won't see the map since the key works in production. If you need to see the map contact atalya via slack to get a developer key. The developer key need to replace the production key in the file /anyway/blob/dev/templates/index.html where you can find: "https://maps.googleapis.com/maps/api/js?key=AIzaSyDUIWsBLkvIUwzLHMHos9qFebyJ63hEG2M&libraries=places,visualization&language=iw" (google maps url)