feat(terraform): define core-net LXC container (CT 902) on netcore
This commit is contained in:
1 parent
8e6f5dd5fe
commit
2b23809bc3
7 files changed
+102
-53
No files matched your search
@@ -1,7 +1,13 @@
|
||||
FROM hashicorp/terraform:1.9.8 AS terraform
|
||||
FROM infisical/cli:latest AS infisical
|
||||
|
||||
FROM ubuntu:24.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
COPY --from=terraform /bin/terraform /usr/local/bin/terraform
|
||||
COPY --from=infisical /bin/infisical /usr/local/bin/infisical
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
openssh-client \
|
||||
@@ -10,6 +16,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
sshpass \
|
||||
ca-certificates \
|
||||
curl \
|
||||
jq \
|
||||
&& ansible-galaxy collection install ansible.posix community.general \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Настройка зеркала Terraform (обход гео-блокировки registry.terraform.io)
|
||||
RUN cat <<'EOF' > /root/.terraformrc
|
||||
provider_installation {
|
||||
network_mirror {
|
||||
url = "https://terraform-mirror.yandexcloud.net/"
|
||||
include = ["registry.terraform.io/*/*"]
|
||||
}
|
||||
direct {
|
||||
exclude = ["registry.terraform.io/*/*"]
|
||||
}
|
||||
}
|
||||
EOF
|
||||
Reference in new issue
Block a user