Add docker helper for bluetooth (#162)
This commit is contained in:
parent
21c85cec13
commit
9bf987ff24
4 changed files with 4 additions and 3 deletions
|
|
@ -33,6 +33,7 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|||
COPY --from=builder /build/evcc /usr/local/bin/evcc
|
||||
|
||||
COPY entrypoint.sh /evcc/
|
||||
COPY bin/* /evcc/
|
||||
|
||||
EXPOSE 7070
|
||||
|
||||
|
|
|
|||
0
bin/docker-btmgmt
Executable file
0
bin/docker-btmgmt
Executable file
|
|
@ -54,9 +54,8 @@ func NewNRGKickBLE(device, macaddress string, pin int) *NRGKickBLE {
|
|||
// set LE mode
|
||||
btmgmt := hw.NewBtMgmt(device)
|
||||
|
||||
// don't add Docker binary on CI
|
||||
if len(os.Getenv("DOCKER")) > 0 && os.Getenv("CI") == "" {
|
||||
btmgmt.BinPath = "./bin/docker-btmgmt"
|
||||
if len(os.Getenv("DOCKER")) > 0 {
|
||||
btmgmt.BinPath = "./docker-btmgmt"
|
||||
}
|
||||
|
||||
err := btmgmt.SetPowered(false)
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|||
COPY --from=builder /build/evcc /usr/local/bin/evcc
|
||||
|
||||
COPY entrypoint.sh /evcc/
|
||||
COPY bin/* /evcc/
|
||||
|
||||
EXPOSE 7070
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue