run ebusd -V at last
This commit is contained in:
@@ -43,10 +43,9 @@ LABEL version="${EBUSD_VERSION}-${EBUSD_ARCH}-devel"
|
|||||||
|
|
||||||
COPY --from=build /build/ebusd-*_mqtt1.deb ebusd.deb
|
COPY --from=build /build/ebusd-*_mqtt1.deb ebusd.deb
|
||||||
|
|
||||||
RUN dpkg -i "--path-exclude=/etc/default/*" "--path-exclude=/etc/init.d/*" "--path-exclude=/lib/systemd/*" ebusd.deb \
|
RUN dpkg -i "--path-exclude=/etc/default/*" "--path-exclude=/etc/init.d/*" "--path-exclude=/lib/systemd/*" ebusd.deb && rm -f ebusd.deb \
|
||||||
&& ebusd -V \
|
&& update-ca-certificates \
|
||||||
&& rm -f ebusd.deb \
|
&& ebusd -V
|
||||||
&& update-ca-certificates
|
|
||||||
|
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
|
|
||||||
|
|||||||
@@ -43,10 +43,9 @@ LABEL version="${EBUSD_VERSION}-${EBUSD_ARCH}"
|
|||||||
|
|
||||||
ADD https://github.com/john30/ebusd/releases/download/v${EBUSD_VERSION}/ebusd-${EBUSD_VERSION}_${TARGETARCH}${TARGETVARIANT}-${EBUSD_IMAGE}_mqtt1.deb ebusd.deb
|
ADD https://github.com/john30/ebusd/releases/download/v${EBUSD_VERSION}/ebusd-${EBUSD_VERSION}_${TARGETARCH}${TARGETVARIANT}-${EBUSD_IMAGE}_mqtt1.deb ebusd.deb
|
||||||
|
|
||||||
RUN dpkg -i "--path-exclude=/etc/default/*" "--path-exclude=/etc/init.d/*" "--path-exclude=/lib/systemd/*" ebusd.deb \
|
RUN dpkg -i "--path-exclude=/etc/default/*" "--path-exclude=/etc/init.d/*" "--path-exclude=/lib/systemd/*" ebusd.deb && rm -f ebusd.deb \
|
||||||
&& ebusd -V \
|
&& update-ca-certificates \
|
||||||
&& rm -f ebusd.deb \
|
&& ebusd -V
|
||||||
&& update-ca-certificates
|
|
||||||
|
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
|
|
||||||
|
|||||||
@@ -43,10 +43,9 @@ LABEL version="${EBUSD_VERSION}-${EBUSD_ARCH}%EBUSD_VERSION_VARIANT%"
|
|||||||
|
|
||||||
%EBUSD_COPYDEB%
|
%EBUSD_COPYDEB%
|
||||||
|
|
||||||
RUN dpkg -i "--path-exclude=/etc/default/*" "--path-exclude=/etc/init.d/*" "--path-exclude=/lib/systemd/*" ebusd.deb \
|
RUN dpkg -i "--path-exclude=/etc/default/*" "--path-exclude=/etc/init.d/*" "--path-exclude=/lib/systemd/*" %EBUSD_DEBSRC% \
|
||||||
&& ebusd -V \
|
&& update-ca-certificates \
|
||||||
&& rm -f ebusd.deb \
|
&& ebusd -V
|
||||||
&& update-ca-certificates
|
|
||||||
|
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ function replaceTemplate () {
|
|||||||
-e "s#%EBUSD_VERSION_VARIANT%#${version_variant}#g" \
|
-e "s#%EBUSD_VERSION_VARIANT%#${version_variant}#g" \
|
||||||
-e "s#%EBUSD_UPLOAD_LINES%#${upload_lines}#g" \
|
-e "s#%EBUSD_UPLOAD_LINES%#${upload_lines}#g" \
|
||||||
-e "s#%EBUSD_COPYDEB%#${copydeb}#g" \
|
-e "s#%EBUSD_COPYDEB%#${copydeb}#g" \
|
||||||
|
-e "s#%EBUSD_DEBSRC%#${debsrc}#g" \
|
||||||
-e "s#%EBUSD_COPYENTRY%#${copyentry}#g" \
|
-e "s#%EBUSD_COPYENTRY%#${copyentry}#g" \
|
||||||
Dockerfile.template > "$file"
|
Dockerfile.template > "$file"
|
||||||
echo "updated $file"
|
echo "updated $file"
|
||||||
@@ -17,6 +18,7 @@ version_variant='-devel'
|
|||||||
make='RUNTEST=full ./make_debian.sh'
|
make='RUNTEST=full ./make_debian.sh'
|
||||||
upload_lines=''
|
upload_lines=''
|
||||||
copydeb='COPY --from=build /build/ebusd-*_mqtt1.deb ebusd.deb'
|
copydeb='COPY --from=build /build/ebusd-*_mqtt1.deb ebusd.deb'
|
||||||
|
debsrc='ebusd.deb \&\& rm -f ebusd.deb'
|
||||||
copyentry='COPY --from=build /build/contrib/docker/docker-entrypoint.sh /'
|
copyentry='COPY --from=build /build/contrib/docker/docker-entrypoint.sh /'
|
||||||
namesuffix=''
|
namesuffix=''
|
||||||
replaceTemplate
|
replaceTemplate
|
||||||
|
|||||||
Reference in New Issue
Block a user