-
Notifications
You must be signed in to change notification settings - Fork 45
Docker for the app #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
aff8f75
added dockerfile and put URLs in env vars
792eee1
added new env var to sample
0d3a921
added env file for docker and necessary library
784bc87
Merge branch 'master' into master
vanseforge c913a8a
Merge branch 'master' into master
vanseforge d2fa374
Merge branch 'calebolson123:master' into master
vanseforge 8c1547c
added dockerfiles
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,7 @@ | ||
| SLEEP_DATA_PATH=/usr/app/babysleepcoach | ||
| DEBUG=False | ||
| OWL=False | ||
| VIDEO_PATH=/usr/app/babysleepcoach/video | ||
| HATCH_IP=192.168.HATCH.IP | ||
| CAM_STREAM_URL=192.168.1.100:554/h264Preview_01_sub | ||
| REACT_APP_BACKEND_URL=http://10.0.0.2:7081 |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -12,3 +12,6 @@ build | |
| !*.ipynb | ||
| !requirements.txt | ||
| !.env_sample | ||
| !.env_sample_docker | ||
| !dockerfile | ||
| !start_docker.sh | ||
This file contains hidden or 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 hidden or 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,21 @@ | ||
| #Deriving the latest base image | ||
| FROM node:slim | ||
|
|
||
| WORKDIR /usr/app/babysleepcoach | ||
|
|
||
| RUN mkdir -p video | ||
|
|
||
| #Copy all files in the container | ||
| COPY . . | ||
|
|
||
| # Install required packages | ||
| 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 | ||
|
|
||
| ENV SLEEP_DATA_PATH=/usr/app/babysleepcoach | ||
| ENV VIDEO_PATH=/usr/app/babysleepcoach/video | ||
|
|
||
| CMD ["./start_docker.sh"] | ||
|
vanseforge marked this conversation as resolved.
|
||
This file contains hidden or 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 hidden or 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 @@ | ||
| #!/bin/bash | ||
|
|
||
| python3 main.py & | ||
| cd /usr/app/babysleepcoach/webapp | ||
| yarn start |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.