Add a couple more helpers
diff --git a/xos/configurations/frontend/Makefile b/xos/configurations/frontend/Makefile
index b058798..c061bc1 100644
--- a/xos/configurations/frontend/Makefile
+++ b/xos/configurations/frontend/Makefile
@@ -1,8 +1,7 @@
MYIP:=$(shell hostname -i)
-RUNNING_CONTAINER=$(shell sudo docker ps|grep "xos_1"|awk '{print $$NF}')
frontend:
- sudo apt-get -y install httpie
+ sudo make -f ../common/Makefile.prereq
sudo docker-compose up -d
bash ../common/wait_for_xos.sh
sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/frontend/sample.yaml
@@ -19,5 +18,5 @@
ps:
sudo docker-compose ps
-enter:
- sudo docker exec -t -i $(RUNNING_CONTAINER) bash
+enter-xos:
+ sudo docker exec -ti frontend_xos_1 bash
diff --git a/xos/configurations/frontend/README.md b/xos/configurations/frontend/README.md
index 355ce0c..1cf244d 100644
--- a/xos/configurations/frontend/README.md
+++ b/xos/configurations/frontend/README.md
@@ -21,12 +21,16 @@
Stop the containers: `make stop`
-Restart the containers: `make stop; make start`
+Restart the containers: `make stop; make`
-Open a container shell: `make enter`
+Delete the containers and relaunch them: `make rm; make`
View logs: `make showlogs`
+See what containers are running: `make ps`
+
+Open a shell on the XOS container: `make enter-xos`
+
## Docs
You can find a Swagger documentation for endpoint at: `http://0.0.0.0:9000/docs/`