Skip to content

Commit

Permalink
Merge pull request #56 from alekodu/ghcr
Browse files Browse the repository at this point in the history
adding github container registry
  • Loading branch information
salehsedghpour authored May 25, 2022
2 parents 56b984e + c51530e commit 789ac76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generator/src/pkg/service/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const (
VolumePath = "/usr/src/app/config"

ImageName = "app"
ImageURL = "app-demo:latest"
ImageURL = "ghcr.io/ericssonresearch/cloud-native-app-simulator/app-demo:latest"

DefaultExtPort = 80
DefaultPort = 5000
Expand Down Expand Up @@ -84,7 +84,7 @@ func CreateDeployment(metadataName, selectorAppName, selectorClusterName string,
containerInstance.Ports = append(containerInstance.Ports, containerPortInstance)
containerInstance.Name = containerName
containerInstance.Image = containerImage
containerInstance.ImagePullPolicy = "Never"
containerInstance.ImagePullPolicy = "IfNotPresent"
containerInstance.Env = append(containerInstance.Env, envInstance)
if protocol == "http" {
containerInstance.ReadinessProbe.HttpGet.Path = "/"
Expand Down Expand Up @@ -144,7 +144,7 @@ func CreateWorkerDeployment(metadataName, selectorName string, numberOfReplicas
containerInstance.Volumes = append(containerInstance.Volumes, containerVolume)
containerInstance.Name = containerName
containerInstance.Image = containerImage
containerInstance.ImagePullPolicy = "Never"
containerInstance.ImagePullPolicy = "IfNotPresent"

deployment.APIVersion = "apps/v1"
deployment.Kind = "Deployment"
Expand Down

0 comments on commit 789ac76

Please sign in to comment.