2 Commits

Author SHA1 Message Date
41c3cf09e1 added support for testing in docker 2018-02-11 19:10:01 +01:00
22651ed58a fixed description 2018-02-05 18:17:27 +01:00
5 changed files with 25 additions and 4 deletions

View File

@@ -2,9 +2,9 @@
# Maintainer: Paolo Asperti <paolo@asperti.com> # Maintainer: Paolo Asperti <paolo@asperti.com>
pkgname=acf-openpdu pkgname=acf-openpdu
pkgver=0.1 pkgver=0.1
pkgrel=1 pkgrel=2
pkgdesc="Linux installation caching system" pkgdesc="ACF interface for the OpenPDU project"
url="https://github.com/paspo/installinux" url="https://github.com/openpdu/acf-openpdu"
arch="noarch" arch="noarch"
license="GPL2" license="GPL2"
depends="acf-core" depends="acf-core"

View File

@@ -32,7 +32,7 @@ mymodule.updatestatus = function()
elseif (tonumber(v) == 1) then elseif (tonumber(v) == 1) then
s = "Off" s = "Off"
else else
s = "unknown (" .. v .. ")" s = "unknown (" .. tostring(v) .. ")"
end end
config[i].status = s config[i].status = s
end end

17
docker/Dockerfile Normal file
View 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
View File

@@ -0,0 +1 @@
docker build . -t acf-openpdu:latest

3
docker/start.sh Executable file
View 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