Skip to content

Commit 0d3cbb1

Browse files
README.md update (#78)
* Merge pull request #70 from SkalskiP/develop (#71) * new gif with ssd and posenet * Add Docker Support (#74) * add Dockerfile for make-sense * Update README for Docker * README updated * README updated with docker logs * readme updated * Update Dockerfile * Update README.md * basic stats Co-authored-by: Fatih Baltacı <[email protected]>
1 parent a91f750 commit 0d3cbb1

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,23 @@ npm start
6565
```
6666
To ensure proper functionality of the application locally, an npm `6.x.x` and node.js `v11.x.x` versions are required. More information about this problem is available in the [#16][4].
6767

68+
## Set Up Project with Docker
69+
70+
```bash
71+
# Build Docker Image
72+
docker build -t make_sense docker/
73+
74+
# Run Docker Image as Service
75+
docker run -dit -p 3000:3000 --restart=always --name=make_sense make_sense
76+
77+
# Get Docker Container IP
78+
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' make_sense
79+
# Go to `<DOCKER_CONTAINER_IP>:3000`
80+
81+
# Get Docker Container Logs
82+
docker logs make_sense
83+
```
84+
6885
## Supported Keyboard Shortcuts
6986

7087
| Functionality | Context | Mac | Windows / Linux |

docker/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:11.10-slim
2+
3+
RUN apt-get update && apt-get -y install git && rm -rf /var/lib/apt/lists/*
4+
5+
RUN mkdir /workspace && \
6+
cd /workspace && \
7+
git clone https://github.com/SkalskiP/make-sense.git && \
8+
cd make-sense && \
9+
npm install
10+
11+
WORKDIR /workspace/make-sense
12+
13+
ENTRYPOINT ["npm", "start"]

examples/demo-posenet.gif

-952 KB
Loading

examples/demo-ssd.gif

1.07 MB
Loading

public/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4+
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-155837750-1"></script>
6+
<script>
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag(){dataLayer.push(arguments);}
9+
gtag('js', new Date());
10+
11+
gtag('config', 'UA-155837750-1');
12+
</script>
13+
414
<meta charset="utf-8" />
515
<link rel="shortcut icon" href="%PUBLIC_URL%/make-sense-ico.png" />
616
<link href="https://fonts.googleapis.com/css?family=Saira+Semi+Condensed&display=swap" rel="stylesheet">

0 commit comments

Comments
 (0)