forked from eigr/spawn
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adriano Santos
committed
Aug 26, 2022
1 parent
68df251
commit 1037eb4
Showing
10 changed files
with
81 additions
and
60 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,13 @@ activator-sqs-image=${registry}/spawn-activator-sqs:${version} | |
|
||
.PHONY: all | ||
|
||
all: build test build-all-images create-k8s-cluster create-k8s-namespace load-k8s-images generate-k8s-manifests apply-k8s-manifests | ||
all: build test build-all-images | ||
|
||
clean: | ||
mix deps.clean --all | ||
|
||
clean-all: | ||
mix deps.clean --all && kind delete cluster --name kind-default | ||
mix deps.clean --all && kind delete cluster --name default | ||
|
||
build: | ||
mix deps.get && mix compile | ||
|
@@ -26,7 +26,7 @@ build-proxy-image: | |
docker build -f Dockerfile-proxy -t ${proxy-image} . | ||
|
||
build-operator-image: | ||
docker build -f Dockerfile-proxy -t ${operator-image} . | ||
docker build -f Dockerfile-operator -t ${operator-image} . | ||
|
||
build-all-images: | ||
docker build -f Dockerfile-proxy -t ${proxy-image} . | ||
|
@@ -77,5 +77,14 @@ create-k8s-namespace: | |
apply-k8s-manifests: | ||
kubectl -n eigr-functions apply -f apps/operator/manifest.yaml | ||
|
||
run: | ||
run-proxy-local: | ||
cd apps/proxy && PROXY_DATABASE_TYPE=mysql SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= iex --name [email protected] -S mix | ||
|
||
run-operator-local: | ||
cd apps/operator && MIX_ENV=dev iex --name [email protected] -S mix | ||
|
||
run-proxy-image: | ||
docker run --rm --name=spawn-proxy -e PROXY_DATABASE_TYPE=mysql -e SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= --net=host ${proxy-image} | ||
|
||
run-operator-image: | ||
docker run --rm --name=spawn-operator --net=host ${operator-image} |
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 |
---|---|---|
|
@@ -497,7 +497,7 @@ After that, just check your actors with: | |
kubectl get actornodes | ||
``` | ||
|
||
## Project Development | ||
## Local Development | ||
|
||
Run: | ||
|
||
|
@@ -509,4 +509,6 @@ Tests: | |
|
||
```shell | ||
MIX_ENV=test PROXY_DATABASE_TYPE=mysql PROXY_HTTP_PORT=9001 SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= elixir --name [email protected] -S mix test | ||
``` | ||
``` | ||
|
||
For more information on how to collaborate or even to get to know the project structure better, go to our [contributor guide](CONTRIBUTING.md) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Empty file.
Empty file.
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