Skip to content

Commit

Permalink
Changes syntax from arg0_U to arg1
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaLaGrotteria committed Nov 15, 2024
1 parent 55fdbab commit 5203ec8
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions guides/micronaut-k8s-aws/docker-microservice.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Create container repository in your AWS account.

[source,bash]
----
export {0_U}_REPOSITORY=$(aws ecr create-repository --repository-name {0} --image-scanning-configuration scanOnPush=true --region us-east-1 --output json | jq -r .repository.repositoryUri)
export {1}_REPOSITORY=$(aws ecr create-repository --repository-name {0} --image-scanning-configuration scanOnPush=true --region us-east-1 --output json | jq -r .repository.repositoryUri)
----

https://guides.micronaut.io/latest/micronaut-docker-image.html[Build a docker image] of the `{0}` service with the name `{0}`.
Expand All @@ -13,12 +13,12 @@ Tag an existing {0} microservice image.

[source,bash]
----
docker tag {0}:latest ${{0_U}_REPOSITORY}:latest
docker tag {0}:latest ${{1}_REPOSITORY}:latest
----

Push tagged {0} microservice image to remote repository.

[source,bash]
----
docker push ${{0_U}_REPOSITORY}:latest
docker push ${{1}_REPOSITORY}:latest
----
12 changes: 6 additions & 6 deletions guides/micronaut-k8s-aws/micronaut-k8s-aws.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --

=== Users Microservice

external-template:micronaut-k8s-aws/k8s-microservice.adoc[arg0=users,arg0_U=USERS]
external-template:micronaut-k8s-aws/docker-microservice.adoc[arg0=users,arg0_U=USERS]
external-template:micronaut-k8s-aws/k8s-microservice.adoc[arg0=users,arg1=USERS]
external-template:micronaut-k8s-aws/docker-microservice.adoc[arg0=users,arg1=USERS]

=== Orders Microservice

external-template:micronaut-k8s-aws/k8s-microservice.adoc[arg0=orders,arg0_U=ORDERS]
external-template:micronaut-k8s-aws/docker-microservice.adoc[arg0=orders,arg0_U=ORDERS]
external-template:micronaut-k8s-aws/k8s-microservice.adoc[arg0=orders,arg1=ORDERS]
external-template:micronaut-k8s-aws/docker-microservice.adoc[arg0=orders,arg1=ORDERS]

=== API Microservice

external-template:micronaut-k8s-aws/k8s-microservice.adoc[arg0=api,arg0_U=API]
external-template:micronaut-k8s-aws/docker-microservice.adoc[arg0=api,arg0_U=API]
external-template:micronaut-k8s-aws/k8s-microservice.adoc[arg0=api,arg1=API]
external-template:micronaut-k8s-aws/docker-microservice.adoc[arg0=api,arg1=API]

=== Deploy Services to EKS

Expand Down
4 changes: 2 additions & 2 deletions guides/micronaut-k8s-gcp/docker-microservice.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ Tag an existing {0} microservice image.

[source,bash]
----
docker tag {0}:latest ${{0_U}_REPOSITORY}:latest
docker tag {0}:latest ${{1}_REPOSITORY}:latest
----

Push tagged {0} microservice image to remote repository.

[source,bash]
----
docker push ${{0_U}_REPOSITORY}:latest
docker push ${{1}_REPOSITORY}:latest
----
4 changes: 2 additions & 2 deletions guides/micronaut-k8s-gcp/export-repository.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Export {0} microservice image repository to the `{0_U}_REPOSITORY` environment variable.
Export {0} microservice image repository to the `{1}_REPOSITORY` environment variable.

[source,bash]
----
export {0_U}_REPOSITORY="gcr.io/$GCP_PROJECT_ID/{0}"
export {1}_REPOSITORY="gcr.io/$GCP_PROJECT_ID/{0}"
----
2 changes: 1 addition & 1 deletion guides/micronaut-k8s-gcp/gcp-delete-repository.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ Run the next command to delete `{0}` artifacts container repository:

[source,bash]
----
gcloud container images delete ${{0_U}_REPOSITORY} --force-delete-tags --quiet
gcloud container images delete ${{1}_REPOSITORY} --force-delete-tags --quiet
----

24 changes: 12 additions & 12 deletions guides/micronaut-k8s-gcp/micronaut-k8s-gcp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,21 @@ export GCP_PROJECT_ID="$(gcloud config get-value project)"

=== Users Microservice

external-template:micronaut-k8s-gcp/export-repository.adoc[arg0=users,arg0_U=USERS]
external-template:micronaut-k8s-gcp/k8s-microservice.adoc[arg0=users,arg0_U=USERS]
external-template:micronaut-k8s-gcp/docker-microservice.adoc[arg0=users,arg0_U=USERS]
external-template:micronaut-k8s-gcp/export-repository.adoc[arg0=users,arg1=USERS]
external-template:micronaut-k8s-gcp/k8s-microservice.adoc[arg0=users,arg1=USERS]
external-template:micronaut-k8s-gcp/docker-microservice.adoc[arg0=users,arg1=USERS]

=== Orders Microservice

external-template:micronaut-k8s-gcp/export-repository.adoc[arg0=orders,arg0_U=ORDERS]
external-template:micronaut-k8s-gcp/k8s-microservice.adoc[arg0=orders,arg0_U=ORDERS]
external-template:micronaut-k8s-gcp/docker-microservice.adoc[arg0=orders,arg0_U=ORDERS]
external-template:micronaut-k8s-gcp/export-repository.adoc[arg0=orders,arg1=ORDERS]
external-template:micronaut-k8s-gcp/k8s-microservice.adoc[arg0=orders,arg1=ORDERS]
external-template:micronaut-k8s-gcp/docker-microservice.adoc[arg0=orders,arg1=ORDERS]

=== API Microservice

external-template:micronaut-k8s-gcp/export-repository.adoc[arg0=api,arg0_U=API]
external-template:micronaut-k8s-gcp/k8s-microservice.adoc[arg0=api,arg0_U=API]
external-template:micronaut-k8s-gcp/docker-microservice.adoc[arg0=api,arg0_U=API]
external-template:micronaut-k8s-gcp/export-repository.adoc[arg0=api,arg1=API]
external-template:micronaut-k8s-gcp/k8s-microservice.adoc[arg0=api,arg1=API]
external-template:micronaut-k8s-gcp/docker-microservice.adoc[arg0=api,arg1=API]

=== Deploy Services to GKE

Expand Down Expand Up @@ -175,9 +175,9 @@ To delete all resources that were created in this guide run the next command.
kubectl delete namespaces micronaut-k8s
----

external-template:micronaut-k8s-gcp/gcp-delete-repository.adoc[arg0=users,arg0_U=USERS]
external-template:micronaut-k8s-gcp/gcp-delete-repository.adoc[arg0=orders,arg0_U=ORDERS]
external-template:micronaut-k8s-gcp/gcp-delete-repository.adoc[arg0=api,arg0_U=API]
external-template:micronaut-k8s-gcp/gcp-delete-repository.adoc[arg0=users,arg1=USERS]
external-template:micronaut-k8s-gcp/gcp-delete-repository.adoc[arg0=orders,arg1=ORDERS]
external-template:micronaut-k8s-gcp/gcp-delete-repository.adoc[arg0=api,arg1=API]


Run the next command to delete the `micronaut-guide` GKE cluster:
Expand Down

0 comments on commit 5203ec8

Please sign in to comment.