
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 My GitHub Fork is found here: https://github.com/SeanRiggs/pi-weather-station/tree/master/Docker%20Image
!Pi Weather Station
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 | ✅ |
Docker Run
You can spin up the container using docker run with the following example below:
Create a Docker Volume first so that you can save persistent API Data:
bashdocker volume create appdata
Using the volume example above, create the container and pull the image:
bashdocker run -itd --name weather-station -p 8080:8080 -v appdata:/app seanriggs/pi-weather-station
Remember to specify the arm64 tag if you use an arm or aarch64 based infrastructure.
!Docker Compose
dockerversion: '3' services: weather-station: image: seanriggs/pi-weather-station:latest #or arm64, armv7-armhf (i.e. RaspberryPi) container_name: weather-station ports: - "8080:8080" volumes: - appdata:/app restart: unless-stopped volumes: appdata:
The docker-compose command will pull the image based on the updated docker-compose.yml file you saved from above. The file should be ready to go in the directory you chose for it (i.e. pi-weather-station). The next step is to spin up your containers using docker-compose and starting the docker daemon:
bashdocker-compose up -d
Please post any issues to my github for review. We have tested each image and no further updating should be needed (except updating code to reflect scrubbing of API keys .. ooops!)
https://github.com/SeanRiggs/pi-weather-station
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务