-
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.
* Makefile * make score-compose|compose-up|compose-test * Fix compose.override * app vs. workload vs. container * Fix container image * Fix container image * Fix container image in helm * Fix container name in Helm * prepare container image for helm * fix typo
- Loading branch information
1 parent
4e81e67
commit f1eadf7
Showing
9 changed files
with
70 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.score-compose/99-default.provisioners.yaml | ||
.score-compose/state.yaml | ||
.score-compose/mounts/routing-ToNP4f/nginx.conf | ||
.score-compose/mounts/routing-opq6wX/nginx.conf | ||
compose.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
score-compose: | ||
score-compose init \ | ||
--no-sample | ||
score-compose generate score/score.yaml \ | ||
--build my-sample-container=app/ \ | ||
--override-property containers.my-sample-container.variables.MESSAGE="Hello, Compose!" | ||
|
||
compose-up: | ||
docker compose up --build -d | ||
|
||
compose-test: | ||
curl localhost:8080 | ||
|
||
compose-down: | ||
docker compose down -v --remove-orphans | ||
|
||
score-helm: | ||
score-helm run \ | ||
-f score.yaml \ | ||
-p containers.my-sample-container.image=sail-sharp-my-sample-app-my-sample-app \ | ||
-p containers.my-sample-container.variables.MESSAGE="Hello, Kubernetes!" \ | ||
-o values.yaml | ||
|
||
NAMESPACE ?= default | ||
k8s-up: | ||
helm upgrade \ | ||
-n ${NAMESPACE} \ | ||
--install \ | ||
--create-namespace \ | ||
my-sample-workload \ | ||
--repo https://score-spec.github.io/score-helm-charts \ | ||
workload \ | ||
--values values.yaml \ | ||
--set containers.my-sample-container.image.name=registry.humanitec.io/public/sample-score-app:latest | ||
|
||
k8s-test: | ||
kubectl port-forward service/my-sample-workload 8080:8080 | ||
|
||
k8s-down: | ||
helm uninstall \ | ||
-n ${NAMESPACE} \ | ||
my-sample-workload |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: config.humanitec.io/v1b1 | ||
kind: ScoreDeployConfig | ||
workloads: | ||
- name: my-sample-app/my-sample-app | ||
- name: my-sample-app/my-sample-workload | ||
specFile: ./score.yaml | ||
extensionsFile: ./humanitec.score.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