This is Team 1's Assignment 6 for ECE 4574 at Virginia Tech
To access Existing EC2 Servers Go to this link Main Website
- This project is to provide a Database and API for storage and retrieval of information.
- Version 2.0
- Docker is installed
- Your device is connected to the internet (to clone the repository and download required libraries)
- go ahead and gitclone this repo
git clone https://github.com/ldevr2t1/docker_storage.git
- Run git checkout local
- Navigate into the web directory (i.e. cd web)
- run docker commands to get server running - may have to sudo
docker-compose build
docker-compose run
- Access your machine-ip address (docker-machine ip) in your web browser
The UI should be viewable at **192.168.99.100/v2/ui**
- If you cannot access the UI then change the 'host' address in the swagger.yaml file
- To get Machine ip address:
Run docker-machine ip
- Update swagger.yaml:
host: "<Machine Ip-Address>"
- Repeat steps 4 and 5
- To get Machine ip address:
Run the command docker stop [id]
, where [id]
is the generated id number of your container. If you do not know what your container id is, use the command docker ps
to view all running containers.
-
To change the server's IP-address edit the 'host' parameter in main.
File: web/swagger_server/__main__.py
app.run(host='<your_address>', port=<port_number>)
-
Change the host parameter in the swagger.yaml file for the UI to work
web/swagger_server/server/swagger.yaml
host: "<your_address>:<port_number>"
- Change the <port_number> in the same files for configuring the host/ui address
- Go into the base directory /docker_pathfind and edit the docker-compose.yml
ports:
- "<port_number>:<port_number>"
- Change the Dockerfile (i.e. change the EXPOSE #)
#Expose port # for testing
-EXPOSE <port_number>
- Joshua Chung
- David Gwizdala