Skip to content

Commit 6c1a18e

Browse files
authored
Merge pull request #27 from codeguru42/26-deploy
26 deploy
2 parents c990bc3 + 9cd7119 commit 6c1a18e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

deploy.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
image_hash=$1
3+
account_id=$(aws sts get-caller-identity --query Account --output text)
4+
aws ecr get-login-password | docker login --username AWS --password-stdin ${account_id}.dkr.ecr.us-west-1.amazonaws.com \
5+
&& docker stop go-capture \
6+
&& docker rm go-capture \
7+
&& docker run -d --env-file .env -p 8000:8000 --name go-capture ${account_id}.dkr.ecr.us-west-1.amazonaws.com/go-capture:${image_hash} \

go_capture/sgf/find_stones.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def categorize(patch, label_black, label_white):
1818

1919
def find_stones(board):
2020
gray = cv2.cvtColor(board, cv2.COLOR_BGR2GRAY)
21-
cv2.imwrite('gray.png', gray)
2221
labeled_image, label_black, label_white = get_clusters(gray)
2322
height, width, _ = board.shape
2423
dx = width // 18

requests.http

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
GET http://{{host}}:{{port}}/health_check/
33

44
### POST image
5-
65
POST http://{{host}}:{{port}}/capture/
76
Content-Type: multipart/form-data; boundary=WebAppBoundary
87

0 commit comments

Comments
 (0)