Hi All
I am trying to convert a docker image (that has Apache and Perl) to work as a HASS.io add-on, and every time I try to install, it flashes red, and it doesn’t display any error. Is there any way I can debug this? What am I doing wrong
Here is the dockerfile:
FROM hassioaddons/debian-base-armhf:0.2.2
RUN \
DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y \
build-essential \
apt-utils \
ssl-cert \
apache2 \
apache2-utils \
apache2-dev \
libapache2-mod-perl2 \
libapache2-mod-perl2-dev \
libcgi-pm-perl \
liblocal-lib-perl \
cpanminus \
libexpat1-dev \
libssl-dev \
mysql-client \
libmysqlclient-dev \
libapreq2-dev \
zip && \
cpanm DBD::mysql && \
a2enmod cgid && \
a2enmod rewrite && \
a2dissite 000-default && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get -y clean
#COPY localhost.conf /etc/apache2/sites-enabled/localhost.conf
#VOLUME ["/var/www/html"]
#EXPOSE 80
COPY rootfs /
# Build arugments
ARG BUILD_DATE
ARG BUILD_REF
ARG BUILD_VERSION
# Labels
LABEL \
io.hass.name="batam" \
io.hass.description="batam" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="Thomas Watkins" \
org.label-schema.description="Perl Experiment" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="batam" \
org.label-schema.schema-version="1.0" \
org.label-schema.vcs-ref=${BUILD_REF} \
build.json:
{
"build_from": {
"armhf": "hassioaddons/debian-base-armhf:0.2.2"
},
"args": {}
}
config.json:
{
"name": "Batam",
"version": "0.01.00",
"slug": "Batam",
"description": "Perl Test",
"startup": "services",
"boot": "auto",
"hassio_api": false,
"homeassistant_api": false,
"host_network": true,
"webui": "http://[HOST]:[PORT:80]",
"auto_uart":true,
"map": [
"config:rw"
],
"options": {
"httpport": 8080,
},
"schema": {
"httpport": "port",
},
"ports": {
"8080/tcp": 8080,
}
}