diff --git a/Docker Image/Docker Hub Link.txt b/Docker Image/Docker Hub Link.txt new file mode 100644 index 0000000..f17b2eb --- /dev/null +++ b/Docker Image/Docker Hub Link.txt @@ -0,0 +1 @@ +https://hub.docker.com/repository/docker/seanriggs/pi-weather-station diff --git a/Docker Image/Docker YML AMD64/docker-compose.yml b/Docker Image/Docker YML AMD64/docker-compose.yml new file mode 100644 index 0000000..981b71c --- /dev/null +++ b/Docker Image/Docker YML AMD64/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' +services: + weather-station: + image: seanriggs/pi-weather-station:latest + container_name: weather-station + ports: + - "8080:8080" + volumes: + - appdata:/app + restart: unless-stopped +volumes: + appdata: diff --git a/Docker Image/Docker YML ARM/docker-compose.yml b/Docker Image/Docker YML ARM/docker-compose.yml new file mode 100644 index 0000000..dc778c5 --- /dev/null +++ b/Docker Image/Docker YML ARM/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' +services: + weather-station: + image: seanriggs/pi-weather-station:arm64 + container_name: weather-station + ports: + - "8080:8080" + volumes: + - appdata:/app + restart: unless-stopped +volumes: + appdata: diff --git a/Docker Image/Docker YML ARMv7/docker-compose.yml b/Docker Image/Docker YML ARMv7/docker-compose.yml new file mode 100644 index 0000000..55971a8 --- /dev/null +++ b/Docker Image/Docker YML ARMv7/docker-compose.yml @@ -0,0 +1,13 @@ + +version: '3' +services: + weather-station: + image: seanriggs/pi-weather-station:armv7-armhf + container_name: weather-station + ports: + - "8080:8080" + volumes: + - appdata:/app + restart: unless-stopped +volumes: + appdata: diff --git a/Docker Image/Docker-ReadMe.md b/Docker Image/Docker-ReadMe.md new file mode 100644 index 0000000..fc4059d --- /dev/null +++ b/Docker Image/Docker-ReadMe.md @@ -0,0 +1,83 @@ +# Pi Weather Station *DOCKERIZED* + +This Docker Image is a containerized application originally built by Eric Elewin. Containerizing his application captures all the dependencies required to make it run. Launching the application in Docker allows for easy deployment! + +These Docker images will work on RaspberryPi still but is also built to work on AMD64 infrastructure, depending on the tag you specify of course ;) + +Just so you know, the original application was pre-configured to access the application from the hosting machine only. I have modified index.js to allow any machine on the local network to access the application from the web browser. By exposing the app to your entire network, users on that network access the app and retrieve your API keys from the settings page. I use this at home with my family, so I am ok with that risk. + +Eric developed this application as a weather station running on RaspberryPI on the official 7" 800x480 touchscreen. See Eric's Github located here: https://github.com/elewin/pi-weather-station#pi-weather-station + +![Pi Weather Station ](https://user-images.githubusercontent.com/15202038/91359998-4625bb80-e7bb-11ea-937e-c87eede41f35.JPG) + +Compiled app data to run as a lightweight container in docker. Uses Node:12.12-alpine. + +Images will work on ARM/aarch64 and x86 Linux/AMD infrastructure. + +The compose file example will be below and includes an example for persistent volumes, so API data is recovered on container recreation. + +Options will allow you to run on any physical Linux machine (including RaspberryPi), Virtual Machines, or Windows. Tested on Windows 10, Debian, and Ubuntu. + +
Architecture | +Available | +
---|---|
amd64 | +✅ | +
arm64 | +✅ | +
arm64v8 | +✅ | +
armhf | +✅ | +arm32v7 | +✅ | +