-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from Luligu/dev
Release 1.5.6
- Loading branch information
Showing
29 changed files
with
458 additions
and
280 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
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,88 +1,90 @@ | ||
FROM node:20-bullseye-slim AS base | ||
FROM node:22-bullseye-slim AS base | ||
|
||
WORKDIR /app | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git && \ | ||
apt-get clean | ||
apt-get clean && \ | ||
npm install -g npm@latest && \ | ||
node -v && \ | ||
npm -v | ||
|
||
|
||
# && npm install -g npm@10.7.0 | ||
|
||
FROM base AS builder | ||
WORKDIR /app | ||
COPY ./package.json ./package-lock.json ./tsconfig.json ./ | ||
COPY ./src ./src | ||
COPY ./frontend/build ./frontend/build | ||
RUN npm install && npm run build && npm pack && npm link | ||
|
||
WORKDIR /matterbridge-example-accessory-platform | ||
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-accessory-platform.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
|
||
WORKDIR /matterbridge-example-dynamic-platform | ||
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-dynamic-platform.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack && npm link | ||
|
||
WORKDIR /matterbridge-zigbee2mqtt | ||
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-zigbee2mqtt.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
WORKDIR /matterbridge-somfy-tahoma | ||
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-somfy-tahoma.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
WORKDIR /matterbridge-shelly | ||
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-shelly.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
WORKDIR /matterbridge-example-accessory-platform | ||
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-accessory-platform.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
WORKDIR /matterbridge-example-dynamic-platform | ||
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-dynamic-platform.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
WORKDIR /matterbridge-eve-door | ||
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-door.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
WORKDIR /matterbridge-eve-motion | ||
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-motion.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
WORKDIR /matterbridge-eve-energy | ||
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-energy.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
WORKDIR /matterbridge-eve-room | ||
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-room.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
WORKDIR /matterbridge-eve-weather | ||
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-weather.git . | ||
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm install && npm run build && npm pack | ||
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack | ||
|
||
|
||
FROM node:20-bullseye-slim AS release | ||
|
||
FROM node:22-bullseye-slim AS release | ||
WORKDIR /app | ||
|
||
COPY --from=builder /app/*.tgz . | ||
RUN npm -g install *.tgz | ||
RUN rm *.tgz | ||
RUN npm install -g npm@latest && npm -g install *.tgz && rm *.tgz | ||
|
||
COPY --from=builder /matterbridge-example-accessory-platform/*.tgz . | ||
COPY --from=builder /matterbridge-example-dynamic-platform/*.tgz . | ||
COPY --from=builder /matterbridge-zigbee2mqtt/*.tgz . | ||
COPY --from=builder /matterbridge-somfy-tahoma/*.tgz . | ||
COPY --from=builder /matterbridge-shelly/*.tgz . | ||
COPY --from=builder /matterbridge-example-accessory-platform/*.tgz . | ||
COPY --from=builder /matterbridge-example-dynamic-platform/*.tgz . | ||
COPY --from=builder /matterbridge-eve-door/*.tgz . | ||
COPY --from=builder /matterbridge-eve-motion/*.tgz . | ||
COPY --from=builder /matterbridge-eve-energy/*.tgz . | ||
COPY --from=builder /matterbridge-eve-room/*.tgz . | ||
COPY --from=builder /matterbridge-eve-weather/*.tgz . | ||
RUN npm -g install *.tgz | ||
RUN rm *.tgz | ||
RUN npm install -g *.tgz && rm *.tgz && node -v && npm -v && npm list -g | ||
|
||
CMD ["matterbridge", "-docker"] |
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,23 +1,46 @@ | ||
FROM node:20-alpine AS base | ||
# FROM alpine:latest as base not working for linux/arm/v7 | ||
# FROM node:20-alpine as base not working for linux/arm/v7 | ||
FROM node:22-alpine AS base | ||
|
||
WORKDIR /app | ||
# RUN apk add --no-cache nodejs npm icu-data-full | ||
# Install git and update npm | ||
RUN apk update && \ | ||
apk add --no-cache git && \ | ||
npm install -g npm@latest && \ | ||
node -v && \ | ||
npm -v | ||
|
||
# Build Matterbridge | ||
WORKDIR /matterbridge | ||
COPY ./package.json ./package-lock.json ./tsconfig.json ./ | ||
COPY ./src ./src | ||
COPY ./frontend/build ./frontend/build | ||
RUN npm install --no-audit --no-update-notifier --no-fund && \ | ||
RUN npm ci && \ | ||
npm run build && \ | ||
npm link | ||
npm shrinkwrap --omit=dev && \ | ||
npm pack | ||
|
||
# Install Matterbridge plugins | ||
RUN npm -g install matterbridge-shelly | ||
# Build shelly plugin | ||
WORKDIR /matterbridge-shelly | ||
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-shelly.git . | ||
COPY ./docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm ci && \ | ||
npm run build && \ | ||
npm shrinkwrap --omit=dev && \ | ||
npm pack | ||
|
||
|
||
FROM node:22-alpine AS release | ||
WORKDIR /app | ||
|
||
COPY --from=base /matterbridge/*.tgz . | ||
RUN npm install -g npm@latest && npm -g install *.tgz && rm *.tgz | ||
|
||
COPY --from=base /matterbridge-shelly/*.tgz . | ||
RUN npm -g install *.tgz && rm *.tgz | ||
|
||
# Copy and execute the entrypoint script | ||
COPY ./docker/shellyEntrypoint.sh ./ | ||
RUN chmod +x ./shellyEntrypoint.sh | ||
RUN chmod +x ./shellyEntrypoint.sh && \ | ||
node -v && \ | ||
npm -v && \ | ||
npm list -g | ||
ENTRYPOINT ["./shellyEntrypoint.sh"] | ||
|
||
CMD ["matterbridge", "-docker"] |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM node:22-bookworm-slim AS base | ||
|
||
# Install git and update npm | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git && \ | ||
apt-get clean && \ | ||
npm install -g npm@latest && \ | ||
node -v && \ | ||
npm -v | ||
|
||
# Build Matterbridge | ||
WORKDIR /matterbridge | ||
COPY ./package.json ./package-lock.json ./tsconfig.json ./ | ||
COPY ./src ./src | ||
COPY ./frontend/build ./frontend/build | ||
RUN npm ci && \ | ||
npm run build && \ | ||
npm shrinkwrap --omit=dev && \ | ||
npm pack | ||
|
||
# Build shelly plugin | ||
WORKDIR /matterbridge-shelly | ||
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-shelly.git . | ||
COPY ./docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm ci && \ | ||
npm run build && \ | ||
npm shrinkwrap --omit=dev && \ | ||
npm pack | ||
|
||
|
||
FROM node:22-bookworm-slim AS release | ||
WORKDIR /app | ||
|
||
COPY --from=base /matterbridge/*.tgz . | ||
RUN npm install -g npm@latest && npm -g install *.tgz && rm *.tgz | ||
|
||
COPY --from=base /matterbridge-shelly/*.tgz . | ||
RUN npm -g install *.tgz && rm *.tgz | ||
|
||
# Copy and execute the entrypoint script | ||
COPY ./docker/shellyEntrypoint.sh ./ | ||
RUN chmod +x ./shellyEntrypoint.sh && \ | ||
node -v && \ | ||
npm -v && \ | ||
npm list -g | ||
ENTRYPOINT ["./shellyEntrypoint.sh"] | ||
CMD ["matterbridge", "-docker"] |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM node:22-bullseye-slim AS base | ||
|
||
# Install git and update npm | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git && \ | ||
apt-get clean && \ | ||
npm install -g npm@latest && \ | ||
node -v && \ | ||
npm -v | ||
|
||
# Build Matterbridge | ||
WORKDIR /matterbridge | ||
COPY ./package.json ./package-lock.json ./tsconfig.json ./ | ||
COPY ./src ./src | ||
COPY ./frontend/build ./frontend/build | ||
RUN npm ci && \ | ||
npm run build && \ | ||
npm shrinkwrap --omit=dev && \ | ||
npm pack | ||
|
||
# Build shelly plugin | ||
WORKDIR /matterbridge-shelly | ||
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-shelly.git . | ||
COPY ./docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js | ||
RUN npm ci && \ | ||
npm run build && \ | ||
npm shrinkwrap --omit=dev && \ | ||
npm pack | ||
|
||
|
||
FROM node:22-bullseye-slim AS release | ||
WORKDIR /app | ||
|
||
COPY --from=base /matterbridge/*.tgz . | ||
RUN npm install -g npm@latest && npm -g install *.tgz && rm *.tgz | ||
|
||
COPY --from=base /matterbridge-shelly/*.tgz . | ||
RUN npm -g install *.tgz && rm *.tgz | ||
|
||
# Copy and execute the entrypoint script | ||
COPY ./docker/shellyEntrypoint.sh ./ | ||
RUN chmod +x ./shellyEntrypoint.sh && \ | ||
node -v && \ | ||
npm -v && \ | ||
npm list -g | ||
ENTRYPOINT ["./shellyEntrypoint.sh"] | ||
CMD ["matterbridge", "-docker"] |
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
Oops, something went wrong.