Added start command to Makefile and updated README.md
diff --git a/xos/configurations/frontend/Makefile b/xos/configurations/frontend/Makefile
index a72eb2b..e73c6ad 100644
--- a/xos/configurations/frontend/Makefile
+++ b/xos/configurations/frontend/Makefile
@@ -12,11 +12,15 @@
echo $(XOS_FOLDER)
sudo docker run -v $(XOS_FOLDER)/../../core/xoslib:/opt/xos/core/xoslib -p 9000:8000 --add-host="0.0.0.0:127.0.0.1" xos
#sudo docker run -d --add-host="0.0.0.0:$(MYIP)" -p 9999:8000 xos
- #bash ../common/wait_for_xos.sh
+ bash ../common/wait_for_xos.sh
+ echo $(RUNNING_CONTAINER)
stop:
sudo docker stop $(RUNNING_CONTAINER)
+start:
+ sudo docker start $(LAST_CONTAINER)
+
showlogs:
sudo docker logs $(LAST_CONTAINER)
diff --git a/xos/configurations/frontend/README.md b/xos/configurations/frontend/README.md
index 6303bfc..c522c06 100644
--- a/xos/configurations/frontend/README.md
+++ b/xos/configurations/frontend/README.md
@@ -14,6 +14,16 @@
You'll be able to visit XOS at `0.0.0.0:9000` and the `xos/core/xoslib` folder is shared with the container. This means that any update to that folder is automatically reported in the container.
+### Docker Helpers
+
+Stop the container: `make stop`
+
+Restart (without rebuilding): `make start`
+
+Open a container shell: `make enter`
+
+View logs: `make showlogs`
+
## Test
To run the FE tests, navigate to: `xos/core/xoslib`, and run 'npm test'.