forked from john30/ebusd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dockerbuildtest
# Conflicts: # contrib/docker/Dockerfile.arm32v5 # contrib/docker/Dockerfile.arm32v7 # make_debian.sh
- Loading branch information
Showing
37 changed files
with
865 additions
and
953 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
21.2 | ||
21.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
ARG BASE_IMAGE | ||
|
||
FROM debian:bullseye as build | ||
FROM $BASE_IMAGE as build | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libmosquitto-dev libstdc++6 libc6 libgcc1 \ | ||
|
@@ -9,25 +10,34 @@ RUN apt-get update && apt-get install -y \ | |
|
||
WORKDIR /build | ||
|
||
ENV EBUSD_ARCH amd64 | ||
ENV EBUSD_VERSION 21.2 | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
ARG EBUSD_VERSION | ||
|
||
RUN git clone https://github.com/john30/ebusd.git /build \ | ||
&& ./make_debian.sh | ||
ENV EBUSD_ARCH $TARGETARCH$TARGETVARIANT | ||
ENV EBUSD_VERSION $EBUSD_VERSION | ||
|
||
ADD . /build | ||
RUN ./make_debian.sh | ||
|
||
|
||
|
||
FROM debian:bullseye-slim | ||
|
||
FROM $BASE_IMAGE-slim as image | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
logrotate libmosquitto1 libstdc++6 libc6 libgcc1 \ | ||
libmosquitto1 libstdc++6 libc6 libgcc1 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
LABEL maintainer "[email protected]" | ||
|
||
ENV EBUSD_VERSION 21.2 | ||
ENV EBUSD_ARCH amd64 | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
ARG EBUSD_VERSION | ||
ARG EBUSD_IMAGE | ||
|
||
ENV EBUSD_ARCH $TARGETARCH$TARGETVARIANT | ||
ENV EBUSD_VERSION $EBUSD_VERSION | ||
|
||
LABEL version "${EBUSD_VERSION}-${EBUSD_ARCH}-devel" | ||
|
||
|
@@ -39,6 +49,6 @@ RUN dpkg -i ebusd.deb \ | |
|
||
EXPOSE 8888 | ||
|
||
COPY docker-entrypoint.sh / | ||
COPY --from=build /build/contrib/docker/docker-entrypoint.sh / | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
CMD ["-f", "--scanconfig"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
ARG BASE_IMAGE | ||
|
||
FROM debian:bullseye as build | ||
FROM $BASE_IMAGE as build | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libmosquitto-dev libstdc++6 libc6 libgcc1 \ | ||
|
@@ -9,36 +10,45 @@ RUN apt-get update && apt-get install -y \ | |
|
||
WORKDIR /build | ||
|
||
ENV EBUSD_ARCH amd64 | ||
ENV EBUSD_VERSION 21.2 | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
ARG EBUSD_VERSION | ||
|
||
RUN git clone https://github.com/john30/ebusd.git /build \ | ||
&& ./make_debian.sh | ||
ENV EBUSD_ARCH $TARGETARCH$TARGETVARIANT | ||
ENV EBUSD_VERSION $EBUSD_VERSION | ||
|
||
ADD . /build | ||
RUN ./make_debian.sh | ||
|
||
|
||
|
||
FROM debian:bullseye-slim | ||
|
||
FROM $BASE_IMAGE-slim as image | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
logrotate libmosquitto1 libstdc++6 libc6 libgcc1 \ | ||
libmosquitto1 libstdc++6 libc6 libgcc1 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
LABEL maintainer "[email protected]" | ||
|
||
ENV EBUSD_VERSION 21.2 | ||
ENV EBUSD_ARCH amd64 | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
ARG EBUSD_VERSION | ||
ARG EBUSD_IMAGE | ||
|
||
ENV EBUSD_ARCH $TARGETARCH$TARGETVARIANT | ||
ENV EBUSD_VERSION $EBUSD_VERSION | ||
|
||
LABEL version "${EBUSD_VERSION}-${EBUSD_ARCH}" | ||
|
||
COPY --from=build /build/ebusd-*_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 ebusd.deb \ | ||
&& ebusd -V \ | ||
&& rm -f ebusd.deb | ||
|
||
EXPOSE 8888 | ||
|
||
COPY docker-entrypoint.sh / | ||
COPY contrib/docker/docker-entrypoint.sh / | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
CMD ["-f", "--scanconfig"] |
Oops, something went wrong.