Skip to content

Commit

Permalink
Use yum to install docker instead of amazon-linux-extra (#1425)
Browse files Browse the repository at this point in the history
* Use yum to install docker instead of amazon-extra

* Fix libcrypt issue with docker-compose

* CHnage installation of libxcrypt
  • Loading branch information
Kausik-A authored Oct 3, 2023
1 parent 9fd661f commit 391cc69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion terraform/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,11 @@ resource "null_resource" "setup_sample_app_and_mock_server" {
provisioner "remote-exec" {
inline = [
"sudo yum update -y",
"sudo amazon-linux-extras install docker -y",
"sudo yum install -y libxcrypt-compat",
"sudo yum install -y docker",
"sudo service docker start",
"sudo usermod -a -G docker ec2-user",
"sudo ln -s /usr/lib/libcrypt.so /usr/lib/libcrypt.so.1",
"sudo curl -L 'https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64' -o /usr/local/bin/docker-compose",
"sudo chmod +x /usr/local/bin/docker-compose",
"sudo `aws ecr get-login --no-include-email --region ${var.region}`",
Expand Down

0 comments on commit 391cc69

Please sign in to comment.