Skip to content

Commit

Permalink
chore: add ansible to cdktf image
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbl committed Jan 29, 2024
1 parent 59838a8 commit 9c56bed
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build/cdktf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# Dockerfile which creates a container that has all the dependencies required to
# run cdktf and perform deployments.
#
# Image size is roughly 1.5GB, but it keeps host OS clean.
# Image size is roughly 1.5GB, but it keeps host OS clean and makes it easy to
# provision the infrastructure from scratch.
#
# NOTE: To keep the size down, this image only supports the
# TypeScript language for projects. If you want to use
# python or golang, you will need to install the required
Expand All @@ -12,6 +14,9 @@
# NOTE: Because cdktf is running in a container, it currently
# cannot use Terraform docker providers.
#
# When using additional providers, it might be necessary to install dependencies
# in the docker image for them to properly run within the container.
#
FROM ubuntu:23.10

# Basic tools that are required for everything else.
Expand All @@ -21,10 +26,12 @@ RUN apt update && apt install -y curl unzip
# https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest#option-1-install-with-one-command
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash

# Install Node (no update because it already ran)
# Install Node and other cdktf/terraform dependencies.
RUN apt install -y \
nodejs \
npm \
ansible \
golang \
&& rm -rf /var/lib/apt/lists/*

# Install Terraform
Expand Down

0 comments on commit 9c56bed

Please sign in to comment.