Compare commits

...

8 Commits
1.0.0 ... main

Author SHA1 Message Date
David Claeys
1521ccad1d update actions
All checks were successful
Build docker container / build (push) Successful in 2m6s
2025-02-12 15:19:23 +01:00
David Claeys
e4d48bbdca fix dependencies
All checks were successful
Build docker container / build (push) Successful in 2m31s
2024-12-06 12:24:39 +01:00
David Claeys
9700dfcee2 update readme 2024-12-06 12:22:57 +01:00
David Claeys
53a6a7b87d update readme
All checks were successful
Build docker container / build (push) Successful in 2m57s
2024-12-06 12:16:53 +01:00
David Claeys
9b5bc2c589 update readme 2024-12-06 12:16:24 +01:00
David Claeys
81e0fcded5 update readme and docker file 2024-12-06 12:14:54 +01:00
David Claeys
c71a4d5652 add github funding 2024-11-14 12:20:21 +01:00
David Claeys
0a600525bf fix for github action
Some checks failed
Build docker container / build (push) Has been cancelled
2024-08-09 15:10:34 +02:00
5 changed files with 46 additions and 26 deletions

View File

@ -1,5 +1,6 @@
name: 'Build docker container' name: 'Build docker container'
on: on:
workflow_dispatch:
push: push:
tags: tags:
- '*' - '*'

1
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1 @@
github: davidclaeysquinones

View File

@ -1,5 +1,6 @@
name: 'Build docker container' name: 'Build docker container'
on: on:
workflow_dispatch:
push: push:
tags: tags:
- '*' - '*'
@ -24,7 +25,7 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ghcr.io/davidclaeysquinones/epg-info images: ghcr.io/davidclaeysquinones/webnut
tags: | tags: |
type=semver,pattern={{raw}} type=semver,pattern={{raw}}
- name: Build and push - name: Build and push

View File

@ -1,16 +1,18 @@
FROM python:2.7 FROM python:3.11-alpine
LABEL org.opencontainers.image.authors="Eric Taieb Walch <teknologist@gmail.com>"
RUN mkdir /app && \
cd /app && \
git clone https://github.com/rshipp/python-nut2.git && \
cd python-nut2 && \
python setup.py install && \
cd .. && \
git clone https://github.com/rshipp/webNUT.git && cd webNUT && \
pip install -e .
RUN apk update \
&& apk upgrade --available \
&& apk add git tzdata bash \
&& mkdir /app \
&& cd /app \
&& git clone https://github.com/rshipp/python-nut2.git \
&& cd python-nut2 \
&& python setup.py install \
&& cd .. \
&& git clone https://github.com/rshipp/webNUT.git \
&& cd webNUT \
&& pip install -e . \
&& rm -rf /var/cache/apk/*
COPY /docker-entrypoint.sh /docker-entrypoint.sh COPY /docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh RUN chmod +x /docker-entrypoint.sh

View File

@ -1,25 +1,40 @@
# docker-webNUT # docker-webNUT
This repository is a fork of https://github.com/teknologist/docker-webnut This repository is a fork of https://github.com/teknologist/docker-webnut.<br/>
It is based on it's content but this docker image includes updated dependencies.
webNUT (UPS network monitoring web ui) dockerized. webNUT (UPS network monitoring web ui) dockerized.
More infos on webNUT: https://github.com/rshipp/webNUT More infos on webNUT: https://github.com/rshipp/webNUT
Set the following environment variables: ## Environment Variables
**UPS_HOST** with NUT server host IP *(default: 127.0.0.1)* | Variable | Description | Default |
|-------------------------------|----------------------------------------------------------------------------|----------------------------------|
| UPS_HOST | The NUT server host IP | 127.0.0.1 |
| UPS_PORT | The NUT server port | 3493 |
| UPS_USER | The NUT server username | monuser |
| UPS_PASSWORD | The NUT server password | secret |
**UPS_PORT** with NUT server port *(default: 3493)* ## Compose file
**UPS_USER** with NUT server username *(default: monuser)* ```sh
version: '3.3'
**UPS_PASSWORD** with NUT server password *(default: secret)* services:
nut:
# image: git.claeyscloud.com/david/webnut:latest
image: ghcr.io/davidclaeysquinones/webnut
environment:
# adjust these variable as needed
- UPS_HOST=10.11.12.13
- UPS_PORT=3493
- UPS_USER="monuser"
- UPS_PASSWORD="secret"
restart: unless-stopped
security_opt:
- no-new-privileges:true
ports:
- 6543:6543
```
Run with:
> docker run -e UPS_HOST="10.11.12.13" -e UPS_PORT="3493" -e UPS_USER="monuser" -e UPS_PASSWORD="secret" -p 6543:6543 teknologist/webnut:latest