Skip to content

Commit

Permalink
Merge pull request #5 from julioalex-rezende/julio/1-build-failure
Browse files Browse the repository at this point in the history
Adding missing file to account-service
  • Loading branch information
macromania authored Nov 10, 2023
2 parents 3be5341 + 562631e commit 4afc376
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 10 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.azure
.gradle
test/e2e-test/build/
bin/
bin/
src/account-service/build/
src/fraud-service/build/
src/public-api-service/build/
src/notification-service/build/
2 changes: 1 addition & 1 deletion infra/core/host/aks-managed-cluster.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ param location string = resourceGroup().location
param tags object = {}

@description('Kubernetes Version')
param kubernetesVersion string = '1.25.5'
param kubernetesVersion string = '1.27.1'

@description('Whether RBAC is enabled for local accounts')
param enableRbac bool = true
Expand Down
9 changes: 7 additions & 2 deletions src/account-service/local-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/sh

set -o errexit

serviceName="account-service"
version=$(date +%Y.%m.%d.%H.%M.%S)
printf "\n🛖 Releasing version: %s\n\n" "${version}"

printf "\n☢️ Attempting to delete existing deployment %s\n\n" "${serviceName}"
kubectl delete deployment "${serviceName}"
# check if service deployment exists on cluster, deleting if it does
if [ $(kubectl get deployments | grep -c "^${serviceName}") -eq "1" ]; then
printf "\n☢️ Attempting to delete existing deployment %s\n\n" "${serviceName}"
kubectl delete deployment "${serviceName}"
fi

printf "\n🏗️ Building docker image\n\n"
docker build -t localhost:5001/"${serviceName}":"${version}" .
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.azdaks.accountservice.model;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.jackson.Jacksonized;

@Getter
@Setter
@Jacksonized
@Builder
public class CreateAccountRequest {
private String owner;
private double amount;

public String toString() {
return "Owner: " + owner + ", Amount: " + amount;
}
}
9 changes: 7 additions & 2 deletions src/fraud-service/local-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/sh

set -o errexit

serviceName="fraud-service"
version=$(date +%Y.%m.%d.%H.%M.%S)
printf "\n🛖 Releasing version: %s\n\n" "${version}"

printf "\n☢️ Attempting to delete existing deployment %s\n\n" "${serviceName}"
kubectl delete deployment "${serviceName}"
# check if service deployment exists on cluster, deleting if it does
if [ $(kubectl get deployments | grep -c "^${serviceName}") -eq "1" ]; then
printf "\n☢️ Attempting to delete existing deployment %s\n\n" "${serviceName}"
kubectl delete deployment "${serviceName}"
fi

printf "\n🏗️ Building docker image\n\n"
docker build -t localhost:5001/"${serviceName}":"${version}" .
Expand Down
9 changes: 7 additions & 2 deletions src/notification-service/local-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/sh

set -o errexit

serviceName="notification-service"
version=$(date +%Y.%m.%d.%H.%M.%S)
printf "\n🛖 Releasing version: %s\n\n" "${version}"

printf "\n☢️ Attempting to delete existing deployment %s\n\n" "${serviceName}"
kubectl delete deployment "${serviceName}"
# check if service deployment exists on cluster, deleting if it does
if [ $(kubectl get deployments | grep -c "^${serviceName}") -eq "1" ]; then
printf "\n☢️ Attempting to delete existing deployment %s\n\n" "${serviceName}"
kubectl delete deployment "${serviceName}"
fi

printf "\n🏗️ Building docker image\n\n"
docker build -t localhost:5001/"${serviceName}":"${version}" .
Expand Down
9 changes: 7 additions & 2 deletions src/public-api-service/local-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/sh

set -o errexit

serviceName="public-api-service"
version=$(date +%Y.%m.%d.%H.%M.%S)
printf "\n🛖 Releasing version: %s\n\n" "${version}"

printf "\n☢️ Attempting to delete existing deployment %s\n\n" "${serviceName}"
kubectl delete deployment "${serviceName}"
# check if service deployment exists on cluster, deleting if it does
if [ $(kubectl get deployments | grep -c "^${serviceName}") -eq "1" ]; then
printf "\n☢️ Attempting to delete existing deployment %s\n\n" "${serviceName}"
kubectl delete deployment "${serviceName}"
fi

printf "\n🏗️ Building docker image\n\n"
docker build -t localhost:5001/"${serviceName}":"${version}" .
Expand Down

0 comments on commit 4afc376

Please sign in to comment.