-
Notifications
You must be signed in to change notification settings - Fork 11
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
339b856
commit 07cee20
Showing
6 changed files
with
118 additions
and
71 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## Dev Locally | ||
|
||
### Build | ||
|
||
```bash | ||
docker build \ | ||
-t gcr.io/kuda-project/api \ | ||
-f install/api/Dockerfile \ | ||
. | ||
``` | ||
|
||
### Run | ||
|
||
```bash | ||
docker run --rm \ | ||
-e KUDA_GCP_PROJECT=`gcloud config get-value project` \ | ||
-e GOOGLE_APPLICATION_CREDENTIALS=/credentials/`basename $GOOGLE_APPLICATION_CREDENTIALS` \ | ||
-v `dirname $GOOGLE_APPLICATION_CREDENTIALS`:/credentials \ | ||
-e PORT=80 \ | ||
-p 8080:80 \ | ||
gcr.io/kuda-project/api | ||
``` | ||
|
||
### Deploy | ||
|
||
```bash | ||
docker push gcr.io/kuda-project/api | ||
``` | ||
|
||
## Dev in the cluster using skaffold. | ||
|
||
```bash | ||
skaffold dev -f install/api/skaffold.yaml | ||
``` | ||
|
||
## Deploy to the cluster with skaffold. | ||
|
||
```bash | ||
skaffold run -f install/api/skaffold.yaml | ||
``` |
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
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
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