Created
July 20, 2019 11:33
-
-
Save mvoitko/dbd45294caeaf7cddb0b8318121bb9af to your computer and use it in GitHub Desktop.
Apex deploy image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG PYTHON_VERSION | |
FROM {registry_url}/lambda-base-image:$PYTHON_VERSION-0.5.0 | |
RUN curl https://raw.githubusercontent.com/apex/apex/master/install.sh | sh | |
ADD bin/download_terraform.sh /bin | |
RUN /bin/download_terraform.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ARCHITECTURE="amd64" | |
# Terraform | |
TERRAFORM_VERSION="0.11.13" | |
curl -o /bin/terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_${ARCHITECTURE}.zip" | |
unzip /bin/terraform.zip -d /bin | |
# Terraform plugins | |
MACHINE="$(uname -s | tr '[:upper:]' '[:lower:]')" | |
PLUGIN_DIR="/.terraform/plugins/${MACHINE}_${ARCHITECTURE}" | |
mkdir -p "${PLUGIN_DIR}" | |
TF_CREDSTASH_VERSION=0.2.1 | |
BIN_NAME="terraform-provider-credstash_v${TF_CREDSTASH_VERSION}" | |
curl -L -o "${PLUGIN_DIR}/${BIN_NAME}" "https://github.com/sspinc/terraform-provider-credstash/releases/download/v${TF_CREDSTASH_VERSION}/terraform-provider-credstash_${MACHINE}_${ARCHITECTURE}" | |
chmod +x "${PLUGIN_DIR}/${BIN_NAME}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment