https://docs.docker.com/get-docker/
docker build -t gatech/dronedelivery -f Dockerfile ./
./scripts/test.sh <scenario>
.\scripts\test.sh <scenario>
./scripts/batch.sh
.\scripts\batch.sh
docker run -ti gatech/dronedelivery sh
java -jar drone_delivery.jar
- From there you can run any of the commands listed from the assignment:
make_store,<Store>,<InitialRevenue>
display_stores
sell_item,<Store>,<Item>,<Weight>
display_items,<Store>
make_pilot,<Account>,<FirstName>,<LastName>,<PhoneNumber>,<TaxId>,<LicenseId>,<ExperienceLevel>
display_pilots
make_drone,<Store>,<DroneId>,<WeightCapacity>,<NumberOfDeliveries>
display_drones,<Store>
fly_drone,<Store>,<DroneId>,<PilotAccount>
make_customer,<Account>,<FirstName>,<LastName>,<PhoneNumber>,<CustomerRating>,<Credits>
display_customers
start_order,<Store>,<OrderId>,<DroneId>,<CustomerAccount>
display_orders,<Store>
request_item,<Store>,<OrderId>,<Item>,<Quantity>,<UnitPrice>
purchase_order,<Store>,<OrderId>
cancel_order,<Store>,<OrderId>
stop
java -jar drone_delivery.jar < commands_00.txt > drone_delivery_00_results.txt
diff -s drone_delivery_00_results.txt drone_delivery_initial_00_results.txt > results_00.txt
cat results_00.txt
The "mkdir docker_results ; " would not be needed after the 1st run, but just in case you have not made the directory yet with another command.
mkdir docker_results ; docker run gatech/dronedelivery sh -c 'java -jar drone_delivery.jar < commands_00.txt' > docker_results/drone_delivery_00_results.txt
Simply stop and remove the running container
docker ps
docker rm -f <container_id>
After running the below command you will need to run the build command again
docker ps -aq | % { docker stop $_ } | % { docker rm -f $_ } | docker images -f "dangling=true" -aq | % { docker rmi -f $_ } | docker images gatech/* -aq | % { docker rmi -f $_ }