Skip to content

Commit

Permalink
Run Terraform Init
Browse files Browse the repository at this point in the history
  • Loading branch information
eifelmicha committed Jan 16, 2025
1 parent fbe1ad8 commit 60c20d3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions azure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ARG ANSIBLE_VERSION \

RUN groupadd -g 1000 admin && useradd -u 1000 -g 1000 -s /bin/bash -d /home/admin admin
COPY ansible_collections.yml /home/admin/ansible_collections.yml
COPY provider.tf /home/admin/provider.tf

# Install dependencies.
RUN apt-get update \
Expand Down Expand Up @@ -102,6 +103,7 @@ WORKDIR /home/admin
RUN ansible-galaxy collection install -r ~/ansible_collections.yml
RUN packer plugins install "github.com/hashicorp/amazon" ${PACKER_AMAZON_VERSION} && \
packer plugins install "github.com/hashicorp/ansible" ${PACKER_ANSIBLE_VERSION}
RUN terraform init

# No ENTRYPOINT
ENTRYPOINT []
Expand Down
18 changes: 18 additions & 0 deletions azure/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.83.1"
}
archive = {
source = "hashicorp/archive"
version = "2.3.0"
}
}
}

provider "aws" {
}

provider "archive" {
}

0 comments on commit 60c20d3

Please sign in to comment.