This project uses Docker. To install Docker visit this link and follow your systems instructions
Run the following command within the project directory:
docker build -f battleship.Dockerfile .
After building Docker run the following command:
docker image ls
There should be a list of Docker images like below:
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 3bc811affb74 1 minute ago 103MB
ubuntu latest ccc6e87d482b 3 weeks ago 64.2MB
Copy the most recent IMAGE ID
and run the following command:
docker run -it 3bc811affb74
This project uses pytest.
After running the Docker run command, run this command in the Docker container
:
pipenv run tests
This command is created in the [scripts]
section in Pipfile.