Compare commits
2 Commits
v0.3-1
...
41c3cf09e1
| Author | SHA1 | Date | |
|---|---|---|---|
| 41c3cf09e1 | |||
| 22651ed58a |
6
APKBUILD
6
APKBUILD
@@ -2,9 +2,9 @@
|
||||
# Maintainer: Paolo Asperti <paolo@asperti.com>
|
||||
pkgname=acf-openpdu
|
||||
pkgver=0.1
|
||||
pkgrel=1
|
||||
pkgdesc="Linux installation caching system"
|
||||
url="https://github.com/paspo/installinux"
|
||||
pkgrel=2
|
||||
pkgdesc="ACF interface for the OpenPDU project"
|
||||
url="https://github.com/openpdu/acf-openpdu"
|
||||
arch="noarch"
|
||||
license="GPL2"
|
||||
depends="acf-core"
|
||||
|
||||
@@ -32,7 +32,7 @@ mymodule.updatestatus = function()
|
||||
elseif (tonumber(v) == 1) then
|
||||
s = "Off"
|
||||
else
|
||||
s = "unknown (" .. v .. ")"
|
||||
s = "unknown (" .. tostring(v) .. ")"
|
||||
end
|
||||
config[i].status = s
|
||||
end
|
||||
|
||||
17
docker/Dockerfile
Normal file
17
docker/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM alpine:3.7
|
||||
|
||||
ADD https://openpdu.github.io/alpine/devel@openpdu.org-5a7816cb.rsa.pub /etc/apk/keys
|
||||
|
||||
RUN echo "https://openpdu.github.io/alpine/v3.7/main" >> /etc/apk/repositories && \
|
||||
apk --no-cache -U upgrade && \
|
||||
apk --no-cache -U add acf-openpdu alpine-base && \
|
||||
echo root:root | chpasswd && \
|
||||
setup-acf
|
||||
|
||||
#ADD start.sh /
|
||||
|
||||
EXPOSE 443
|
||||
|
||||
#ENTRYPOINT ["/bin/sh"]
|
||||
ENTRYPOINT ["/usr/sbin/mini_httpd","-D","-C","/etc/mini_httpd/mini_httpd.conf"]
|
||||
|
||||
1
docker/build.sh
Executable file
1
docker/build.sh
Executable file
@@ -0,0 +1 @@
|
||||
docker build . -t acf-openpdu:latest
|
||||
3
docker/start.sh
Executable file
3
docker/start.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
MYDIR=$(cd "$(dirname "$0")/../acf-app" ; pwd -P)
|
||||
docker run --rm -d -v "$MYDIR:/usr/share/acf/app/openpdu/" -p 443 acf-openpdu:latest
|
||||
|
||||
Reference in New Issue
Block a user