ADD file:af4cf77e6818016b697a1491101b40c71d06529ced65f36107749f099d6d4bdc in / |
CMD ["bash"] |
LABEL maintainer=Community & Partner Engineering Team <community-partner@circleci.com> |
SHELL [/bin/bash -exo pipefail -c] |
ENV DEBIAN_FRONTEND=noninteractive TERM=dumb PAGER=cat |
/bin/bash -exo pipefail -c echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90circleci && echo 'DPkg::Options "--force-confnew";' >> /etc/apt/apt.conf.d/90circleci && apt-get update && apt-get install -y curl locales sudo && locale-gen en_US.UTF-8 && rm -rf /var/lib/apt/lists/* && useradd --uid=3434 --user-group --create-home circleci && echo 'circleci ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-circleci && echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep && sudo -u circleci mkdir /home/circleci/project && sudo -u circleci mkdir /home/circleci/bin && curl -sSL --fail --retry 3 --output /tmp/dockerize-linux-amd64.tar.gz "https://circle-downloads.s3.amazonaws.com/circleci-images/cache/linux-amd64/dockerize-latest.tar.gz" && tar -C /usr/local/bin -xzvf /tmp/dockerize-linux-amd64.tar.gz && rm -rf /tmp/dockerize-linux-amd64.tar.gz && dockerize --version |
ENV PATH=/home/circleci/bin:/home/circleci/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 |
/bin/bash -exo pipefail -c noInstallRecommends="" && if [[ "20.04" == "22.04" ]]; then noInstallRecommends="--no-install-recommends"; fi && apt-get update && apt-get install -y $noInstallRecommends autoconf build-essential ca-certificates cmake curl gnupg gzip jq libcurl4-openssl-dev libmariadb-dev libmariadb-dev-compat libpq-dev libssl-dev libsqlite3-dev make nano net-tools netcat openssh-client parallel pkg-config postgresql-client shellcheck software-properties-common sudo tar tzdata unzip vim wget zip && add-apt-repository ppa:git-core/ppa && apt-get install -y git && rm -rf /var/lib/apt/lists/* |
ENV DOCKER_VERSION=5:20.10.17~3-0~ubuntu- |
/bin/bash -exo pipefail -c apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu $( lsb_release -cs ) stable" && apt-get install -y docker-ce=${DOCKER_VERSION}$( lsb_release -cs ) docker-ce-cli=${DOCKER_VERSION}$( lsb_release -cs ) containerd.io && docker --version && rm -rf /var/lib/apt/lists/* |
ENV COMPOSE_VER=2.6.0 |
ENV COMPOSE_SWITCH_VERSION=1.0.4 |
/bin/bash -exo pipefail -c apt-get update && apt-get install --yes --no-install-recommends docker-compose-plugin=${COMPOSE_VER}~ubuntu-$( lsb_release -cs ) && curl -fL https://github.com/docker/compose-switch/releases/download/v${COMPOSE_SWITCH_VERSION}/docker-compose-linux-amd64 -o /usr/local/bin/compose-switch && docker compose version && chmod +x /usr/local/bin/compose-switch && update-alternatives --install /usr/local/bin/docker-compose docker-compose /usr/local/bin/compose-switch 99 && docker-compose version |
/bin/bash -exo pipefail -c curl -sSL "https://github.com/mikefarah/yq/releases/download/v4.23.1/yq_linux_amd64.tar.gz" | tar -xz -C /usr/local/bin && mv /usr/local/bin/yq{_linux_amd64,} |
USER circleci |
/bin/bash -exo pipefail -c whoami && git config --global --add safe.directory '*' |
WORKDIR /home/circleci/project |
LABEL maintainer=Community & Partner Engineering Team <community-partner@circleci.com> |
ENV NODE_VERSION=18.9.1 |
/bin/bash -exo pipefail -c curl -L -o node.tar.xz "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz" && sudo tar -xJf node.tar.xz -C /usr/local --strip-components=1 && rm node.tar.xz && sudo ln -s /usr/local/bin/node /usr/local/bin/nodejs |
ENV PATH=/home/circleci/.yarn/bin:/home/circleci/bin:/home/circleci/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
ENV YARN_VERSION=1.22.18 |
/bin/bash -exo pipefail -c curl -L -o yarn.tar.gz "https://yarnpkg.com/downloads/${YARN_VERSION}/yarn-v${YARN_VERSION}.tar.gz" && sudo tar -xzf yarn.tar.gz -C /opt/ && rm yarn.tar.gz && sudo ln -s /opt/yarn-v${YARN_VERSION}/bin/yarn /usr/local/bin/yarn && sudo ln -s /opt/yarn-v${YARN_VERSION}/bin/yarnpkg /usr/local/bin/yarnpkg |
/bin/bash -exo pipefail -c sudo npm install -g pnpm |
USER root |