File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
THALES_VERSION=0.1.0
3
3
4
4
# Ubuntu version for Docker
5
- UBUNTU_VERSION=22 .04
5
+ UBUNTU_VERSION=24 .04
Original file line number Diff line number Diff line change 1
1
# Ubuntu version
2
- UBUNTU_VERSION = 22 .04
2
+ UBUNTU_VERSION = 24 .04
3
3
4
4
# Database configuration
5
5
DB_HOST = postgres
Original file line number Diff line number Diff line change 1
- ARG UBUNTU_VERSION=22 .04
1
+ ARG UBUNTU_VERSION=24 .04
2
2
FROM ubuntu:${UBUNTU_VERSION}
3
3
4
4
# Install system essentials
Original file line number Diff line number Diff line change 1
- ARG UBUNTU_VERSION=22 .04
1
+ ARG UBUNTU_VERSION=24 .04
2
2
3
3
# Build stage
4
4
FROM ubuntu:${UBUNTU_VERSION} AS builder
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ resource "aws_security_group" "thales_sg" {
123
123
124
124
# EC2 Instance
125
125
resource "aws_instance" "thales_instance" {
126
- ami = " ami-0430580de6244e02e" # Ubuntu 22 .04 LTS in us-east-2
126
+ ami = " ami-0430580de6244e02e" # Ubuntu 24 .04 LTS in us-east-2
127
127
instance_type = var. instance_type
128
128
129
129
subnet_id = aws_subnet. thales_public_subnet . id
@@ -132,8 +132,8 @@ resource "aws_instance" "thales_instance" {
132
132
133
133
user_data = <<- EOF
134
134
#!/bin/bash
135
- apt-get update
136
- apt-get install -y docker.io docker-compose
135
+ apt update
136
+ apt install -y docker.io docker-compose
137
137
systemctl start docker
138
138
systemctl enable docker
139
139
usermod -aG docker ubuntu
You can’t perform that action at this time.
0 commit comments