From 0aca86a1918fb750333df8b24529b5a9f2628027 Mon Sep 17 00:00:00 2001 From: Max Siegieda Date: Thu, 24 Jan 2019 11:00:10 +0000 Subject: [PATCH] update AMI and container used for deployments --- k8s/production/config.yml | 4 ++-- service/deployment/deployment.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/k8s/production/config.yml b/k8s/production/config.yml index cb1122d8..5ba88a95 100644 --- a/k8s/production/config.yml +++ b/k8s/production/config.yml @@ -18,10 +18,10 @@ data: RECO_DEPLOY_LOG_GROUP: "/reconfigureio/deployments" GIN_MODE: release RECO_ENV: production - RECO_DEPLOY_IMAGE: "reconfigureio/docker-aws-fpga-runtime:latest" + RECO_DEPLOY_IMAGE: "reconfigureio/build-framework/sdaccel-builder:v0.18.7-dirty" RECO_FEATURE_INTERCOM: "1" PORT: '80' - RECO_DEPLOY_AMI: ami-43338239 + RECO_DEPLOY_AMI: ami-0bf310a6858243a7c RECO_DEPLOY_BUCKET: "reconfigureio-builds" RECO_DEPLOY_SUBNET: subnet-b0ca3aed RECO_DEPLOY_SG: sg-b03e38c2 diff --git a/service/deployment/deployment.go b/service/deployment/deployment.go index 3f89b245..d58f29b3 100644 --- a/service/deployment/deployment.go +++ b/service/deployment/deployment.go @@ -48,7 +48,7 @@ type service struct { type ServiceConfig struct { LogGroup string `env:"RECO_DEPLOY_LOG_GROUP" envDefault:"/reconfigureio/deployments"` - Image string `env:"RECO_DEPLOY_IMAGE" envDefault:"reconfigureio/docker-aws-fpga-runtime:latest"` + Image string `env:"RECO_DEPLOY_IMAGE" envDefault:"reconfigureio/build-framework/sdaccel-builder:v0.18.7-dirty"` AMI string `env:"RECO_DEPLOY_AMI"` Bucket string `env:"RECO_DEPLOY_BUCKET" envDefault:"reconfigureio-builds"` Subnet string `env:"RECO_DEPLOY_SUBNET" envDefault:"subnet-fa2a9c9e"` @@ -156,8 +156,8 @@ func (s *service) runInstance(ctx context.Context, encodedConfig string, dryRun ec2Session := ec2.New(s.session) cfg := ec2.RunInstancesInput{ - DryRun: aws.Bool(dryRun), - ImageId: aws.String(s.Conf.AMI), + DryRun: aws.Bool(dryRun), + ImageId: aws.String(s.Conf.AMI), InstanceInitiatedShutdownBehavior: aws.String("terminate"), InstanceType: aws.String("f1.2xlarge"), MaxCount: aws.Int64(1),