generated from home-assistant/addons-example
-
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.
- Loading branch information
1 parent
109f8d8
commit 70dc057
Showing
11 changed files
with
216 additions
and
396 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,13 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG RUST_VERSION=1.72.1 | ||
ARG APP_NAME=ebusd-thermostat | ||
FROM rust:${RUST_VERSION}-slim-bullseye AS build | ||
ARG APP_NAME | ||
WORKDIR / | ||
|
||
RUN \ | ||
<<EOF | ||
set -e | ||
cargo build --locked --release | ||
cp ./target/release/$APP_NAME /bin/ebusd-thermostat | ||
EOF | ||
|
||
ARG BUILD_FROM | ||
FROM $BUILD_FROM | ||
|
||
COPY --from=build /bin/ebusd-thermostat /bin/ | ||
COPY ./ ./ | ||
|
||
RUN set -e && \ | ||
apk add --no-cache cargo && \ | ||
cargo build --locked --release | ||
|
||
COPY rootfs / | ||
RUN chmod a+x ./run.sh | ||
|
||
CMD [ "/bin/ebusd-thermostat" ] | ||
CMD [ "./run.sh" ] |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/with-contenv bashio | ||
|
||
./target/release/ebusd-thermostat |
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
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
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,5 @@ | ||
#!/usr/bin/with-contenv bashio | ||
|
||
echo "Hello world!" | ||
|
||
cat /data/options.json |