Skip to content

Commit

Permalink
Update rust version in Dockerfile and (temporarily) change to cheaper…
Browse files Browse the repository at this point in the history
… instance types
  • Loading branch information
alexwaeseperlman committed Feb 12, 2024
1 parent 6c07447 commit 2981d71
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 10 deletions.
9 changes: 6 additions & 3 deletions deployment/lib/resources-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export class ResourcesStack extends cdk.Stack {
natGatewayProvider: ec2.NatProvider.instance({
instanceType: ec2.InstanceType.of(
ec2.InstanceClass.T3A,
ec2.InstanceSize.MICRO
ec2.InstanceSize.SMALL
),
}),
natGateways: 1,
Expand Down Expand Up @@ -431,8 +431,11 @@ export class ResourcesStack extends cdk.Stack {
"unsafe-worker-capacity",
{
instanceType: ec2.InstanceType.of(
ec2.InstanceClass.C6G,
ec2.InstanceSize.MEDIUM
//TODO: In prod use C6G
/*ec2.InstanceClass.C6G,
ec2.InstanceSize.MEDIUM*/
ec2.InstanceClass.T4G,
ec2.InstanceSize.MICRO
),
machineImage: ecs.EcsOptimizedImage.amazonLinux2(
ecs.AmiHardwareType.ARM
Expand Down
2 changes: 1 addition & 1 deletion website/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN npm ci
COPY website/app .
RUN npm run build

FROM --platform=linux/arm64 rust:1.70 as backend
FROM --platform=linux/arm64 rust:1.76-bullseye as backend
WORKDIR /usr/src/backend
RUN apt-get update && apt-get install pkg-config libssl-dev libpq-dev curl build-essential -y

Expand Down
2 changes: 1 addition & 1 deletion website/dev-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build frontend in one container, backend in another, then copy the results into a third container
FROM --platform=linux/arm64 rust:1.70
FROM --platform=linux/arm64 rust:1.76-bullseye
RUN apt-get update && apt-get install pkg-config libssl-dev libpq-dev curl build-essential -y

ENV NVM_DIR /root/.nvm
Expand Down
2 changes: 1 addition & 1 deletion workers/builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/arm64 rust:1.70 as builder
FROM --platform=linux/arm64 rust:1.76-bullseye as builder

WORKDIR /usr/src/builder

Expand Down
2 changes: 1 addition & 1 deletion workers/gameplay/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/arm64 rust:1.70 as builder
FROM --platform=linux/arm64 rust:1.76-bullseye as builder

WORKDIR /usr/src/gameplay

Expand Down
2 changes: 1 addition & 1 deletion workers/gameplay/dev-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/arm64 rust:1.70
FROM --platform=linux/arm64 rust:1.76-bullseye
RUN apt-get update && apt-get install -y python3 pip ca-certificates

# Install common python packages
Expand Down
2 changes: 1 addition & 1 deletion workers/results/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/arm64 rust:1.70 as builder
FROM --platform=linux/arm64 rust:1.76-bullseye as builder

WORKDIR /usr/src/results

Expand Down
2 changes: 1 addition & 1 deletion workers/results/dev-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/arm64 rust:1.70
FROM --platform=linux/arm64 rust:1.76-bullseye


RUN apt-get update && apt-get install -y entr
Expand Down

0 comments on commit 2981d71

Please sign in to comment.