Skip to content

Commit

Permalink
Pin gitflow version to 1.11.0.
Browse files Browse the repository at this point in the history
Circumvent breaking change in latest version: 
petervanderdoes/gitflow-avh#394
  • Loading branch information
27Bslash6 committed Jan 25, 2019
1 parent f1f9cbf commit 5ac1888
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
33 changes: 19 additions & 14 deletions src/circleci-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Planet 4 CircleCI build image
# Branch: develop
# Commit: ad1e02597c28c81bedd826a5989b440823572031
# Build: https://circleci.com/gh/greenpeace/planet4-circleci/890
# Commit: f1f9cbf5f73c66abf7cd162be2c0a7d7d3019afd
# Build: (local)
# ------------------------------------------------------------------------
# DO NOT MAKE CHANGES HERE
# This file is built automatically from ./templates/Dockerfile.in
# ------------------------------------------------------------------------

FROM circleci/php:7.0-node

LABEL maintainer="${MAINTAINER}" \
LABEL maintainer="Raymond Walker <[email protected]>" \
description="Planet 4 CircleCI build image: \
Base image for performing CI/CD operations in CircleCI"

Expand All @@ -20,35 +20,40 @@ ENV CIRCLECI_USER="circleci" \

WORKDIR /home/circleci

COPY .curlrc /home/circleci

COPY ./scripts /home/circleci/scripts
COPY ./etc/ /etc

RUN git clone https://github.com/sstephenson/bats.git && \
./bats/install.sh /usr/local && \
rm -fr /home/circleci/bats && \
curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 60 "https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip" > /tmp/terraform.zip && \
curl -sS "https://releases.hashicorp.com/terraform/0.11.10/terraform_0.11.10_linux_amd64.zip" > /tmp/terraform.zip && \
unzip /tmp/terraform.zip -d /usr/local/bin && \
chmod 0755 /usr/local/bin/terraform && \
curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 60 -sSOL https://github.com/gruntwork-io/terragrunt/releases/download/v0.16.3/terragrunt_linux_amd64 && \
curl -sSO https://github.com/gruntwork-io/terragrunt/releases/download/v0.17.2/terragrunt_linux_amd64 && \
chmod 0755 terragrunt_linux_amd64 && \
mv terragrunt_linux_amd64 /usr/local/bin/terragrunt && \
curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 60 "https://beyondgrep.com/ack-2.24-single-file" > /usr/local/bin/ack && \
chmod 0755 /usr/local/bin/ack && \
chmod 0755 /home/circleci/scripts/* && \
export "DESIRED_VERSION=v2.9.1" && \
curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 60 -sL https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash - && \
export "DESIRED_VERSION=v2.12.3" && \
curl -sS https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash - && \
wget --no-check-certificate -q https://raw.githubusercontent.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh && \
bash gitflow-installer.sh install stable && \
rm gitflow-installer.sh && \
curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 60 -sL https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 > /usr/local/bin/cloud_sql_proxy && \
bash gitflow-installer.sh install version 1.11.0 && \
rm -fr git-flow gitflow-installer.sh && \
curl -s https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 > /usr/local/bin/cloud_sql_proxy && \
chmod 0755 /usr/local/bin/cloud_sql_proxy && \
apt-get install -y --no-install-recommends \
gawk \
gettext \
mysql-client \
python-pip \
python-pkg-resources \
python-setuptools \
shellcheck \
silversearcher-ag \
vim \
wget \
&& \
pip install yamllint && \
npm install -g \
junit-merge \
tap-xunit && \
Expand All @@ -58,7 +63,7 @@ RUN git clone https://github.com/sstephenson/bats.git && \

USER circleci

RUN curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 60 -L "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/""google-cloud-sdk-209.0.0-linux-x86_64.tar.gz" | tar xz && \
RUN curl "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-231.0.0-linux-x86_64.tar.gz" | tar xz && \
CLOUDSDK_CORE_DISABLE_PROMPTS=1 ./google-cloud-sdk/install.sh \
--usage-reporting false \
--bash-completion false \
Expand Down
4 changes: 2 additions & 2 deletions src/circleci-base/templates/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ RUN git clone https://github.com/sstephenson/bats.git && \
export "DESIRED_VERSION=v${HELM_VERSION}" && \
curl -sS https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash - && \
wget --no-check-certificate -q https://raw.githubusercontent.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh && \
bash gitflow-installer.sh install stable && \
rm gitflow-installer.sh && \
bash gitflow-installer.sh install version 1.11.0 && \
rm -fr git-flow gitflow-installer.sh && \
curl -s https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 > /usr/local/bin/cloud_sql_proxy && \
chmod 0755 /usr/local/bin/cloud_sql_proxy && \
apt-get install -y --no-install-recommends \
Expand Down

0 comments on commit 5ac1888

Please sign in to comment.