-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
31 lines (31 loc) · 1.71 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"name": "fast-artistic-videos-docker",
"version": "1.0.0",
"description": "",
"main": "fav",
"scripts": {
"start": "docker run --entrypoint bash -itd --cpus 2 -m 2G -v `pwd`:/app $(./dev/env DOCKER_TAG)",
"shell": "./dev/docker-shell.sh",
"fav": "docker run --cpus 2 -m 2G -v `pwd`:/app $(./dev/env DOCKER_TAG)",
"container": "nvidia-docker run --cpus 2 -m 2G --mount type=bind,source=$(pwd),target=/io $(./dev/env DOCKER_TAG)",
"kill": "docker kill $(docker ps -q)",
"build": "node ./dev/docker-build.js",
"push": "npm run gcloud:cluster:auth && docker push $(./dev/env DOCKER_TAG)",
"deploy": "npm run build && npm run push && npm run gcloud:deployment:update",
"gcloud:cluster:create": "gcloud container clusters create fav --zone us-central1-c",
"gcloud:cluster:auth": "gcloud container clusters get-credentials fav",
"gcloud:pool:delete-default": "gcloud container node-pools delete default-pool --cluster fav",
"gcloud:pool:create": "gcloud container node-pools create fav-pool --zone us-central1-c --cluster fav --num-nodes 1 --machine-type n1-standard-4 --disk-type pd-ssd --disk-size 128GB --accelerator type=nvidia-tesla-k80,count=1",
"gcloud:cluster:drivers": "kubectl apply -f https://raw.githubusercontent.com/GoogleCloudPlatform/container-engine-accelerators/stable/nvidia-driver-installer/cos/daemonset-preloaded.yaml",
"gcloud:deployment:update": "./dev/kube-deploy.js deployment.yaml && npm run gcloud:deployment:status",
"gcloud:deployment:status": "kubectl rollout status deployment fav"
},
"author": "positlabs",
"dependencies": {
"dotenv": "^6.0.0",
"fs-extra": "^7.0.1",
"glob": "^7.1.3",
"js-yaml": "^3.12.0",
"yargs": "^12.0.5"
}
}