-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Showing
17 changed files
with
502 additions
and
412 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM phusion/baseimage:0.11 | ||
|
||
RUN apt-get update && apt-get install -y sudo iproute2 iputils-ping | ||
|
||
RUN echo '* libraries/restart-without-asking boolean true' | sudo debconf-set-selections | ||
|
||
COPY docker/bin /usr/bin/ | ||
|
||
COPY . /usr/bin/tuya-convert | ||
|
||
RUN cd /usr/bin/tuya-convert && ./install_prereq.sh | ||
|
||
RUN mkdir -p /etc/service/tuya && cd /etc/service/tuya && ln -s /usr/bin/config.sh run |
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,4 @@ | ||
#!/bin/bash | ||
echo WLAN=$WLAN >/usr/bin/tuya-convert/config.txt | ||
echo AP=$AP >>/usr/bin/tuya-convert/config.txt | ||
echo GATEWAY=$GATEWAY >>/usr/bin/tuya-convert/config.txt |
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 @@ | ||
#!/bin/bash | ||
cd /usr/bin/tuya-convert | ||
./start_flash.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
cd /usr/bin/tuya-convert | ||
./stop_flash.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3' | ||
services: | ||
tuya: | ||
image: tuya:latest | ||
privileged: true | ||
network_mode: "host" | ||
environment: | ||
- WLAN=wlan0 | ||
- AP=vtrust-flash | ||
- GATEWAY=10.42.42.1 | ||
volumes: | ||
- ./data/backups:/usr/bin/tuya-convert/backups |
Binary file not shown.
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.