Compare commits
No commits in common. "main" and "1.0.0" have entirely different histories.
@ -1,6 +1,5 @@
|
||||
name: 'Build docker container'
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1 +0,0 @@
|
||||
github: davidclaeysquinones
|
3
.github/workflows/action.yml
vendored
3
.github/workflows/action.yml
vendored
@ -1,6 +1,5 @@
|
||||
name: 'Build docker container'
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
@ -25,7 +24,7 @@ jobs:
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ghcr.io/davidclaeysquinones/webnut
|
||||
images: ghcr.io/davidclaeysquinones/epg-info
|
||||
tags: |
|
||||
type=semver,pattern={{raw}}
|
||||
- name: Build and push
|
||||
|
26
Dockerfile
26
Dockerfile
@ -1,18 +1,16 @@
|
||||
FROM python:3.11-alpine
|
||||
FROM python:2.7
|
||||
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
|
||||
RUN chmod +x /docker-entrypoint.sh
|
||||
|
41
README.md
41
README.md
@ -1,40 +1,25 @@
|
||||
# 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.
|
||||
This repository is a fork of https://github.com/teknologist/docker-webnut
|
||||
|
||||
webNUT (UPS network monitoring web ui) dockerized.
|
||||
|
||||
More infos on webNUT: https://github.com/rshipp/webNUT
|
||||
|
||||
## Environment Variables
|
||||
Set the following environment variables:
|
||||
|
||||
| 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_HOST** with NUT server host IP *(default: 127.0.0.1)*
|
||||
|
||||
## Compose file
|
||||
**UPS_PORT** with NUT server port *(default: 3493)*
|
||||
|
||||
```sh
|
||||
version: '3.3'
|
||||
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
|
||||
```
|
||||
**UPS_USER** with NUT server username *(default: monuser)*
|
||||
|
||||
**UPS_PASSWORD** with NUT server password *(default: secret)*
|
||||
|
||||
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user