Sign inSign up

zimmertr/weatherpy

By zimmertr

Updated over 8 years ago

Sidekick container used to generate weather data for my personal website.

Image
1

1.7K

zimmertr/weatherpy repository overview

Weatherpy

Code Repository: https://github.com/zimmertr/Weatherpy_DockerEmulator DOCKERFILE: https://github.com/zimmertr/Weatherpy_Docker/blob/master/Dockerfile

Summary

Sidekick container used to generate weather data for my personal website. Docker container is constructed by me using JackWink's project on GitHub found here: https://github.com/JackWink/Weather

Base Image: CentOS 7 Installed Packages:

    cronie:             Cron for weatherpy updates
    git:                Git to clone code to container
    python-setuptools:  Python module to install weatherpy

Deployment Instructions:

Use this container instead, this one will be pulled automatically when necessary: https://hub.docker.com/r/zimmertr/personal-website/

How does it work?

  1. Clones latest Centos image.
  2. Deployment accepts two volumes that bind to /root/.weatherrc and /root/.weather.txt.
  3. Installs cronie, git, and python-setup-tools.
  4. Clones down weatherpy and installs it.
  5. Creates crontab and weather_updator.sh scripts.
  6. Populates weather_updator.sh script with commands used to grab weather data and ultimately populate weather.txt file.
  7. Populates crontab file with call to weather_updator.sh every 3 minutes (maximum allowed 500 calls/day). Load crontab into crond.
  8. Spawns crond in foreground.

Tag summary

Content type

Image

Digest

Size

123.9 MB

Last updated

over 8 years ago

docker pull zimmertr/weatherpy