Giter Site home page Giter Site logo

py-docker-weather-api's Introduction

Docker Weather API

Task

In this task you will be implementing the service for getting current weather for Paris city. But the most interesting part, that this service must be dockerized and pushed to dockerhub. Use Weather API for getting data about the weather.

The result of this task will be tested by the next commands: img.png Of course, instead of danylott - it must be your docker id.

So in this task requirements are next:

  • The script for getting & printing weather info must be located at app/main.py;
  • This service must be Dockerized using only Dockerfile (docker-compose.yml here is forbidden);
  • The image of the service should be as thin as possible;
  • Use .dockerignore file to avoid adding unnecessary stuff to docker image;
  • You must use requests module for interacting with Weather API;
  • You must publish your image to Docker Hub and check it is available for the world;
  • You need to generate API_KEY for using Weather API, but it shouldn't be hard-coded in main.py. You should use environment variables for that purpose. So, read API_KEY from environment. And to path environment variables to docker container use -e flag.
  • You must modify this line with correct command to pull your image: COMMAND=docker pull <YOUR_DOCKER_ID/YOUR_IMAGE_NAME>.

py-docker-weather-api's People

Contributors

danylott avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.