Please find api keys from https://home.openweathermap.org/api_keys
-
Clone the repository.
-
git clone https://github.com/DreamPearl/ForWeather.git
-
cd ForWeather
-
-
Build docker image.
docker build --tag forweather:1.0 .
-
Run docker image.
docker run -p 5000:5000 -e OPENWEATHER_API_KEY='<Enter your api key here>' forweather:1.0
OR (edit api key within file name api.py)
docker run -p 5000:5000 forweather:1.0
-
To run unit test inside container.
docker run forweather:1.0 sh -c "python3 test_forweather.py"
-
Pull docker image.
docker pull dreampearl/forweather:1.0
-
Run docker image.
docker run --name forweather -p 5000:5000 -e OPENWEATHER_API_KEY='<Enter your api key here>' forweather:1.0
-
To run unit test inside container.
docker run forweather:1.0 sh -c "python3 test_forweather.py"