forked from calebolson123/BabySleepCoach
-
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
120c410
commit 5a238f4
Showing
24 changed files
with
5,105 additions
and
2,591 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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
SLEEP_DATA_PATH=/path/to/sleep/data | ||
CAM_IP=<ip_of_your_camera> # ip of the baby camera | ||
CAM_PW=<password> # password for baby camera | ||
APP_DIR=/usr/app/babysleepcoach # location of app root, primarily used for docker | ||
DEBUG=False | ||
OWL=False | ||
VIDEO_PATH=/path/to/video | ||
HATCH_IP=192.168.HATCH.IP | ||
CAM_STREAM_URL=192.168.1.100:554/h264Preview_01_sub | ||
OWL=False # lol | ||
VIDEO_PATH=/usr/app/babysleepcoach/video # for debugging & testing | ||
HATCH_IP=192.168.HATCH.IP # optional | ||
REACT_APP_BACKEND_IP=192.168.0.206:8001 # ip of flask server. This is the ip of "this" machine running the system | ||
REACT_APP_RESOURCE_SERVER_IP=192.168.0.206:8000 # ip of resource server (TODO: align to 1 server). This is the ip of "this" machine running the system | ||
PORT=80 # port web app serves assets from |
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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
#Deriving the latest base image | ||
FROM node:slim | ||
|
||
WORKDIR /usr/app/babysleepcoach | ||
|
||
RUN mkdir -p video | ||
EXPOSE 80 | ||
|
||
#Copy all files in the container | ||
COPY . . | ||
|
||
# Install required packages | ||
ENV PIP_BREAK_SYSTEM_PACKAGES 1 | ||
RUN apt-get update && apt-get install python3-pip libgl1 libglib2.0-0 -y | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install -r requirements.txt | ||
|
||
RUN cd webapp && yarn install | ||
RUN cd webapp && yarn install && cd .. | ||
|
||
ENV SLEEP_DATA_PATH=/usr/app/babysleepcoach | ||
ENV VIDEO_PATH=/usr/app/babysleepcoach/video | ||
WORKDIR /usr/app/babysleepcoach | ||
|
||
CMD ["./start_docker.sh"] | ||
ENTRYPOINT ["bash", "start_docker.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
Oops, something went wrong.