diff --git a/.gitignore b/.gitignore index e43b0f98..6b464a5f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .DS_Store +.terraform + diff --git a/app_build/terraform/config.tf b/app_build/terraform/config.tf new file mode 100644 index 00000000..92fd7e4b --- /dev/null +++ b/app_build/terraform/config.tf @@ -0,0 +1,44 @@ +terraform { + backend "s3" { + bucket = "grx-core-tfstate" + key = "aws-codebuild-docker-images" + region = "us-east-1" + dynamodb_table = "cybergrx-tflock" + } +} + +provider "aws" { + alias = "core" + region = "${var.region}" + + assume_role { + role_arn = "arn:aws:iam::${lookup(var.account_numbers, "core")}:role/terraform-role" + } +} + +provider "aws" { + alias = "main" + region = "${var.region}" + + assume_role { + role_arn = "arn:aws:iam::${lookup(var.account_numbers, "main")}:role/terraform-role" + } +} + +provider "aws" { + region = "${var.region}" + + assume_role { + role_arn = "arn:aws:iam::${lookup(var.account_numbers, var.env)}:role/terraform-role" + } +} + +data "terraform_remote_state" "vpc" { + backend = "s3" + + config { + bucket = "grx-core-tfstate" + key = "vpc" + region = "us-east-1" + } +} diff --git a/app_build/terraform/main.tf b/app_build/terraform/main.tf new file mode 100644 index 00000000..05e3a27b --- /dev/null +++ b/app_build/terraform/main.tf @@ -0,0 +1,20 @@ +module "build_pipe" { + source = "git::ssh://git@github.com/CyberGRX/terraform-aws-grx-codebuild.git?ref=v1.3.19" + region = "${var.region}" + vpc_id = "${lookup(data.terraform_remote_state.vpc.vpc_id,var.env)}" + private_subnets = ["${data.terraform_remote_state.vpc.private_subnets["${var.env}"]}"] + project_name = "aws-codebuild-docker-images" + create_pipe = "yes" + include_ecr = "yes" + env = "core" + build_image = "aws/codebuild/standard:2.0" + + parameter_list = [ + "/build/secrets/daedalus", + "/codebuild/nexus/helm-password", + ] + + providers = { + aws.core = "aws.core" + } +} diff --git a/app_build/terraform/variables.tf b/app_build/terraform/variables.tf new file mode 100644 index 00000000..7593071f --- /dev/null +++ b/app_build/terraform/variables.tf @@ -0,0 +1,25 @@ +#Boiler Plate Variables +variable "account_numbers" { + description = "Map of account numbers matched to environement" + type = "map" + + default = { + main = "551321121225" + staging = "001096032920" + core = "746807083977" + dev = "122189113537" + prod = "528335337478" + } +} + +variable "env" { + description = "The environment to deploy into" + type = "string" + default = "core" +} + +variable "region" { + description = "The AWS region" + type = "string" + default = "us-east-1" +} diff --git a/buildspec.yml b/buildspec.yml index 2479f84b..d15c18bc 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -1,7 +1,17 @@ version: 0.2 phases: + install: + runtime-versions: + docker: 18 + pre_build: + commands: + $(aws ecr get-login --no-include-email --region us-east-1) build: commands: - cd $CODEBUILD_SRC_DIR/ubuntu/standard/2.0 - - docker build -t aws/codebuild/standard:2.0 . + - docker build -t aws-codebuild-docker . + post_build: + commands: + - docker tag aws-codebuild-docker:latest 746807083977.dkr.ecr.us-east-1.amazonaws.com/$PROJECT:latest + - docker push 746807083977.dkr.ecr.us-east-1.amazonaws.com/$PROJECT:latest diff --git a/ubuntu/standard/2.0/Dockerfile b/ubuntu/standard/2.0/Dockerfile index f554e7c2..5b578cfc 100755 --- a/ubuntu/standard/2.0/Dockerfile +++ b/ubuntu/standard/2.0/Dockerfile @@ -20,7 +20,12 @@ ENV RUBY_VERSION="2.6.3" \ GOLANG_VERSION="1.12.5" \ DOTNET_SDK_VERSION="2.2.300" \ DOCKER_VERSION="18.09.6" \ - DOCKER_COMPOSE_VERSION="1.24.0" + DOCKER_COMPOSE_VERSION="1.24.0" \ + HELM_VERSION="v2.12.2" \ + TERRAFORM_VERSION="0.11.14" \ + KUBE_CTL_VERSION="1.10.13-00" \ + SL1_PMT_VERSION="v1.3.0-custom" \ + MANIFEST_UTILS_VERSION="1.0.0" #**************** Utilities ********************************************* ENV DOCKER_BUCKET="download.docker.com" \ @@ -29,7 +34,8 @@ ENV DOCKER_BUCKET="download.docker.com" \ DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ GITVERSION_VERSION="4.0.0" \ DEBIAN_FRONTEND="noninteractive" \ - SRC_DIR="/usr/src" + SRC_DIR="/usr/src" \ + HELM_SHA="edad6d5e594408b996b8d758a04948f89dab15fa6c6ea6daee3709f8c099df6d" # Install git, SSH, and other utilities RUN set -ex \ @@ -50,39 +56,48 @@ RUN set -ex \ && chmod 600 ~/.ssh/known_hosts \ && apt-get install -y --no-install-recommends \ wget python3 python3-dev python3-pip python3-setuptools fakeroot ca-certificates jq \ - netbase gnupg dirmngr bzr mercurial procps \ - tar gzip zip autoconf automake \ - bzip2 file g++ gcc imagemagick \ - libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev \ - libevent-dev libffi-dev libgeoip-dev libglib2.0-dev \ - libjpeg-dev libkrb5-dev liblzma-dev \ - libmagickcore-dev libmagickwand-dev libmysqlclient-dev \ - libncurses5-dev libpq-dev libreadline-dev \ - libsqlite3-dev libssl-dev libtool libwebp-dev \ - libxml2-dev libxslt1-dev libyaml-dev make \ - patch xz-utils zlib1g-dev unzip curl \ - e2fsprogs iptables xfsprogs \ - mono-devel less groff liberror-perl \ - asciidoc build-essential bzr cvs cvsps docbook-xml docbook-xsl dpkg-dev \ - libdbd-sqlite3-perl libdbi-perl libdpkg-perl libhttp-date-perl \ - libio-pty-perl libserf-1-1 libsvn-perl libsvn1 libtcl8.6 libtimedate-perl \ - libxml2-utils libyaml-perl python-bzrlib python-configobj \ - sgml-base sgml-data subversion tcl tcl8.6 xml-core xmlto xsltproc \ - tk gettext gettext-base libapr1 libaprutil1 xvfb expect parallel \ - locales rsync \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ + netbase gnupg tar gzip zip autoconf automake bzip2 file \ + libbz2-dev libc6-dev libcurl4-openssl-dev libssl-dev libyaml-dev \ + patch xz-utils zlib1g-dev unzip curl less dpkg-dev \ + python-configobj parallel iptables \ + locales rsync\ && rm -rf /var/lib/apt/lists/* \ && apt-get clean -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion-bin-net40-v${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion +#Download and install helm +RUN curl -L https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz --output helm.tar.gz \ + && echo "${HELM_SHA} helm.tar.gz" | sha256sum -c - \ + #&& sha256sum --check helm.sha \ + && tar -zxf helm.tar.gz \ + && mv linux-amd64/helm /usr/local/bin/helm \ + && chmod +x /usr/local/bin/helm \ + && helm init --client-only \ + && helm plugin install --version master https://github.com/sonatype-nexus-community/helm-nexus-push.git \ + && helm repo add grx-charts https://nexus.grx-dev.com/repository/cybergrx-helm \ + && ls -al /root/.helm/repository/ \ + && rm -rf helm.sha helm.tar.gz linux-amd64/ + +#Download and install terraform +RUN wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \ + && unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip \ + && mv terraform /usr/local/bin \ + && terraform -version + +#Download and install kubectl +RUN apt-get update && apt-get install -y apt-transport-https \ + && curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \ + && echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list \ + && apt-get update && apt-get install -y kubectl=${KUBE_CTL_VERSION} python3-pip + +#Upgrade awscli +RUN pip3 install wheel awscli --upgrade + +#Download and install custom k8s provider +RUN mkdir -p ~/.terraform.d/plugins/linux_amd64/ \ + && curl -L -o k8s-provider.zip https://github.com/sl1pm4t/terraform-provider-kubernetes/releases/download/${SL1_PMT_VERSION}/terraform-provider-kubernetes_${SL1_PMT_VERSION}_linux_amd64.zip \ + && unzip k8s-provider.zip \ + && mv terraform-provider-kubernetes_${SL1_PMT_VERSION}_x4 ~/.terraform.d/plugins/linux_amd64/terraform-provider-k8s + # Install Docker RUN set -ex \ && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ @@ -101,12 +116,6 @@ RUN set -ex \ # Ensure docker-compose works && docker-compose version -# https://docs.aws.amazon.com/eks/latest/userguide/install-aws-iam-authenticator.html https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI_installation.html -RUN curl -sS -o /usr/local/bin/aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/aws-iam-authenticator \ - && curl -sS -o /usr/local/bin/kubectl https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/kubectl \ - && curl -sS -o /usr/local/bin/ecs-cli https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest \ - && chmod +x /usr/local/bin/kubectl /usr/local/bin/aws-iam-authenticator /usr/local/bin/ecs-cli - RUN set -ex \ && pip3 install --upgrade setuptools wheel \ && pip3 install awscli boto3 @@ -120,315 +129,10 @@ COPY runtimes.yml /codebuild/image/config/runtimes.yml COPY dockerd-entrypoint.sh /usr/local/bin/ -#**************** RUBY ********************************************************* - -ENV RBENV_SRC_DIR="/usr/local/rbenv" - -ENV PATH="/root/.rbenv/shims:$RBENV_SRC_DIR/bin:$RBENV_SRC_DIR/shims:$PATH" \ - RUBY_BUILD_SRC_DIR="$RBENV_SRC_DIR/plugins/ruby-build" - -RUN set -ex \ - && git clone https://github.com/rbenv/rbenv.git $RBENV_SRC_DIR \ - && mkdir -p $RBENV_SRC_DIR/plugins \ - && git clone https://github.com/rbenv/ruby-build.git $RUBY_BUILD_SRC_DIR \ - && sh $RUBY_BUILD_SRC_DIR/install.sh \ - && rbenv install $RUBY_VERSION && rbenv global $RUBY_VERSION - -#**************** END RUBY ***************************************************** - -#**************** PYTHON ********************************************* -ENV PATH="/usr/local/bin:$PATH" \ - GPG_KEY="0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D" \ - PYTHON_PIP_VERSION="19.1.1" \ - LC_ALL=C.UTF-8 \ - LANG=C.UTF-8 - -RUN apt-get update && apt-get install -y --no-install-recommends \ - tcl-dev tk-dev \ - && rm -rf /var/lib/apt/lists/* \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" && \ - wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && (gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$GPG_KEY" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$GPG_KEY" \ - || gpg --keyserver keyserver.ubuntu.com --recv-keys "$GPG_KEY") \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -r "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && ./configure \ - --enable-loadable-sqlite-extensions \ - --enable-shared \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ -# explicit path to "pip3" to ensure distribution-provided "pip3" cannot interfere - && if [ ! -e /usr/local/bin/pip3 ]; then : \ - && wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \ - && python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \ - && rm /tmp/get-pip.py \ - ; fi \ -# we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python -# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages") -# https://github.com/docker-library/python/pull/143#issuecomment-241032683 - && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ - && pip install pipenv virtualenv --no-cache-dir \ - && pip3 install --no-cache-dir --upgrade setuptools wheel \ -# then we use "pip list" to ensure we don't have more than one pip version installed -# https://github.com/docker-library/python/pull/100 - && [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a -name test -o -name tests \) \ - -o \ - \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - \) -exec rm -rf '{}' + \ - && apt-get purge -y --auto-remove tcl-dev tk-dev \ - && rm -rf /usr/src/python ~/.cache \ - && cd /usr/local/bin \ - && { [ -e easy_install ] || ln -s easy_install-* easy_install; } \ - && ln -s idle3 idle \ - && ln -s pydoc3 pydoc \ - && ln -s python3 python \ - && ln -s python3-config python-config \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* -#**************** END PYTHON ********************************************* - -#**************** PHP **************************************************** - ENV GPG_KEYS CBAF69F173A0FEA4B537F470D66C9593118BCCB6 F38252826ACD957EF380D39F2F7956BC5DA04B5D - ENV PHP_DOWNLOAD_SHA="fefc8967daa30ebc375b2ab2857f97da94ca81921b722ddac86b29e15c54a164" \ - PHPPATH="/php" \ - PHP_INI_DIR="/usr/local/etc/php" \ - PHP_CFLAGS="-fstack-protector -fpic -fpie -O2" \ - PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" - ENV PHP_SRC_DIR="$SRC_DIR/php" \ - PHP_CPPFLAGS="$PHP_CFLAGS" \ - PHP_URL="https://secure.php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" \ - PHP_ASC_URL="https://secure.php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" - RUN set -xe; \ - mkdir -p $SRC_DIR; \ - cd $SRC_DIR; \ - wget -O php.tar.xz "$PHP_URL"; \ - echo "$PHP_DOWNLOAD_SHA *php.tar.xz" | sha256sum -c -; \ - wget -O php.tar.xz.asc "$PHP_ASC_URL"; \ - export GNUPGHOME="$(mktemp -d)"; \ - for key in $GPG_KEYS; do \ - ( gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$key" \ - || gpg --keyserver keyserver.pgp.com --recv-keys "$key" ); \ - done; \ - gpg --batch --verify php.tar.xz.asc php.tar.xz; \ - rm -rf "$GNUPGHOME"; \ - set -eux; \ - savedAptMark="$(apt-mark showmanual)"; \ - apt-get update; \ - apt-get install -y --no-install-recommends libedit-dev dpkg-dev libargon2-0-dev; \ - rm -rf /var/lib/apt/lists/*; \ - apt-get clean; \ - export \ - CFLAGS="$PHP_CFLAGS" \ - CPPFLAGS="$PHP_CPPFLAGS" \ - LDFLAGS="$PHP_LDFLAGS" \ - ; \ - mkdir -p $PHP_SRC_DIR; \ - tar -Jxf $SRC_DIR/php.tar.xz -C $PHP_SRC_DIR --strip-components=1; \ - cd $PHP_SRC_DIR; \ - gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)"; \ - debMultiarch="$(dpkg-architecture -qDEB_BUILD_MULTIARCH)"; \ - if [ ! -d /usr/include/curl ]; then \ - ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ - fi; \ - ./configure \ - --build="$gnuArch" \ - --with-config-file-path="$PHP_INI_DIR" \ - --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \ - --disable-cgi \ - # --enable-ftp is included here because ftp_ssl_connect() needs ftp to be compiled statically (see https://github.com/docker-library/php/issues/236) - --enable-ftp \ - # --enable-mbstring is included here because otherwise there's no way to get pecl to use it properly (see https://github.com/docker-library/php/issues/195) - --enable-mbstring \ - # --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself) - --enable-mysqlnd \ - --enable-sockets \ - --enable-pcntl \ - # https://wiki.php.net/rfc/argon2_password_hash (7.2+) - --with-password-argon2 \ - --with-curl \ - --with-pdo-pgsql \ - --with-pdo-mysql \ - --with-libedit \ - --with-openssl \ - --with-zlib \ - $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ - --with-libdir="lib/$debMultiarch" \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ - ; \ - make -j "$(nproc)"; \ - make install; \ - find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; \ - make clean; \ - cd /; \ - rm -rf $PHP_SRC_DIR; \ - rm $SRC_DIR/php.tar.xz; \ - apt-mark auto '.*' > /dev/null; \ - [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \ - find /usr/local -type f -executable -exec ldd '{}' ';' \ - | awk '/=>/ { print $(NF-1) }' \ - | sort -u \ - | xargs -r dpkg-query --search \ - | cut -d: -f1 \ - | sort -u \ - | xargs -r apt-mark manual \ - ; \ - apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ - php --version; \ - pecl update-channels; \ - rm -rf /tmp/pear ~/.pearrc; \ - mkdir "$PHP_INI_DIR"; \ - mkdir "$PHP_INI_DIR/conf.d"; \ - touch "$PHP_INI_DIR/conf.d/memory.ini" \ - && echo "memory_limit = 1G;" >> "$PHP_INI_DIR/conf.d/memory.ini"; - - ENV PATH="$PHPPATH/bin:/usr/local/php/bin:$PATH" - - # Install Composer globally - RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer -#**************** END PHP **************************************************** +RUN apt-get update \ + && add-apt-repository -y ppa:deadsnakes/ppa \ + && apt-get install -y python3.7 -#**************** NODEJS **************************************************** - - ENV N_SRC_DIR="$SRC_DIR/n" - - RUN git clone https://github.com/tj/n $N_SRC_DIR \ - && cd $N_SRC_DIR && make install \ - && n $NODE_8_VERSION && npm install --save-dev -g grunt && npm install --save-dev -g grunt-cli && npm install --save-dev -g webpack \ - && n $NODE_VERSION && npm install --save-dev -g grunt && npm install --save-dev -g grunt-cli && npm install --save-dev -g webpack \ - && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ - && apt-get update && apt-get install -y --no-install-recommends yarn \ - && cd / && rm -rf $N_SRC_DIR; - -#**************** END NODEJS **************************************************** - -#**************** JAVA **************************************************** -# Copy install tools -COPY tools /opt/tools - -ENV JAVA_11_HOME="/opt/jvm/openjdk-11" \ - JDK_11_HOME="/opt/jvm/openjdk-11" \ - JRE_11_HOME="/opt/jvm/openjdk-11" \ - JAVA_8_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \ - JDK_8_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \ - JRE_8_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre" \ - ANT_VERSION=1.10.6 \ - MAVEN_HOME="/opt/maven" \ - MAVEN_VERSION=3.6.1 \ - MAVEN_CONFIG="/root/.m2" \ - INSTALLED_GRADLE_VERSIONS="4.10.3 5.4.1" \ - GRADLE_VERSION=5.4.1 \ - SBT_VERSION=1.2.8 \ - JDK_VERSION=11.0.2 \ - JDK_VERSION_TAG=9 \ - ANDROID_HOME="/usr/local/android-sdk-linux" \ - GRADLE_PATH="$SRC_DIR/gradle" \ - ANDROID_SDK_MANAGER_VER="4333796" \ - ANDROID_SDK_BUILD_TOOLS="build-tools;28.0.3" \ - ANDROID_SDK_PLATFORM_TOOLS="platforms;android-28" \ - ANDROID_SDK_EXTRAS="extras;android;m2repository extras;google;m2repository extras;google;google_play_services" \ - JDK_DOWNLOAD_SHA256="99be79935354f5c0df1ad293620ea36d13f48ec3ea870c838f20c504c9668b57" \ - ANT_DOWNLOAD_SHA512="c1a9694c3018e248000ff6f46d48af85f537ef3935e0d5256543c58a240084c0aff5289fd9e94cbc40d5442f3cc43592398047f2548fded40d9882be2b40750d" \ - MAVEN_DOWNLOAD_SHA512="b4880fb7a3d81edd190a029440cdf17f308621af68475a4fe976296e71ff4a4b546dd6d8a58aaafba334d309cc11e638c52808a4b0e818fc0fd544226d952544" \ - GRADLE_DOWNLOADS_SHA256="14cd15fc8cc8705bd69dcfa3c8fefb27eb7027f5de4b47a8b279218f76895a91 5.4.1\n336b6898b491f6334502d8074a6b8c2d73ed83b92123106bd4bf837f04111043 4.10.3" \ - ANDROID_SDK_MANAGER_SHA256="92ffee5a1d98d856634e8b71132e8a95d96c83a63fde1099be3d86df3106def9" - -ENV JDK_DOWNLOAD_TAR="openjdk-${JDK_VERSION}_linux-x64_bin.tar.gz" \ - JAVA_HOME="$JAVA_11_HOME" \ - JDK_HOME="$JDK_11_HOME" \ - JRE_HOME="$JRE_11_HOME" - -ENV PATH="${PATH}:/opt/tools:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools" - -RUN set -ex \ - && apt-get update \ - && apt-get install -y software-properties-common \ - # Install OpenJDK 8 - && add-apt-repository -y ppa:openjdk-r/ppa \ - && apt-get update \ - && apt-get install -y openjdk-8-jdk \ - && apt-get install -y --no-install-recommends ca-certificates-java \ - # Ensure Java cacerts symlink points to valid location - && update-ca-certificates -f \ - && dpkg --add-architecture i386 \ - && apt-get update \ - && apt-get install -y --force-yes libc6-i386 \ - lib32stdc++6 lib32gcc1 lib32ncurses5 \ - lib32z1 libqt5widgets5 \ - # Install Android SDK manager - && wget "https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_MANAGER_VER}.zip" -O /tmp/android-sdkmanager.zip \ - && echo "${ANDROID_SDK_MANAGER_SHA256} /tmp/android-sdkmanager.zip" | sha256sum -c - \ - && mkdir -p ${ANDROID_HOME} \ - && unzip /tmp/android-sdkmanager.zip -d ${ANDROID_HOME} \ - && chown -R root.root ${ANDROID_HOME} \ - && ln -s ${ANDROID_HOME}/tools/android /usr/bin/android \ - # Install Android - && android-accept-licenses.sh "env JAVA_HOME=$JAVA_8_HOME JRE_HOME=$JRE_8_HOME JDK_HOME=$JDK_8_HOME sdkmanager --verbose platform-tools ${ANDROID_SDK_BUILD_TOOLS} ${ANDROID_SDK_PLATFORM_TOOLS} ${ANDROID_SDK_EXTRAS} ${ANDROID_SDK_NDK_TOOLS}" \ - && android-accept-licenses.sh "env JAVA_HOME=$JAVA_8_HOME JRE_HOME=$JRE_8_HOME JDK_HOME=$JDK_8_HOME sdkmanager --licenses" \ - && apt-get install -y python-setuptools \ - # Install OpenJDK 11 - # Note: We will use update-alternatives to make sure JDK11 has higher priority for all the tools - && mkdir -p $JAVA_HOME \ - && curl -LSso /var/tmp/$JDK_DOWNLOAD_TAR https://download.java.net/java/GA/jdk$JAVA_VERSION/$JDK_VERSION_TAG/GPL/$JDK_DOWNLOAD_TAR \ - && echo "$JDK_DOWNLOAD_SHA256 /var/tmp/$JDK_DOWNLOAD_TAR" | sha256sum -c - \ - && tar xzvf /var/tmp/$JDK_DOWNLOAD_TAR -C $JAVA_HOME --strip-components=1 \ - && for tool_path in $JAVA_HOME/bin/*; do \ - tool=`basename $tool_path`; \ - update-alternatives --install /usr/bin/$tool $tool $tool_path 10000; \ - update-alternatives --set $tool $tool_path; \ - done \ - && rm $JAVA_HOME/lib/security/cacerts && ln -s /etc/ssl/certs/java/cacerts $JAVA_HOME/lib/security/cacerts \ - # Install Ant - && curl -LSso /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz https://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz \ - && echo "$ANT_DOWNLOAD_SHA512 /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz" | sha512sum -c - \ - && tar -xzf /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz -C /opt \ - && update-alternatives --install /usr/bin/ant ant /opt/apache-ant-$ANT_VERSION/bin/ant 10000 \ - # Install Maven - && mkdir -p $MAVEN_HOME \ - && curl -LSso /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz https://apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \ - && echo "$MAVEN_DOWNLOAD_SHA512 /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz" | sha512sum -c - \ - && tar xzvf /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz -C $MAVEN_HOME --strip-components=1 \ - && update-alternatives --install /usr/bin/mvn mvn /opt/maven/bin/mvn 10000 \ - && mkdir -p $MAVEN_CONFIG \ - # Install Gradle - && mkdir -p $GRADLE_PATH \ - && for version in $INSTALLED_GRADLE_VERSIONS; do { \ - wget "https://services.gradle.org/distributions/gradle-$version-all.zip" -O "$GRADLE_PATH/gradle-$version-all.zip" \ - && unzip "$GRADLE_PATH/gradle-$version-all.zip" -d /usr/local \ - && echo "$GRADLE_DOWNLOADS_SHA256" | grep "$version" | sed "s|$version|$GRADLE_PATH/gradle-$version-all.zip|" | sha256sum -c - \ - && mkdir "/tmp/gradle-$version" \ - && "/usr/local/gradle-$version/bin/gradle" -p "/tmp/gradle-$version" wrapper \ - # Android Studio uses the "-all" distribution for it's wrapper script. - && perl -pi -e "s/gradle-$version-bin.zip/gradle-$version-all.zip/" "/tmp/gradle-$version/gradle/wrapper/gradle-wrapper.properties" \ - && "/tmp/gradle-$version/gradlew" -p "/tmp/gradle-$version" init \ - && rm -rf "/tmp/gradle-$version" \ - && if [ "$version" != "$GRADLE_VERSION" ]; then rm -rf "/usr/local/gradle-$version"; fi; \ - }; done \ - # Install default GRADLE_VERSION to path - && ln -s /usr/local/gradle-$GRADLE_VERSION/bin/gradle /usr/bin/gradle \ - && rm -rf $GRADLE_PATH \ - # Install SBT - && echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list \ - && apt-get install -y --no-install-recommends apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 \ - && apt-get update \ - && apt-get install -y --no-install-recommends sbt=$SBT_VERSION \ - # Cleanup - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* \ - && apt-get clean -#**************** END JAVA **************************************************** #**************** GO ********************************************************** ENV GOLANG_DOWNLOAD_SHA256="aea86e3c73495f205929cfebba0d63f1382c8ac59be081b6351681415f4063cf" \ @@ -452,90 +156,3 @@ RUN set -ex \ ENV PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" #**************** END GO ********************************************************** -#**************** .NET-CORE ******************************************************* -RUN set -ex \ - && apt-get update \ - && apt-get install -y --no-install-recommends \ - libc6 \ - libgcc1 \ - libgssapi-krb5-2 \ - liblttng-ust0 \ - libstdc++6 \ - zlib1g \ - software-properties-common \ - && add-apt-repository ppa:ubuntu-toolchain-r/test -y \ - && apt-get update \ - && rm -rf /var/lib/apt/lists/* - -# Install .NET Core SDK -ENV DOTNET_SDK_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz -ENV DOTNET_SDK_DOWNLOAD_SHA 1D660A323180DF3DA8C6E0EA3F439D6BBEC29670D498AC884F38BF3CDFFBB041C7AFFF66171CDFD24C82394B845B135B057404DEF1FCE9F206853726382BC42B - -RUN set -ex \ - && curl -SL $DOTNET_SDK_DOWNLOAD_URL --output dotnet.tar.gz \ - && echo "$DOTNET_SDK_DOWNLOAD_SHA dotnet.tar.gz" | sha512sum -c - \ - && mkdir -p /usr/share/dotnet \ - && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ - && rm dotnet.tar.gz \ - && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet - -# Add .NET Core Global Tools install folder to PATH -ENV PATH "~/.dotnet/tools/:$PATH" - -# Trigger the population of the local package cache -ENV NUGET_XMLDOC_MODE skip -RUN set -ex \ - && mkdir warmup \ - && cd warmup \ - && dotnet new \ - && cd .. \ - && rm -rf warmup \ - && rm -rf /tmp/NuGetScratch - -# Install Powershell Core -# See instructions at https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux -ARG POWERSHELL_VERSION=6.2.1 -ENV POWERSHELL_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v$POWERSHELL_VERSION/powershell-$POWERSHELL_VERSION-linux-x64.tar.gz -ENV POWERSHELL_DOWNLOAD_SHA E8287687C99162BF70FEFCC2E492F3B54F80BE880D86B9A0EC92C71B05C40013 - -RUN set -ex \ - && curl -SL $POWERSHELL_DOWNLOAD_URL --output powershell.tar.gz \ - && echo "$POWERSHELL_DOWNLOAD_SHA powershell.tar.gz" | sha256sum -c - \ - && mkdir -p /opt/microsoft/powershell/$POWERSHELL_VERSION \ - && tar zxf powershell.tar.gz -C /opt/microsoft/powershell/$POWERSHELL_VERSION \ - && rm powershell.tar.gz \ - && ln -s /opt/microsoft/powershell/$POWERSHELL_VERSION/pwsh /usr/bin/pwsh -#**************** END .NET-CORE ******************************************************* - -#**************** HEADLESS BROWSERS ******************************************************* -RUN set -ex \ - && apt-add-repository -y "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner" \ - && apt-add-repository -y ppa:malteworld/ppa && apt-get update \ - && apt-get install -y libgtk-3-0 libglib2.0-0 libdbus-glib-1-2 libdbus-1-3 libasound2 \ - && wget -O ~/FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64" \ - && tar xjf ~/FirefoxSetup.tar.bz2 -C /opt/ \ - && ln -s /opt/firefox/firefox /usr/local/bin/firefox \ - && rm ~/FirefoxSetup.tar.bz2 \ - && firefox --version - -# Install Chrome - -RUN set -ex \ - && curl --silent --show-error --location --fail --retry 3 --output /tmp/google-chrome-stable_current_amd64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ - && (dpkg -i /tmp/google-chrome-stable_current_amd64.deb || apt-get -fy install) \ - && rm -rf /tmp/google-chrome-stable_current_amd64.deb \ - && sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' "/opt/google/chrome/google-chrome" \ - && google-chrome --version - -# Install ChromeDriver - -RUN set -ex \ - && CHROME_VERSION=`google-chrome --version | awk -F '[ .]' '{print $3"."$4"."$5}'` \ - && CHROME_DRIVER_VERSION=`wget -qO- chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION` \ - && wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip \ - && unzip /tmp/chromedriver_linux64.zip -d /opt \ - && rm /tmp/chromedriver_linux64.zip \ - && mv /opt/chromedriver /opt/chromedriver-$CHROME_DRIVER_VERSION \ - && chmod 755 /opt/chromedriver-$CHROME_DRIVER_VERSION \ - && ln -s /opt/chromedriver-$CHROME_DRIVER_VERSION /usr/bin/chromedriver \ - && chromedriver --version diff --git a/ubuntu/standard/2.0/runtimes.yml b/ubuntu/standard/2.0/runtimes.yml index 6dc5c5b4..b623df42 100644 --- a/ubuntu/standard/2.0/runtimes.yml +++ b/ubuntu/standard/2.0/runtimes.yml @@ -1,53 +1,6 @@ version: 0.1 runtimes: - android: - versions: - 28: - requires: - java: ["openjdk8"] - commands: - - echo "Installing Android version 28 ..." - java: - versions: - openjdk11: - commands: - - echo "Installing Java version 11 ..." - - - export JAVA_HOME="$JAVA_11_HOME" - - - export JRE_HOME="$JRE_11_HOME" - - - export JDK_HOME="$JDK_11_HOME" - - - |- - for tool_path in "$JAVA_HOME"/bin/*; - do tool=`basename "$tool_path"`; - if [ $tool != 'java-rmi.cgi' ]; - then - update-alternatives --list "$tool" | grep -q "$tool_path" \ - && update-alternatives --set "$tool" "$tool_path"; - fi; - done - openjdk8: - commands: - - echo "Installing Java version 8 ..." - - - export JAVA_HOME="$JAVA_8_HOME" - - - export JRE_HOME="$JRE_8_HOME" - - - export JDK_HOME="$JDK_8_HOME" - - - |- - for tool_path in "$JAVA_8_HOME"/bin/* "$JRE_8_HOME"/bin/*; - do tool=`basename "$tool_path"`; - if [ $tool != 'java-rmi.cgi' ]; - then - update-alternatives --list "$tool" | grep -q "$tool_path" \ - && update-alternatives --set "$tool" "$tool_path"; - fi; - done golang: versions: 1.12: @@ -58,34 +11,8 @@ runtimes: 3.7: commands: - echo "Installing Python version 3.7 ..." - php: - versions: - 7.3: - commands: - - echo "Installing PHP version 7.3 ..." - ruby: - versions: - 2.6: - commands: - - echo "Installing Ruby version 2.6 ..." - - rbenv global 2.6.3 - nodejs: - versions: - 10: - commands: - - echo "Installing Node.js version 10 ..." - - n 10.16.0 - 8: - commands: - - echo "Installing Node.js version 8 ..." - - n 8.16.0 docker: versions: 18: commands: - echo "Installing Docker version 18 ..." - dotnet: - versions: - 2.2: - commands: - - echo "Installing .NET version 2.2 ..." diff --git a/ubuntu/unsupported_images/android-java-6/24.4.1/Dockerfile b/ubuntu/unsupported_images/android-java-6/24.4.1/Dockerfile deleted file mode 100644 index 6ae05a8b..00000000 --- a/ubuntu/unsupported_images/android-java-6/24.4.1/Dockerfile +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -# Copy install tools -COPY tools /opt/tools - -ENV ANDROID_HOME="/usr/local/android-sdk-linux" \ - JAVA_HOME="/usr/lib/jvm/java-6-oracle" \ - JDK_HOME="/usr/lib/jvm/java-6-oracle" \ - JAVA_VERSION="6" \ - INSTALLED_GRADLE_VERSIONS="2.10 2.11 2.12 2.13 2.14.1" \ - GRADLE_VERSION="2.14.1" \ - ANDROID_TOOLS_VER="24.4.1" \ - ANDROID_TOOLS_SHA1="725bb360f0f7d04eaccff5a2d57abdd49061326d" -ENV PATH="${PATH}:/opt/tools:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools" \ - JAVA_PACKAGE_VERSION="${JAVA_VERSION}u45-0~webupd8~8" - -# Install java6 -RUN apt-get update \ - && apt-get install -y software-properties-common \ - && add-apt-repository -y ppa:webupd8team/java \ - && (echo oracle-java$JAVA_VERSION-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections) \ - && apt-get update \ - && apt-get install -y oracle-java$JAVA_VERSION-installer=$JAVA_PACKAGE_VERSION \ - && apt-get install -y -qq less groff \ - && dpkg --add-architecture i386 \ - && apt-get update && apt-get install -y --force-yes expect libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 libqt5widgets5 \ - && apt-get clean \ -# Precache most relevant versions of Gradle for `gradlew` scripts - && mkdir -p /usr/src/gradle \ - && for version in $INSTALLED_GRADLE_VERSIONS; do {\ - wget "https://services.gradle.org/distributions/gradle-$version-all.zip" -O "/usr/src/gradle/gradle-$version-all.zip" \ - && unzip "/usr/src/gradle/gradle-$version-all.zip" -d /usr/local \ - && mkdir "/tmp/gradle-$version" \ - && "/usr/local/gradle-$version/bin/gradle" -p "/tmp/gradle-$version" wrapper \ - # Android Studio uses the "-all" distribution for it's wrapper script. - && perl -pi -e "s/gradle-$version-bin.zip/gradle-$version-all.zip/" "/tmp/gradle-$version/gradle/wrapper/gradle-wrapper.properties" \ - && "/tmp/gradle-$version/gradlew" -p "/tmp/gradle-$version" init \ - && rm -rf "/tmp/gradle-$version" \ - && if [ "$version" != "$GRADLE_VERSION" ]; then rm -rf "/usr/local/gradle-$version"; fi; \ - }; done \ -# Install default GRADLE_VERSION to path - && ln -s /usr/local/gradle-$GRADLE_VERSION/bin/gradle /usr/bin/gradle \ - && rm -rf /usr/src/gradle \ -# Install Android SDK - && wget "http://dl.google.com/android/android-sdk_r$ANDROID_TOOLS_VER-linux.tgz" -O /tmp/android-sdk.tgz \ - && echo "${ANDROID_TOOLS_SHA1} /tmp/android-sdk.tgz" | sha1sum -c - \ - && tar -xzf /tmp/android-sdk.tgz -C /usr/local/ \ - && chown -R root.root $ANDROID_HOME \ - && ln -s $ANDROID_HOME/tools/android /usr/bin/android \ - && /opt/tools/android-accept-licenses.sh "android update sdk --all --no-ui --filter platform-tools,build-tools-25.0.0,build-tools-23.0.3,android-23,android-25" \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/ubuntu/unsupported_images/android-java-6/24.4.1/tools/android-accept-licenses.sh b/ubuntu/unsupported_images/android-java-6/24.4.1/tools/android-accept-licenses.sh deleted file mode 100755 index 776adf6f..00000000 --- a/ubuntu/unsupported_images/android-java-6/24.4.1/tools/android-accept-licenses.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/expect -f - -set timeout 1800 -set cmd [lindex $argv 0] -set licenses [lindex $argv 1] - -spawn {*}$cmd -expect { - "Do you accept the license '*'*" { - exp_send "y\r" - exp_continue - } - eof -} diff --git a/ubuntu/unsupported_images/android-java-7/24.4.1/Dockerfile b/ubuntu/unsupported_images/android-java-7/24.4.1/Dockerfile deleted file mode 100644 index 7f341cb2..00000000 --- a/ubuntu/unsupported_images/android-java-7/24.4.1/Dockerfile +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -# Copy install tools -COPY tools /opt/tools - -ENV ANDROID_HOME="/usr/local/android-sdk-linux" \ - JAVA_HOME="/usr/lib/jvm/java-7-oracle" \ - JDK_HOME="/usr/lib/jvm/java-7-oracle" \ - JAVA_VERSION="7" \ - INSTALLED_GRADLE_VERSIONS="2.10 2.11 2.12 2.13 2.14.1" \ - GRADLE_VERSION="2.14.1" \ - ANDROID_TOOLS_VER="24.4.1" \ - ANDROID_TOOLS_SHA1="725bb360f0f7d04eaccff5a2d57abdd49061326d" -ENV PATH="${PATH}:/opt/tools:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools" \ - JAVA_PACKAGE_VERSION="${JAVA_VERSION}u80+7u60arm-0~webupd8~1" - -# Install java7 -RUN apt-get update \ - && apt-get install -y software-properties-common \ - && add-apt-repository -y ppa:webupd8team/java \ - && (echo oracle-java$JAVA_VERSION-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections) \ - && apt-get update \ - && apt-get install -y oracle-java$JAVA_VERSION-installer=$JAVA_PACKAGE_VERSION \ - && apt-get install -y -qq less groff \ - && dpkg --add-architecture i386 \ - && apt-get update && apt-get install -y --force-yes expect libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 libqt5widgets5 \ - && apt-get clean \ -# Precache most relevant versions of Gradle for `gradlew` scripts - && mkdir -p /usr/src/gradle \ - && for version in $INSTALLED_GRADLE_VERSIONS; do {\ - wget "https://services.gradle.org/distributions/gradle-$version-all.zip" -O "/usr/src/gradle/gradle-$version-all.zip" \ - && unzip "/usr/src/gradle/gradle-$version-all.zip" -d /usr/local \ - && mkdir "/tmp/gradle-$version" \ - && "/usr/local/gradle-$version/bin/gradle" -p "/tmp/gradle-$version" wrapper \ - # Android Studio uses the "-all" distribution for it's wrapper script. - && perl -pi -e "s/gradle-$version-bin.zip/gradle-$version-all.zip/" "/tmp/gradle-$version/gradle/wrapper/gradle-wrapper.properties" \ - && "/tmp/gradle-$version/gradlew" -p "/tmp/gradle-$version" init \ - && rm -rf "/tmp/gradle-$version" \ - && if [ "$version" != "$GRADLE_VERSION" ]; then rm -rf "/usr/local/gradle-$version"; fi; \ - }; done \ -# Install default GRADLE_VERSION to path - && ln -s /usr/local/gradle-$GRADLE_VERSION/bin/gradle /usr/bin/gradle \ - && rm -rf /usr/src/gradle \ -# Install Android SDK - && wget "http://dl.google.com/android/android-sdk_r$ANDROID_TOOLS_VER-linux.tgz" -O /tmp/android-sdk.tgz \ - && echo "${ANDROID_TOOLS_SHA1} /tmp/android-sdk.tgz" | sha1sum -c - \ - && tar -xzf /tmp/android-sdk.tgz -C /usr/local/ \ - && chown -R root.root $ANDROID_HOME \ - && ln -s $ANDROID_HOME/tools/android /usr/bin/android \ - && /opt/tools/android-accept-licenses.sh "android update sdk --all --no-ui --filter platform-tools,build-tools-25.0.0,build-tools-23.0.3,android-23,android-25" \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/ubuntu/unsupported_images/android-java-7/24.4.1/tools/android-accept-licenses.sh b/ubuntu/unsupported_images/android-java-7/24.4.1/tools/android-accept-licenses.sh deleted file mode 100755 index 776adf6f..00000000 --- a/ubuntu/unsupported_images/android-java-7/24.4.1/tools/android-accept-licenses.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/expect -f - -set timeout 1800 -set cmd [lindex $argv 0] -set licenses [lindex $argv 1] - -spawn {*}$cmd -expect { - "Do you accept the license '*'*" { - exp_send "y\r" - exp_continue - } - eof -} diff --git a/ubuntu/unsupported_images/android-java-8/24.4.1/Dockerfile b/ubuntu/unsupported_images/android-java-8/24.4.1/Dockerfile deleted file mode 100644 index 6fc9dff7..00000000 --- a/ubuntu/unsupported_images/android-java-8/24.4.1/Dockerfile +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -# Copy install tools -COPY tools /opt/tools - -ENV ANDROID_HOME="/usr/local/android-sdk-linux" \ - JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \ - JDK_VERSION="8u171-b11-2~14.04" \ - JDK_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \ - JRE_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre" \ - JAVA_VERSION="8" \ - INSTALLED_GRADLE_VERSIONS="2.14.1 3.5 4.0.2 4.1 4.2.1 4.3.1 4.4" \ - GRADLE_VERSION="4.4" \ - ANDROID_TOOLS_VER="24.4.1" \ - ANDROID_TOOLS_SHA1="725bb360f0f7d04eaccff5a2d57abdd49061326d" -ENV PATH="${PATH}:/opt/tools:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools" - -# Install java8 -RUN set -ex \ - && apt-get update \ - && apt-get install -y software-properties-common=0.92.37.8 \ - && add-apt-repository -y ppa:openjdk-r/ppa \ - && (echo oracle-java$JAVA_VERSION-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections) \ - && apt-get update \ - && apt-get -y install openjdk-$JAVA_VERSION-jdk=$JDK_VERSION \ - && update-ca-certificates -f \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && dpkg --add-architecture i386 \ - && apt-get update && apt-get install -y --force-yes expect=5.45-* libc6-i386=2.19-* \ - lib32stdc++6=4.8.4-* lib32gcc1=1:4.9.3-* lib32ncurses5=5.9+20140118-* \ - lib32z1=1:1.2.8.dfsg-* libqt5widgets5=5.2.1+dfsg-* \ - && apt-get clean \ -# Precache most relevant versions of Gradle for `gradlew` scripts - && mkdir -p /usr/src/gradle \ - && for version in $INSTALLED_GRADLE_VERSIONS; do {\ - wget "https://services.gradle.org/distributions/gradle-$version-all.zip" -O "/usr/src/gradle/gradle-$version-all.zip" \ - && unzip "/usr/src/gradle/gradle-$version-all.zip" -d /usr/local \ - && mkdir "/tmp/gradle-$version" \ - && "/usr/local/gradle-$version/bin/gradle" -p "/tmp/gradle-$version" wrapper \ - # Android Studio uses the "-all" distribution for it's wrapper script. - && perl -pi -e "s/gradle-$version-bin.zip/gradle-$version-all.zip/" "/tmp/gradle-$version/gradle/wrapper/gradle-wrapper.properties" \ - && "/tmp/gradle-$version/gradlew" -p "/tmp/gradle-$version" init \ - && rm -rf "/tmp/gradle-$version" \ - && if [ "$version" != "$GRADLE_VERSION" ]; then rm -rf "/usr/local/gradle-$version"; fi; \ - }; done \ -# Install default GRADLE_VERSION to path - && ln -s /usr/local/gradle-$GRADLE_VERSION/bin/gradle /usr/bin/gradle \ - && rm -rf /usr/src/gradle \ -# Install Android SDK - && wget "https://dl.google.com/android/android-sdk_r$ANDROID_TOOLS_VER-linux.tgz" -O /tmp/android-sdk.tgz \ - && echo "${ANDROID_TOOLS_SHA1} /tmp/android-sdk.tgz" | sha1sum -c - \ - && tar -xzf /tmp/android-sdk.tgz -C /usr/local/ \ - && chown -R root.root $ANDROID_HOME \ - && ln -s $ANDROID_HOME/tools/android /usr/bin/android \ - && /opt/tools/android-accept-licenses.sh "android update sdk --all --no-ui --filter platform-tools,build-tools-23.0.3,build-tools-24.0.3,build-tools-25.0.3,build-tools-26.0.2,android-23,android-24,android-25,android-26" \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/ubuntu/unsupported_images/android-java-8/24.4.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/android-java-8/24.4.1/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/android-java-8/24.4.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/android-java-8/24.4.1/tools/android-accept-licenses.sh b/ubuntu/unsupported_images/android-java-8/24.4.1/tools/android-accept-licenses.sh deleted file mode 100755 index 776adf6f..00000000 --- a/ubuntu/unsupported_images/android-java-8/24.4.1/tools/android-accept-licenses.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/expect -f - -set timeout 1800 -set cmd [lindex $argv 0] -set licenses [lindex $argv 1] - -spawn {*}$cmd -expect { - "Do you accept the license '*'*" { - exp_send "y\r" - exp_continue - } - eof -} diff --git a/ubuntu/unsupported_images/android-java-8/26.1.1/Dockerfile b/ubuntu/unsupported_images/android-java-8/26.1.1/Dockerfile deleted file mode 100644 index 515a4241..00000000 --- a/ubuntu/unsupported_images/android-java-8/26.1.1/Dockerfile +++ /dev/null @@ -1,198 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -# Copy install tools -COPY tools /opt/tools - -ENV NODE_VERSION="8.11.0" \ - ANDROID_HOME="/usr/local/android-sdk-linux" \ - JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \ - JAVA_VERSION="8" \ - JDK_VERSION="8u171-b11-2~14.04" \ - JDK_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \ - JRE_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre" \ - INSTALLED_GRADLE_VERSIONS="2.14.1 3.5 4.0.2 4.1 4.2.1 4.3.1 4.4 4.6" \ - GRADLE_VERSION="4.6" \ - # Android SDK manager for 26.1.1 - ANDROID_SDK_MANAGER_VER="3859397" \ - ANDROID_SDK_MANAGER_SHA256="444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0" \ - ANDROID_SDK_BUILD_TOOLS="build-tools;19.1.0 build-tools;20.0.0 build-tools;21.1.2 build-tools;22.0.1 build-tools;23.0.3 build-tools;24.0.3 build-tools;25.0.3 build-tools;26.0.3 build-tools;27.0.3" \ - ANDROID_SDK_PLATFORM_TOOLS="platforms;android-19 platforms;android-20 platforms;android-21 platforms;android-22 platforms;android-23 platforms;android-24 platforms;android-25 platforms;android-26 platforms;android-27" \ - ANDROID_SDK_EXTRAS="extras;android;m2repository extras;google;m2repository extras;google;google_play_services" -ENV PATH="${PATH}:/opt/tools:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools" - -# gpg keys listed at https://github.com/nodejs/node#release-team -RUN set -ex \ - && for key in \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - 77984A986EBC2AA786BC0F66B01FBB92821C587A \ - 56730D5401028683275BD23C23EFEFE93C4CFFFE \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - 9554F04D7259F04124DE6B476D5A82AC7E37093B \ - 93C7E9E91B49E432C2F75674B0A78B0A6C481CF6 \ - 114F43EE0176B71C7BC219DD50A3051F888C628D \ - 7937DFD2AB06298B2293C3187D33FF9D0246406D \ - ; do \ - gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \ - gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \ - gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \ - done - -# Install nodejs -RUN set -ex \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \ - && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ - && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \ - && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \ - && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -# Install java8 -RUN set -ex \ - && apt-get update \ - && apt-get install -y software-properties-common=0.92.37.8 \ - && add-apt-repository -y ppa:openjdk-r/ppa \ - && (echo oracle-java${JAVA_VERSION}-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections) \ - && apt-get update \ - && apt-get -y install openjdk-${JAVA_VERSION}-jdk=${JDK_VERSION} \ - && update-ca-certificates -f \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && dpkg --add-architecture i386 \ - && apt-get update && apt-get install -y --force-yes expect=5.45-* libc6-i386=2.19-* \ - lib32stdc++6=4.8.4-* lib32gcc1=1:4.9.3-* lib32ncurses5=5.9+20140118-* \ - lib32z1=1:1.2.8.dfsg-* libqt5widgets5=5.2.1+dfsg-* \ - && apt-get clean \ -# Precache most relevant versions of Gradle for `gradlew` scripts - && mkdir -p /usr/src/gradle \ - && for version in $INSTALLED_GRADLE_VERSIONS; do { \ - wget "https://services.gradle.org/distributions/gradle-$version-all.zip" -O "/usr/src/gradle/gradle-$version-all.zip" \ - && unzip "/usr/src/gradle/gradle-$version-all.zip" -d /usr/local \ - && mkdir "/tmp/gradle-$version" \ - && "/usr/local/gradle-$version/bin/gradle" -p "/tmp/gradle-$version" wrapper \ - # Android Studio uses the "-all" distribution for it's wrapper script. - && perl -pi -e "s/gradle-$version-bin.zip/gradle-$version-all.zip/" "/tmp/gradle-$version/gradle/wrapper/gradle-wrapper.properties" \ - && "/tmp/gradle-$version/gradlew" -p "/tmp/gradle-$version" init \ - && rm -rf "/tmp/gradle-$version" \ - && if [ "$version" != "$GRADLE_VERSION" ]; then rm -rf "/usr/local/gradle-$version"; fi; \ - }; done \ -# Install default GRADLE_VERSION to path - && ln -s /usr/local/gradle-$GRADLE_VERSION/bin/gradle /usr/bin/gradle \ - && rm -rf /usr/src/gradle \ -# Install Android SDK manager - && wget "https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_MANAGER_VER}.zip" -O /tmp/android-sdkmanager.zip \ - && echo "${ANDROID_SDK_MANAGER_SHA256} /tmp/android-sdkmanager.zip" | sha256sum -c - \ - && mkdir -p ${ANDROID_HOME} \ - && unzip /tmp/android-sdkmanager.zip -d ${ANDROID_HOME} \ - && chown -R root.root ${ANDROID_HOME} \ - && ln -s ${ANDROID_HOME}/tools/android /usr/bin/android \ -# Install Android SDK - && android-accept-licenses.sh "sdkmanager --verbose platform-tools ${ANDROID_SDK_BUILD_TOOLS} ${ANDROID_SDK_PLATFORM_TOOLS} ${ANDROID_SDK_EXTRAS}" \ - && android-accept-licenses.sh "sdkmanager --licenses" \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/ubuntu/unsupported_images/android-java-8/26.1.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/android-java-8/26.1.1/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/android-java-8/26.1.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/android-java-8/26.1.1/tools/android-accept-licenses.sh b/ubuntu/unsupported_images/android-java-8/26.1.1/tools/android-accept-licenses.sh deleted file mode 100755 index 078fb2b1..00000000 --- a/ubuntu/unsupported_images/android-java-8/26.1.1/tools/android-accept-licenses.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/expect -f - -set timeout 1800 -set cmd [lindex $argv 0] -set licenses [lindex $argv 1] - -spawn {*}$cmd -expect { - "Do you accept the license '*'*" { - exp_send "y\r" - exp_continue - } - "Accept? (y/N): " { - exp_send "y\r" - exp_continue - } - "Review licenses that have not been accepted (y/N)? " { - exp_send "y\r" - exp_continue - } - eof -} diff --git a/ubuntu/unsupported_images/docker/1.12.1/Dockerfile b/ubuntu/unsupported_images/docker/1.12.1/Dockerfile deleted file mode 100644 index 0863eb75..00000000 --- a/ubuntu/unsupported_images/docker/1.12.1/Dockerfile +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -ENV DOCKER_BUCKET="get.docker.com" \ - DOCKER_VERSION="1.12.1" \ - DOCKER_SHA256="05ceec7fd937e1416e5dce12b0b6e1c655907d349d52574319a1e875077ccb79" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.16.1" - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -# From the docker:1.12 -RUN set -x \ - && curl -fSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar -xzvf docker.tgz \ - && mv docker/* /usr/local/bin/ \ - && rmdir docker \ - && rm docker.tgz \ - && docker -v \ -# From the docker dind 1.12 - && apt-get update && apt-get install -y --no-install-recommends \ - e2fsprogs=1.42.9-* iptables=1.4.21-* xfsprogs=3.1.9ubuntu2 xz-utils=5.1.1alpha+20120614-* \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - - -VOLUME /var/lib/docker diff --git a/ubuntu/unsupported_images/docker/1.12.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/docker/1.12.1/dockerd-entrypoint.sh deleted file mode 100755 index 62346ff9..00000000 --- a/ubuntu/unsupported_images/docker/1.12.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dind docker daemon \ - --host=unix:///var/run/docker.sock \ - --host=tcp://0.0.0.0:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/docker/17.09.0/Dockerfile b/ubuntu/unsupported_images/docker/17.09.0/Dockerfile deleted file mode 100644 index 4adbf02d..00000000 --- a/ubuntu/unsupported_images/docker/17.09.0/Dockerfile +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - diff --git a/ubuntu/unsupported_images/docker/17.09.0/dockerd-entrypoint.sh b/ubuntu/unsupported_images/docker/17.09.0/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/docker/17.09.0/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/docker/18.09.0/Dockerfile b/ubuntu/unsupported_images/docker/18.09.0/Dockerfile deleted file mode 100644 index d9a35595..00000000 --- a/ubuntu/unsupported_images/docker/18.09.0/Dockerfile +++ /dev/null @@ -1,104 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="18.09.0" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="08795696e852328d66753963249f4396af2295a7fe2847b839f7102e25e47cb9" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.23.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python3=3.4.* python3.4-dev=3.4.* fakeroot=1.20-* ca-certificates jq \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel=5.* less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* python3-pip \ - tk=8.6.* gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && pip3 install awscli boto3 - -VOLUME /var/lib/docker - -# Configure SSH -COPY ssh_config /root/.ssh/config - -COPY dockerd-entrypoint.sh /usr/local/bin/ - diff --git a/ubuntu/unsupported_images/docker/18.09.0/dockerd-entrypoint.sh b/ubuntu/unsupported_images/docker/18.09.0/dockerd-entrypoint.sh deleted file mode 100755 index 1591be44..00000000 --- a/ubuntu/unsupported_images/docker/18.09.0/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay2 &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/docker/18.09.0/ssh_config b/ubuntu/unsupported_images/docker/18.09.0/ssh_config deleted file mode 100644 index 710e2754..00000000 --- a/ubuntu/unsupported_images/docker/18.09.0/ssh_config +++ /dev/null @@ -1,3 +0,0 @@ -Host * - ConnectTimeout 10 - ConnectionAttempts 10 diff --git a/ubuntu/unsupported_images/dot-net/core-1/Dockerfile b/ubuntu/unsupported_images/dot-net/core-1/Dockerfile deleted file mode 100644 index e2024a87..00000000 --- a/ubuntu/unsupported_images/dot-net/core-1/Dockerfile +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -# Install .NET CLI dependencies -RUN set -ex \ - && apt-get update \ - && apt-get install -y --no-install-recommends \ - libc6=2.19-* \ - libcurl3=7.35.* \ - libgcc1=1:4.9.* \ - libgssapi-krb5-2=1.12* \ - libicu52=52.1-* \ - liblttng-ust0=2.4.* \ - libssl1.0.0=1.0.* \ - libunwind8=1.1-* \ - libuuid1=2.20.* \ - zlib1g=1:1.2.* \ - software-properties-common=0.92.* \ - && add-apt-repository ppa:ubuntu-toolchain-r/test -y \ - && apt-get update \ - && apt-get install -y libstdc++6=8*\ - && rm -rf /var/lib/apt/lists/* - -# Install .NET Core SDK -ENV DOTNET_SDK_VERSION 1.1.10 -ENV DOTNET_SDK_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-dev-debian-x64.$DOTNET_SDK_VERSION.tar.gz - -RUN set -ex \ - && curl -SL $DOTNET_SDK_DOWNLOAD_URL --output dotnet.tar.gz \ - && mkdir -p /usr/share/dotnet \ - && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ - && rm dotnet.tar.gz \ - && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet - -# Trigger the population of the local package cache -ENV NUGET_XMLDOC_MODE skip -RUN set -ex \ - && mkdir warmup \ - && cd warmup \ - && dotnet new \ - && cd .. \ - && rm -rf warmup \ - && rm -rf /tmp/NuGetScratch - -# Install Powershell Core -# See instructions at https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux -ENV POWERSHELL_VERSION 6.0.3 -ENV POWERSHELL_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v6.0.3/powershell-6.0.3-linux-x64.tar.gz -ENV POWERSHELL_DOWNLOAD_SHA A43D3056688FABC442BFBE0FD7A096F7E28036759EFF9D6EBE8CB9155C9D9AAB - -RUN set -ex \ - && curl -SL $POWERSHELL_DOWNLOAD_URL --output powershell.tar.gz \ - && echo "$POWERSHELL_DOWNLOAD_SHA powershell.tar.gz" | sha256sum -c - \ - && mkdir -p /opt/microsoft/powershell/$POWERSHELL_VERSION \ - && tar zxf powershell.tar.gz -C /opt/microsoft/powershell/$POWERSHELL_VERSION \ - && rm powershell.tar.gz \ - && ln -s /opt/microsoft/powershell/$POWERSHELL_VERSION/pwsh /usr/bin/pwsh diff --git a/ubuntu/unsupported_images/dot-net/core-1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/dot-net/core-1/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/dot-net/core-1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/dot-net/core-2.1/Dockerfile b/ubuntu/unsupported_images/dot-net/core-2.1/Dockerfile deleted file mode 100644 index a787786c..00000000 --- a/ubuntu/unsupported_images/dot-net/core-2.1/Dockerfile +++ /dev/null @@ -1,162 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -# Install .NET CLI dependencies -RUN set -ex \ - && apt-get update \ - && apt-get install -y --no-install-recommends \ - libc6=2.19-* \ - libcurl3=7.35.* \ - libgcc1=1:4.9.* \ - libgssapi-krb5-2=1.12* \ - libicu52=52.1-* \ - liblttng-ust0=2.4.* \ - libssl1.0.0=1.0.* \ - libunwind8=1.1-* \ - libuuid1=2.20.* \ - zlib1g=1:1.2.* \ - software-properties-common=0.92.* \ - && add-apt-repository ppa:ubuntu-toolchain-r/test -y \ - && apt-get update \ - && apt-get install -y libstdc++6=8*\ - && rm -rf /var/lib/apt/lists/* - -# Install .NET Core SDK -ENV DOTNET_SDK_VERSION 2.1.402 -ENV DOTNET_SDK_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz -ENV DOTNET_SDK_DOWNLOAD_SHA dd7f15a8202ffa2a435b7289865af4483bb0f642ffcf98a1eb10464cb9c51dd1d771efbb6120f129fe9666f62707ba0b7c476cf1fd3536d3a29329f07456de48 - -RUN set -ex \ - && curl -SL $DOTNET_SDK_DOWNLOAD_URL --output dotnet.tar.gz \ - && echo "$DOTNET_SDK_DOWNLOAD_SHA dotnet.tar.gz" | sha512sum -c - \ - && mkdir -p /usr/share/dotnet \ - && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ - && rm dotnet.tar.gz \ - && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet - -# Add .NET Core Global Tools install folder to PATH -ENV PATH "~/.dotnet/tools/:$PATH" - -# Trigger the population of the local package cache -ENV NUGET_XMLDOC_MODE skip -RUN set -ex \ - && mkdir warmup \ - && cd warmup \ - && dotnet new \ - && cd .. \ - && rm -rf warmup \ - && rm -rf /tmp/NuGetScratch - -# Install Powershell Core -# See instructions at https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux -ENV POWERSHELL_VERSION 6.1.0 -ENV POWERSHELL_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v6.1.0/powershell-6.1.0-linux-x64.tar.gz -ENV POWERSHELL_DOWNLOAD_SHA 68674CFBA84ABF759C7E10EF6FCD926CBC125D9958E11A1926AF7CF7F604506C - -RUN set -ex \ - && curl -SL $POWERSHELL_DOWNLOAD_URL --output powershell.tar.gz \ - && echo "$POWERSHELL_DOWNLOAD_SHA powershell.tar.gz" | sha256sum -c - \ - && mkdir -p /opt/microsoft/powershell/$POWERSHELL_VERSION \ - && tar zxf powershell.tar.gz -C /opt/microsoft/powershell/$POWERSHELL_VERSION \ - && rm powershell.tar.gz \ - && ln -s /opt/microsoft/powershell/$POWERSHELL_VERSION/pwsh /usr/bin/pwsh diff --git a/ubuntu/unsupported_images/dot-net/core-2.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/dot-net/core-2.1/dockerd-entrypoint.sh deleted file mode 100644 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/dot-net/core-2.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/dot-net/core-2/Dockerfile b/ubuntu/unsupported_images/dot-net/core-2/Dockerfile deleted file mode 100644 index 09a7c6cf..00000000 --- a/ubuntu/unsupported_images/dot-net/core-2/Dockerfile +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -# Install .NET CLI dependencies -RUN set -ex \ - && apt-get update \ - && apt-get install -y --no-install-recommends \ - libc6=2.19-* \ - libcurl3=7.35.* \ - libgcc1=1:4.9.* \ - libgssapi-krb5-2=1.12* \ - libicu52=52.1-* \ - liblttng-ust0=2.4.* \ - libssl1.0.0=1.0.* \ - libunwind8=1.1-* \ - libuuid1=2.20.* \ - zlib1g=1:1.2.* \ - software-properties-common=0.92.* \ - && add-apt-repository ppa:ubuntu-toolchain-r/test -y \ - && apt-get update \ - && apt-get install -y libstdc++6=8*\ - && rm -rf /var/lib/apt/lists/* - -# Install .NET Core SDK -ENV DOTNET_SDK_VERSION 2.1.202 -ENV DOTNET_SDK_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz -ENV DOTNET_SDK_DOWNLOAD_SHA e785b9b488b5570708eb060f9a4cb5cf94597d99a8b0a3ee449d2e5df83771c1ba643a87db17ae6727d0e2acb401eca292fb8c68ad92eeb59d7f0d75eab1c20a - -RUN set -ex \ - && curl -SL $DOTNET_SDK_DOWNLOAD_URL --output dotnet.tar.gz \ - && echo "$DOTNET_SDK_DOWNLOAD_SHA dotnet.tar.gz" | sha512sum -c - \ - && mkdir -p /usr/share/dotnet \ - && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ - && rm dotnet.tar.gz \ - && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet - -# Trigger the population of the local package cache -ENV NUGET_XMLDOC_MODE skip -RUN set -ex \ - && mkdir warmup \ - && cd warmup \ - && dotnet new \ - && cd .. \ - && rm -rf warmup \ - && rm -rf /tmp/NuGetScratch - -# Install Powershell Core -# See instructions at https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux -ENV POWERSHELL_VERSION 6.0.3 -ENV POWERSHELL_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v6.0.3/powershell-6.0.3-linux-x64.tar.gz -ENV POWERSHELL_DOWNLOAD_SHA A43D3056688FABC442BFBE0FD7A096F7E28036759EFF9D6EBE8CB9155C9D9AAB - -RUN set -ex \ - && curl -SL $POWERSHELL_DOWNLOAD_URL --output powershell.tar.gz \ - && echo "$POWERSHELL_DOWNLOAD_SHA powershell.tar.gz" | sha256sum -c - \ - && mkdir -p /opt/microsoft/powershell/$POWERSHELL_VERSION \ - && tar zxf powershell.tar.gz -C /opt/microsoft/powershell/$POWERSHELL_VERSION \ - && rm powershell.tar.gz \ - && ln -s /opt/microsoft/powershell/$POWERSHELL_VERSION/pwsh /usr/bin/pwsh - diff --git a/ubuntu/unsupported_images/dot-net/core-2/dockerd-entrypoint.sh b/ubuntu/unsupported_images/dot-net/core-2/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/dot-net/core-2/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/golang/1.10/Dockerfile b/ubuntu/unsupported_images/golang/1.10/Dockerfile deleted file mode 100644 index 255019f2..00000000 --- a/ubuntu/unsupported_images/golang/1.10/Dockerfile +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV GOLANG_VERSION="1.10.6" \ - GOLANG_DOWNLOAD_SHA256="acbdedf28b55b38d2db6f06209a25a869a36d31bdcf09fd2ec3d40e1279e0592" \ - GOPATH="/go" \ - DEP_VERSION="0.4.1" \ - DEP_BINARY="dep-linux-amd64" - -RUN set -ex \ - && mkdir -p "$GOPATH/src" "$GOPATH/bin" \ - && chmod -R 777 "$GOPATH" \ - && apt-get update && apt-get install -y --no-install-recommends \ - pkg-config=0.26-* \ - && apt-get clean \ - && wget "https://storage.googleapis.com/golang/go$GOLANG_VERSION.linux-amd64.tar.gz" -O /tmp/golang.tar.gz \ - && echo "$GOLANG_DOWNLOAD_SHA256 /tmp/golang.tar.gz" | sha256sum -c - \ - && tar -xzf /tmp/golang.tar.gz -C /usr/local \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* \ - && wget "https://github.com/golang/dep/releases/download/v$DEP_VERSION/$DEP_BINARY" -O "$GOPATH/bin/dep" \ - && chmod +x "$GOPATH/bin/dep" - -ENV PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" -WORKDIR $GOPATH diff --git a/ubuntu/unsupported_images/golang/1.10/dockerd-entrypoint.sh b/ubuntu/unsupported_images/golang/1.10/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/golang/1.10/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/golang/1.11/Dockerfile b/ubuntu/unsupported_images/golang/1.11/Dockerfile deleted file mode 100644 index 025a02e1..00000000 --- a/ubuntu/unsupported_images/golang/1.11/Dockerfile +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="18.09.0" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="08795696e852328d66753963249f4396af2295a7fe2847b839f7102e25e47cb9" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.23.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository -y ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python3=3.4.* python3.4-dev=3.4.* fakeroot=1.20-* ca-certificates jq \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel=5.* less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* python3-pip \ - tk=8.6.* gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && pip3 install awscli boto3 - -VOLUME /var/lib/docker - -# Configure SSH -COPY ssh_config /root/.ssh/config - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV GOLANG_VERSION="1.11.3" \ - GOLANG_DOWNLOAD_SHA256="d20a4869ffb13cee0f7ee777bf18c7b9b67ef0375f93fac1298519e0c227a07f" \ - GOPATH="/go" \ - DEP_VERSION="0.5.0" \ - DEP_BINARY="dep-linux-amd64" - -RUN set -ex \ - && mkdir -p "$GOPATH/src" "$GOPATH/bin" \ - && chmod -R 777 "$GOPATH" \ - && apt-get update && apt-get install -y --no-install-recommends \ - pkg-config=0.26-* \ - && apt-get clean \ - && wget "https://storage.googleapis.com/golang/go$GOLANG_VERSION.linux-amd64.tar.gz" -O /tmp/golang.tar.gz \ - && echo "$GOLANG_DOWNLOAD_SHA256 /tmp/golang.tar.gz" | sha256sum -c - \ - && tar -xzf /tmp/golang.tar.gz -C /usr/local \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* \ - && wget "https://github.com/golang/dep/releases/download/v$DEP_VERSION/$DEP_BINARY" -O "$GOPATH/bin/dep" \ - && chmod +x "$GOPATH/bin/dep" - -ENV PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" -WORKDIR $GOPATH diff --git a/ubuntu/unsupported_images/golang/1.11/dockerd-entrypoint.sh b/ubuntu/unsupported_images/golang/1.11/dockerd-entrypoint.sh deleted file mode 100755 index 1591be44..00000000 --- a/ubuntu/unsupported_images/golang/1.11/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay2 &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/golang/1.11/ssh_config b/ubuntu/unsupported_images/golang/1.11/ssh_config deleted file mode 100644 index 710e2754..00000000 --- a/ubuntu/unsupported_images/golang/1.11/ssh_config +++ /dev/null @@ -1,3 +0,0 @@ -Host * - ConnectTimeout 10 - ConnectionAttempts 10 diff --git a/ubuntu/unsupported_images/golang/1.5.4/Dockerfile b/ubuntu/unsupported_images/golang/1.5.4/Dockerfile deleted file mode 100644 index 66dbacc4..00000000 --- a/ubuntu/unsupported_images/golang/1.5.4/Dockerfile +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -ENV GOLANG_VERSION="1.5.4" \ - GOLANG_DOWNLOAD_SHA256="a3358721210787dc1e06f5ea1460ae0564f22a0fbd91be9dcd947fb1d19b9560" \ - GOPATH="/go" - -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" \ - && chmod -R 777 "$GOPATH" \ - && apt-get update && apt-get install -y --no-install-recommends \ - pkg-config=0.26-* \ - && apt-get clean \ - && wget "https://storage.googleapis.com/golang/go$GOLANG_VERSION.linux-amd64.tar.gz" -O /tmp/golang.tar.gz \ - && echo "$GOLANG_DOWNLOAD_SHA256 /tmp/golang.tar.gz" | sha256sum -c - \ - && tar -xzf /tmp/golang.tar.gz -C /usr/local \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -ENV PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" - -WORKDIR $GOPATH diff --git a/ubuntu/unsupported_images/golang/1.6.3/Dockerfile b/ubuntu/unsupported_images/golang/1.6.3/Dockerfile deleted file mode 100644 index 2042b74f..00000000 --- a/ubuntu/unsupported_images/golang/1.6.3/Dockerfile +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -ENV GOLANG_VERSION="1.6.3" \ - GOLANG_DOWNLOAD_SHA256="cdde5e08530c0579255d6153b08fdb3b8e47caabbe717bc7bcd7561275a87aeb" \ - GOPATH="/go" - -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" \ - && chmod -R 777 "$GOPATH" \ - && apt-get update && apt-get install -y --no-install-recommends \ - pkg-config=0.26-* \ - && apt-get clean \ - && wget "https://storage.googleapis.com/golang/go$GOLANG_VERSION.linux-amd64.tar.gz" -O /tmp/golang.tar.gz \ - && echo "$GOLANG_DOWNLOAD_SHA256 /tmp/golang.tar.gz" | sha256sum -c - \ - && tar -xzf /tmp/golang.tar.gz -C /usr/local \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -ENV PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" - -WORKDIR $GOPATH diff --git a/ubuntu/unsupported_images/golang/1.7.3/Dockerfile b/ubuntu/unsupported_images/golang/1.7.3/Dockerfile deleted file mode 100644 index c7310c27..00000000 --- a/ubuntu/unsupported_images/golang/1.7.3/Dockerfile +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.16.1" - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.22-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - e2fsprogs=1.42.9-* iptables=1.4.21-* xfsprogs=3.1.9ubuntu2 xz-utils=5.1.1alpha+20120614-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Install Docker -RUN set -x \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV GOLANG_VERSION="1.7.3" \ - GOLANG_DOWNLOAD_SHA256="508028aac0654e993564b6e2014bf2d4a9751e3b286661b0b0040046cf18028e" \ - GOPATH="/go" \ - DEP_VERSION="0.4.1" \ - DEP_BINARY="dep-linux-amd64" - -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" \ - && chmod -R 777 "$GOPATH" \ - && apt-get update && apt-get install -y --no-install-recommends \ - pkg-config=0.26-* \ - && apt-get clean \ - && wget "https://storage.googleapis.com/golang/go$GOLANG_VERSION.linux-amd64.tar.gz" -O /tmp/golang.tar.gz \ - && echo "$GOLANG_DOWNLOAD_SHA256 /tmp/golang.tar.gz" | sha256sum -c - \ - && tar -xzf /tmp/golang.tar.gz -C /usr/local \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* \ - && wget "https://github.com/golang/dep/releases/download/v$DEP_VERSION/$DEP_BINARY" -O "$GOPATH/bin/dep" \ - && chmod +x "$GOPATH/bin/dep" - -ENV PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" -WORKDIR $GOPATH diff --git a/ubuntu/unsupported_images/golang/1.7.3/dockerd-entrypoint.sh b/ubuntu/unsupported_images/golang/1.7.3/dockerd-entrypoint.sh deleted file mode 100755 index 7af585c1..00000000 --- a/ubuntu/unsupported_images/golang/1.7.3/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://0.0.0.0:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/java/openjdk-11/Dockerfile b/ubuntu/unsupported_images/java/openjdk-11/Dockerfile deleted file mode 100644 index 764835a3..00000000 --- a/ubuntu/unsupported_images/java/openjdk-11/Dockerfile +++ /dev/null @@ -1,179 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="18.09.0" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="08795696e852328d66753963249f4396af2295a7fe2847b839f7102e25e47cb9" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.23.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python3=3.4.* python3.4-dev=3.4.* fakeroot=1.20-* ca-certificates jq \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel=5.* less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* python3-pip \ - tk=8.6.* gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && pip3 install awscli boto3 - -VOLUME /var/lib/docker - -# Configure SSH -COPY ssh_config /root/.ssh/config - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV JAVA_VERSION=11 \ - JAVA_HOME="/opt/jvm/openjdk-11" \ - JDK_HOME="/opt/jvm/openjdk-11" \ - JRE_HOME="/opt/jvm/openjdk-11" \ - ANT_VERSION=1.10.3 \ - MAVEN_HOME="/opt/maven" \ - MAVEN_VERSION=3.5.4 \ - MAVEN_CONFIG="/root/.m2" \ - GRADLE_VERSION=5.0 \ - SBT_VERSION=1.2.6 \ - PROPERTIES_COMMON_VERSION=0.92.37.8 \ - PYTHON_TOOL_VERSION="3.3-*" \ - JDK_VERSION=11.0.1 \ - JDK_VERSION_TAG=13 \ - JDK_DOWNLOAD_SHA256="7a6bb980b9c91c478421f865087ad2d69086a0583aeeb9e69204785e8e97dcfd" \ - ANT_DOWNLOAD_SHA512="73f2193700b1d1e32eedf25fab1009e2a98fb2f6425413f5c9fa1b0f2f9f49f59cb8ed3f04931c808ae022a64ecfa2619e5fb77643fea6dbc29721e489eb3a07" \ - MAVEN_DOWNLOAD_SHA1="22cac91b3557586bb1eba326f2f7727543ff15e3" \ - GRADLE_DOWNLOAD_SHA256="6157ac9f3410bc63644625b3b3e9e96c963afd7910ae0697792db57813ee79a6" - -ENV JDK_DOWNLOAD_TAR="openjdk-${JDK_VERSION}_linux-x64_bin.tar.gz" - -RUN set -ex \ - && apt-get update \ - && apt-get install -y software-properties-common=$PROPERTIES_COMMON_VERSION \ - && apt-get install -y python-setuptools=$PYTHON_TOOL_VERSION \ - - # Install OpenJDK 11 - # Note: Installing ca-certificates-java installs JDK7 because it's a depedency. - # We will use update-alternatives to make sure JDK11 has higher priority for all - # the tools - && apt-get install -y --no-install-recommends ca-certificates-java \ - - && mkdir -p $JAVA_HOME \ - && curl -LSso /var/tmp/$JDK_DOWNLOAD_TAR https://download.java.net/java/GA/jdk11/$JDK_VERSION_TAG/GPL/$JDK_DOWNLOAD_TAR \ - && echo "$JDK_DOWNLOAD_SHA256 /var/tmp/$JDK_DOWNLOAD_TAR" | tee foo.txt | sha256sum -c - \ - && tar xzvf /var/tmp/$JDK_DOWNLOAD_TAR -C $JAVA_HOME --strip-components=1 \ - && for tool_path in $JAVA_HOME/bin/*; do \ - tool=`basename $tool_path`; \ - update-alternatives --install /usr/bin/$tool $tool $tool_path 10000; \ - update-alternatives --set $tool $tool_path; \ - done \ - && rm $JAVA_HOME/lib/security/cacerts && ln -s /etc/ssl/certs/java/cacerts $JAVA_HOME/lib/security/cacerts \ - - # Install Ant - && curl -LSso /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz https://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz \ - && echo "$ANT_DOWNLOAD_SHA512 /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz" | sha512sum -c - \ - && tar -xzf /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz -C /opt \ - && update-alternatives --install /usr/bin/ant ant /opt/apache-ant-$ANT_VERSION/bin/ant 10000 \ - - # Install Maven - && mkdir -p $MAVEN_HOME \ - && curl -LSso /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz https://apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \ - && echo "$MAVEN_DOWNLOAD_SHA1 /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz" | sha1sum -c - \ - && tar xzvf /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz -C $MAVEN_HOME --strip-components=1 \ - && update-alternatives --install /usr/bin/mvn mvn /opt/maven/bin/mvn 10000 \ - && mkdir -p $MAVEN_CONFIG \ - - # Install Gradle - && curl -LSso /var/tmp/gradle-$GRADLE_VERSION-bin.zip https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip \ - && echo "$GRADLE_DOWNLOAD_SHA256 /var/tmp/gradle-$GRADLE_VERSION-bin.zip" | sha256sum -c - \ - && unzip /var/tmp/gradle-$GRADLE_VERSION-bin.zip -d /opt \ - && update-alternatives --install /usr/local/bin/gradle gradle /opt/gradle-$GRADLE_VERSION/bin/gradle 10000 \ - - # Install SBT - && echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list \ - && apt-get install -y --no-install-recommends apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 \ - && apt-get update \ - && apt-get install -y --no-install-recommends sbt=$SBT_VERSION \ - - # Cleanup - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* \ - && apt-get clean - -COPY m2-settings.xml $MAVEN_CONFIG/settings.xml diff --git a/ubuntu/unsupported_images/java/openjdk-11/dockerd-entrypoint.sh b/ubuntu/unsupported_images/java/openjdk-11/dockerd-entrypoint.sh deleted file mode 100755 index 1591be44..00000000 --- a/ubuntu/unsupported_images/java/openjdk-11/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay2 &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/java/openjdk-11/m2-settings.xml b/ubuntu/unsupported_images/java/openjdk-11/m2-settings.xml deleted file mode 100644 index ce4b25dd..00000000 --- a/ubuntu/unsupported_images/java/openjdk-11/m2-settings.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - securecentral - - true - - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - diff --git a/ubuntu/unsupported_images/java/openjdk-11/ssh_config b/ubuntu/unsupported_images/java/openjdk-11/ssh_config deleted file mode 100644 index 710e2754..00000000 --- a/ubuntu/unsupported_images/java/openjdk-11/ssh_config +++ /dev/null @@ -1,3 +0,0 @@ -Host * - ConnectTimeout 10 - ConnectionAttempts 10 diff --git a/ubuntu/unsupported_images/java/openjdk-6/Dockerfile b/ubuntu/unsupported_images/java/openjdk-6/Dockerfile deleted file mode 100644 index 8d62208b..00000000 --- a/ubuntu/unsupported_images/java/openjdk-6/Dockerfile +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -ENV JAVA_VERSION=6 \ - JAVA_HOME="/usr/lib/jvm/java-6-openjdk-amd64" \ - JDK_HOME="/usr/lib/jvm/java-6-openjdk-amd64" \ - JRE_HOME="/usr/lib/jvm/java-6-openjdk-amd64/jre" \ - ANT_VERSION=1.9.6 \ - MAVEN_VERSION=3.2.5 \ - MAVEN_HOME="/usr/share/maven" \ - MAVEN_CONFIG="/root/.m2" \ - GRADLE_VERSION=2.7 - -# Install Java -RUN apt-get update \ - && apt-get -y install python-setuptools \ - && apt-get -y install openjdk-$JAVA_VERSION-jdk \ - && apt-get clean \ - && mkdir -p /usr/src/ant \ - && wget "http://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz" -O /usr/src/ant/apache-ant-$ANT_VERSION-bin.tar.gz \ - && tar -xzf /usr/src/ant/apache-ant-$ANT_VERSION-bin.tar.gz -C /usr/local \ - && ln -s /usr/local/apache-ant-$ANT_VERSION/bin/ant /usr/bin/ant \ - && rm -rf /usr/src/ant \ - && mkdir -p /usr/share/maven /usr/share/maven/ref $MAVEN_CONFIG \ - && curl -fsSL "https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz" \ - | tar -xzC /usr/share/maven --strip-components=1 \ - && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \ - && mkdir -p /usr/src/gradle \ - && wget "https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip" -O /usr/src/gradle/gradle-$GRADLE_VERSION-bin.zip \ - && unzip /usr/src/gradle/gradle-$GRADLE_VERSION-bin.zip -d /usr/local \ - && ln -s /usr/local/gradle-$GRADLE_VERSION/bin/gradle /usr/bin/gradle \ - && rm -rf /usr/src/gradle \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -COPY m2-settings.xml $MAVEN_CONFIG/settings.xml diff --git a/ubuntu/unsupported_images/java/openjdk-6/m2-settings.xml b/ubuntu/unsupported_images/java/openjdk-6/m2-settings.xml deleted file mode 100644 index 7bc5cecc..00000000 --- a/ubuntu/unsupported_images/java/openjdk-6/m2-settings.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - securecentral - - - - securecentral - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - diff --git a/ubuntu/unsupported_images/java/openjdk-7/Dockerfile b/ubuntu/unsupported_images/java/openjdk-7/Dockerfile deleted file mode 100644 index f4f726c1..00000000 --- a/ubuntu/unsupported_images/java/openjdk-7/Dockerfile +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -ENV JAVA_VERSION=7 \ - JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64" \ - JDK_HOME="/usr/lib/jvm/java-7-openjdk-amd64" \ - JRE_HOME="/usr/lib/jvm/java-7-openjdk-amd64/jre" \ - ANT_VERSION=1.9.6 \ - MAVEN_VERSION=3.3.3 \ - MAVEN_HOME="/usr/share/maven" \ - MAVEN_CONFIG="/root/.m2" \ - GRADLE_VERSION=2.7 - -# Install Java -RUN apt-get update \ - && apt-get -y install python-setuptools \ - && apt-get -y install openjdk-$JAVA_VERSION-jdk \ - && apt-get clean \ - && mkdir -p /usr/src/ant \ - && wget "http://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz" -O /usr/src/ant/apache-ant-$ANT_VERSION-bin.tar.gz \ - && tar -xzf /usr/src/ant/apache-ant-$ANT_VERSION-bin.tar.gz -C /usr/local \ - && ln -s /usr/local/apache-ant-$ANT_VERSION/bin/ant /usr/bin/ant \ - && rm -rf /usr/src/ant \ - && mkdir -p /usr/share/maven /usr/share/maven/ref $MAVEN_CONFIG \ - && curl -fsSL "https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz" \ - | tar -xzC /usr/share/maven --strip-components=1 \ - && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \ - && mkdir -p /usr/src/gradle \ - && wget "https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip" -O /usr/src/gradle/gradle-$GRADLE_VERSION-bin.zip \ - && unzip /usr/src/gradle/gradle-$GRADLE_VERSION-bin.zip -d /usr/local \ - && ln -s /usr/local/gradle-$GRADLE_VERSION/bin/gradle /usr/bin/gradle \ - && rm -rf /usr/src/gradle \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -COPY m2-settings.xml $MAVEN_CONFIG/settings.xml diff --git a/ubuntu/unsupported_images/java/openjdk-7/m2-settings.xml b/ubuntu/unsupported_images/java/openjdk-7/m2-settings.xml deleted file mode 100644 index 7bc5cecc..00000000 --- a/ubuntu/unsupported_images/java/openjdk-7/m2-settings.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - securecentral - - - - securecentral - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - diff --git a/ubuntu/unsupported_images/java/openjdk-8/Dockerfile b/ubuntu/unsupported_images/java/openjdk-8/Dockerfile deleted file mode 100644 index de32cc19..00000000 --- a/ubuntu/unsupported_images/java/openjdk-8/Dockerfile +++ /dev/null @@ -1,158 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV JAVA_VERSION=8 \ - JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \ - JDK_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \ - JRE_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \ - ANT_VERSION=1.10.3 \ - MAVEN_HOME="/opt/maven" \ - MAVEN_VERSION=3.5.4 \ - MAVEN_CONFIG="/root/.m2" \ - GRADLE_VERSION=4.2.1 \ - PROPERTIES_COMMON_VERSION=0.92.37.8 \ - PYTHON_TOOL_VERSION="3.3-*" \ - JDK_VERSION="8u171-b11-2~14.04" \ - ANT_DOWNLOAD_SHA512="73f2193700b1d1e32eedf25fab1009e2a98fb2f6425413f5c9fa1b0f2f9f49f59cb8ed3f04931c808ae022a64ecfa2619e5fb77643fea6dbc29721e489eb3a07" \ - MAVEN_DOWNLOAD_SHA1="22cac91b3557586bb1eba326f2f7727543ff15e3" \ - GRADLE_DOWNLOAD_SHA256="b551cc04f2ca51c78dd14edb060621f0e5439bdfafa6fd167032a09ac708fbc0" - -RUN set -ex \ - && apt-get update \ - && apt-get install -y software-properties-common=$PROPERTIES_COMMON_VERSION \ - && add-apt-repository ppa:openjdk-r/ppa \ - && apt-get update \ - && apt-get install -y python-setuptools=$PYTHON_TOOL_VERSION \ - - # Install OpenJDK 8 - && apt-get install -y openjdk-${JAVA_VERSION}-jdk=$JDK_VERSION \ - && apt-get install -y --no-install-recommends ca-certificates-java \ - && apt-get clean \ - # Ensure Java cacerts symlink points to valid location - && update-ca-certificates -f \ - - # Install Ant - && curl -LSso /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz https://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz \ - && echo "$ANT_DOWNLOAD_SHA512 /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz" | sha512sum -c - \ - && tar -xzf /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz -C /opt \ - && update-alternatives --install /usr/bin/ant ant /opt/apache-ant-$ANT_VERSION/bin/ant 10000 \ - - # Install Maven - && mkdir -p $MAVEN_HOME \ - && curl -LSso /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz https://apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \ - && echo "$MAVEN_DOWNLOAD_SHA1 /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz" | sha1sum -c - \ - && tar xzvf /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz -C $MAVEN_HOME --strip-components=1 \ - && update-alternatives --install /usr/bin/mvn mvn /opt/maven/bin/mvn 10000 \ - && mkdir -p $MAVEN_CONFIG \ - - # Install Gradle - && curl -LSso /var/tmp/gradle-$GRADLE_VERSION-bin.zip https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip \ - && echo "$GRADLE_DOWNLOAD_SHA256 /var/tmp/gradle-$GRADLE_VERSION-bin.zip" | sha256sum -c - \ - && unzip /var/tmp/gradle-$GRADLE_VERSION-bin.zip -d /opt \ - && update-alternatives --install /usr/local/bin/gradle gradle /opt/gradle-$GRADLE_VERSION/bin/gradle 10000 \ - - # Cleanup - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* \ - && apt-get clean - -COPY m2-settings.xml $MAVEN_CONFIG/settings.xml diff --git a/ubuntu/unsupported_images/java/openjdk-8/dockerd-entrypoint.sh b/ubuntu/unsupported_images/java/openjdk-8/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/java/openjdk-8/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/java/openjdk-8/m2-settings.xml b/ubuntu/unsupported_images/java/openjdk-8/m2-settings.xml deleted file mode 100644 index ce4b25dd..00000000 --- a/ubuntu/unsupported_images/java/openjdk-8/m2-settings.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - securecentral - - true - - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - diff --git a/ubuntu/unsupported_images/java/openjdk-9/Dockerfile b/ubuntu/unsupported_images/java/openjdk-9/Dockerfile deleted file mode 100644 index 7b39aeed..00000000 --- a/ubuntu/unsupported_images/java/openjdk-9/Dockerfile +++ /dev/null @@ -1,177 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV JAVA_VERSION=9 \ - JAVA_HOME="/opt/jvm/openjdk-9" \ - JDK_HOME="/opt/jvm/openjdk-9" \ - JRE_HOME="/opt/jvm/openjdk-9" \ - ANT_VERSION=1.10.3 \ - MAVEN_HOME="/opt/maven" \ - MAVEN_VERSION=3.5.4 \ - MAVEN_CONFIG="/root/.m2" \ - GRADLE_VERSION=4.2.1 \ - SBT_VERSION=1.2.3 \ - PROPERTIES_COMMON_VERSION=0.92.37.8 \ - PYTHON_TOOL_VERSION="3.3-*" \ - JDK_VERSION=9.0.4 \ - JDK_DOWNLOAD_SHA256="39362fb9bfb341fcc802e55e8ea59f4664ca58fd821ce956d48e1aa4fb3d2dec" \ - ANT_DOWNLOAD_SHA512="73f2193700b1d1e32eedf25fab1009e2a98fb2f6425413f5c9fa1b0f2f9f49f59cb8ed3f04931c808ae022a64ecfa2619e5fb77643fea6dbc29721e489eb3a07" \ - MAVEN_DOWNLOAD_SHA1="22cac91b3557586bb1eba326f2f7727543ff15e3" \ - GRADLE_DOWNLOAD_SHA256="b551cc04f2ca51c78dd14edb060621f0e5439bdfafa6fd167032a09ac708fbc0" - -ENV JDK_DOWNLOAD_TAR="openjdk-${JDK_VERSION}_linux-x64_bin.tar.gz" - -RUN set -ex \ - && apt-get update \ - && apt-get install -y software-properties-common=$PROPERTIES_COMMON_VERSION \ - && apt-get install -y python-setuptools=$PYTHON_TOOL_VERSION \ - - # Install OpenJDK 9 - # Note: Installing ca-certificates-java installs JDK7 because it's a depedency. - # We will use update-alternatives to make sure JDK9 has higher priority for all - # the tools - && apt-get install -y --no-install-recommends ca-certificates-java \ - - && mkdir -p $JAVA_HOME \ - && curl -LSso /var/tmp/$JDK_DOWNLOAD_TAR https://download.java.net/java/GA/jdk9/$JDK_VERSION/binaries/$JDK_DOWNLOAD_TAR \ - && echo "$JDK_DOWNLOAD_SHA256 /var/tmp/$JDK_DOWNLOAD_TAR" | tee foo.txt | sha256sum -c - \ - && tar xzvf /var/tmp/$JDK_DOWNLOAD_TAR -C $JAVA_HOME --strip-components=1 \ - && for tool_path in $JAVA_HOME/bin/*; do \ - tool=`basename $tool_path`; \ - update-alternatives --install /usr/bin/$tool $tool $tool_path 10000; \ - update-alternatives --set $tool $tool_path; \ - done \ - && rm $JAVA_HOME/lib/security/cacerts && ln -s /etc/ssl/certs/java/cacerts $JAVA_HOME/lib/security/cacerts \ - - # Install Ant - && curl -LSso /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz https://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz \ - && echo "$ANT_DOWNLOAD_SHA512 /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz" | sha512sum -c - \ - && tar -xzf /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz -C /opt \ - && update-alternatives --install /usr/bin/ant ant /opt/apache-ant-$ANT_VERSION/bin/ant 10000 \ - - # Install Maven - && mkdir -p $MAVEN_HOME \ - && curl -LSso /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz https://apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \ - && echo "$MAVEN_DOWNLOAD_SHA1 /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz" | sha1sum -c - \ - && tar xzvf /var/tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz -C $MAVEN_HOME --strip-components=1 \ - && update-alternatives --install /usr/bin/mvn mvn /opt/maven/bin/mvn 10000 \ - && mkdir -p $MAVEN_CONFIG \ - - # Install Gradle - && curl -LSso /var/tmp/gradle-$GRADLE_VERSION-bin.zip https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip \ - && echo "$GRADLE_DOWNLOAD_SHA256 /var/tmp/gradle-$GRADLE_VERSION-bin.zip" | sha256sum -c - \ - && unzip /var/tmp/gradle-$GRADLE_VERSION-bin.zip -d /opt \ - && update-alternatives --install /usr/local/bin/gradle gradle /opt/gradle-$GRADLE_VERSION/bin/gradle 10000 \ - - # Install SBT - && echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list \ - && apt-get install -y --no-install-recommends apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 \ - && apt-get update \ - && apt-get install -y --no-install-recommends sbt=$SBT_VERSION \ - - # Cleanup - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* \ - && apt-get clean - -COPY m2-settings.xml $MAVEN_CONFIG/settings.xml diff --git a/ubuntu/unsupported_images/java/openjdk-9/dockerd-entrypoint.sh b/ubuntu/unsupported_images/java/openjdk-9/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/java/openjdk-9/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/java/openjdk-9/m2-settings.xml b/ubuntu/unsupported_images/java/openjdk-9/m2-settings.xml deleted file mode 100644 index ce4b25dd..00000000 --- a/ubuntu/unsupported_images/java/openjdk-9/m2-settings.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - securecentral - - true - - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - central - https://repo1.maven.org/maven2 - - true - - - - - - diff --git a/ubuntu/unsupported_images/nodejs/10.1.0/Dockerfile b/ubuntu/unsupported_images/nodejs/10.1.0/Dockerfile deleted file mode 100644 index 0055916b..00000000 --- a/ubuntu/unsupported_images/nodejs/10.1.0/Dockerfile +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV NODE_VERSION="10.1.0" - -# gpg keys listed at https://github.com/nodejs/node#release-team -RUN set -ex \ - && for key in \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - 77984A986EBC2AA786BC0F66B01FBB92821C587A \ - 56730D5401028683275BD23C23EFEFE93C4CFFFE \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - 9554F04D7259F04124DE6B476D5A82AC7E37093B \ - 93C7E9E91B49E432C2F75674B0A78B0A6C481CF6 \ - 114F43EE0176B71C7BC219DD50A3051F888C628D \ - 7937DFD2AB06298B2293C3187D33FF9D0246406D \ - ; do \ - gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \ - gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \ - gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \ - done - -RUN set -ex \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \ - && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ - && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \ - && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \ - && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -RUN npm set unsafe-perm true - -CMD [ "node" ] diff --git a/ubuntu/unsupported_images/nodejs/10.1.0/dockerd-entrypoint.sh b/ubuntu/unsupported_images/nodejs/10.1.0/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/nodejs/10.1.0/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/nodejs/10.14.1/Dockerfile b/ubuntu/unsupported_images/nodejs/10.14.1/Dockerfile deleted file mode 100644 index dff3e452..00000000 --- a/ubuntu/unsupported_images/nodejs/10.14.1/Dockerfile +++ /dev/null @@ -1,139 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="18.09.0" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="08795696e852328d66753963249f4396af2295a7fe2847b839f7102e25e47cb9" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.23.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python3=3.4.* python3.4-dev=3.4.* fakeroot=1.20-* ca-certificates jq \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel=5.* less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* python3-pip \ - tk=8.6.* gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && pip3 install awscli boto3 - -VOLUME /var/lib/docker - -# Configure SSH -COPY ssh_config /root/.ssh/config - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV NODE_VERSION="10.14.1" - -# gpg keys listed at https://github.com/nodejs/node#release-team -RUN set -ex \ - && for key in \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - 77984A986EBC2AA786BC0F66B01FBB92821C587A \ - 56730D5401028683275BD23C23EFEFE93C4CFFFE \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - 4ED778F539E3634C779C87C6D7062848A1AB005C \ - A48C2BEE680E841632CD4E44F07496B3EB3C1762 \ - ; do \ - gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \ - gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \ - gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \ - done - -RUN set -ex \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \ - && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ - && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \ - && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \ - && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -RUN npm set unsafe-perm true - -CMD [ "node" ] diff --git a/ubuntu/unsupported_images/nodejs/10.14.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/nodejs/10.14.1/dockerd-entrypoint.sh deleted file mode 100755 index 1591be44..00000000 --- a/ubuntu/unsupported_images/nodejs/10.14.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay2 &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/nodejs/10.14.1/ssh_config b/ubuntu/unsupported_images/nodejs/10.14.1/ssh_config deleted file mode 100644 index 710e2754..00000000 --- a/ubuntu/unsupported_images/nodejs/10.14.1/ssh_config +++ /dev/null @@ -1,3 +0,0 @@ -Host * - ConnectTimeout 10 - ConnectionAttempts 10 diff --git a/ubuntu/unsupported_images/nodejs/4.3.2/Dockerfile b/ubuntu/unsupported_images/nodejs/4.3.2/Dockerfile deleted file mode 100644 index f91d1ee6..00000000 --- a/ubuntu/unsupported_images/nodejs/4.3.2/Dockerfile +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.16.1" - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.22-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - e2fsprogs=1.42.9-* iptables=1.4.21-* xfsprogs=3.1.9ubuntu2 xz-utils=5.1.1alpha+20120614-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Install Docker -RUN set -x \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV NODE_VERSION="4.3.2" - -RUN set -ex \ - && for key in \ - 9554F04D7259F04124DE6B476D5A82AC7E37093B \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - 0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - ; do \ - gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ - done - -RUN wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \ - && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ - && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \ - && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \ - && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD [ "node" ] diff --git a/ubuntu/unsupported_images/nodejs/4.3.2/dockerd-entrypoint.sh b/ubuntu/unsupported_images/nodejs/4.3.2/dockerd-entrypoint.sh deleted file mode 100755 index 7af585c1..00000000 --- a/ubuntu/unsupported_images/nodejs/4.3.2/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://0.0.0.0:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/nodejs/4.4.7/Dockerfile b/ubuntu/unsupported_images/nodejs/4.4.7/Dockerfile deleted file mode 100644 index 6f13e10f..00000000 --- a/ubuntu/unsupported_images/nodejs/4.4.7/Dockerfile +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.16.1" - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.22-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - e2fsprogs=1.42.9-* iptables=1.4.21-* xfsprogs=3.1.9ubuntu2 xz-utils=5.1.1alpha+20120614-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Install Docker -RUN set -x \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV NODE_VERSION="4.4.7" - -RUN set -ex \ - && for key in \ - 9554F04D7259F04124DE6B476D5A82AC7E37093B \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - 0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - ; do \ - gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ - done - -RUN wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \ - && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ - && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \ - && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \ - && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD [ "node" ] diff --git a/ubuntu/unsupported_images/nodejs/4.4.7/dockerd-entrypoint.sh b/ubuntu/unsupported_images/nodejs/4.4.7/dockerd-entrypoint.sh deleted file mode 100755 index 7af585c1..00000000 --- a/ubuntu/unsupported_images/nodejs/4.4.7/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://0.0.0.0:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/nodejs/5.12.0/Dockerfile b/ubuntu/unsupported_images/nodejs/5.12.0/Dockerfile deleted file mode 100644 index 0348d3a7..00000000 --- a/ubuntu/unsupported_images/nodejs/5.12.0/Dockerfile +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -ENV NODE_VERSION="5.12.0" - -RUN set -ex \ - && for key in \ - 9554F04D7259F04124DE6B476D5A82AC7E37093B \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - 0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - ; do \ - gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ - done - -RUN wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \ - && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ - && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \ - && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \ - && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD [ "node" ] diff --git a/ubuntu/unsupported_images/nodejs/6.3.1/Dockerfile b/ubuntu/unsupported_images/nodejs/6.3.1/Dockerfile deleted file mode 100644 index 951a333f..00000000 --- a/ubuntu/unsupported_images/nodejs/6.3.1/Dockerfile +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV NODE_VERSION="6.3.1" - -# gpg keys listed at https://github.com/nodejs/node#release-team -RUN set -ex \ - && for key in \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - 77984A986EBC2AA786BC0F66B01FBB92821C587A \ - 56730D5401028683275BD23C23EFEFE93C4CFFFE \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - 9554F04D7259F04124DE6B476D5A82AC7E37093B \ - 93C7E9E91B49E432C2F75674B0A78B0A6C481CF6 \ - 114F43EE0176B71C7BC219DD50A3051F888C628D \ - 7937DFD2AB06298B2293C3187D33FF9D0246406D \ - ; do \ - gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \ - gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \ - gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \ - done - -RUN set -ex \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \ - && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ - && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \ - && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \ - && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -RUN npm set unsafe-perm true - -CMD [ "node" ] diff --git a/ubuntu/unsupported_images/nodejs/6.3.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/nodejs/6.3.1/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/nodejs/6.3.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/nodejs/7.0.0/Dockerfile b/ubuntu/unsupported_images/nodejs/7.0.0/Dockerfile deleted file mode 100644 index 7365c1db..00000000 --- a/ubuntu/unsupported_images/nodejs/7.0.0/Dockerfile +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -ENV NODE_VERSION="7.0.0" - -RUN set -ex \ - && for key in \ - 9554F04D7259F04124DE6B476D5A82AC7E37093B \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - 0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - ; do \ - gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ - done - -RUN wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \ - && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ - && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \ - && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \ - && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD [ "node" ] diff --git a/ubuntu/unsupported_images/nodejs/8.11.0/Dockerfile b/ubuntu/unsupported_images/nodejs/8.11.0/Dockerfile deleted file mode 100644 index 515ea383..00000000 --- a/ubuntu/unsupported_images/nodejs/8.11.0/Dockerfile +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV NODE_VERSION="8.11.0" - -# gpg keys listed at https://github.com/nodejs/node#release-team -RUN set -ex \ - && for key in \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - 77984A986EBC2AA786BC0F66B01FBB92821C587A \ - 56730D5401028683275BD23C23EFEFE93C4CFFFE \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - 9554F04D7259F04124DE6B476D5A82AC7E37093B \ - 93C7E9E91B49E432C2F75674B0A78B0A6C481CF6 \ - 114F43EE0176B71C7BC219DD50A3051F888C628D \ - 7937DFD2AB06298B2293C3187D33FF9D0246406D \ - ; do \ - gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \ - gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \ - gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \ - done - -RUN set -ex \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" -O node-v$NODE_VERSION-linux-x64.tar.gz \ - && wget "https://nodejs.org/download/release/v$NODE_VERSION/SHASUMS256.txt.asc" -O SHASUMS256.txt.asc \ - && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ - && grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \ - && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ - && rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc SHASUMS256.txt \ - && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -RUN npm set unsafe-perm true - -CMD [ "node" ] diff --git a/ubuntu/unsupported_images/nodejs/8.11.0/dockerd-entrypoint.sh b/ubuntu/unsupported_images/nodejs/8.11.0/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/nodejs/8.11.0/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/php/5.6/Dockerfile b/ubuntu/unsupported_images/php/5.6/Dockerfile deleted file mode 100644 index e17ede5e..00000000 --- a/ubuntu/unsupported_images/php/5.6/Dockerfile +++ /dev/null @@ -1,220 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3 -ENV SRC_DIR="/usr/src" \ - PHP_VERSION=5.6.33 \ - PHP_DOWNLOAD_SHA="9004995fdf55f111cd9020e8b8aff975df3d8d4191776c601a46988c375f3553" \ - PHPPATH="/php" \ - PHP_INI_DIR="/usr/local/etc/php" \ - PHP_CFLAGS="-fstack-protector -fpic -fpie -O2" \ - PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" \ - COMPOSER_VERSION=1.6.3 \ - COMPOSER_DOWNLOAD_SHA="52cb7bbbaee720471e3b34c8ae6db53a38f0b759c06078a80080db739e4dcab6" - -ENV PHP_SRC_DIR="$SRC_DIR/php" \ - PHP_CPPFLAGS="$PHP_CFLAGS" \ - PHP_URL="https://secure.php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" \ - PHP_ASC_URL="https://secure.php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" \ - COMPOSER_URL="https://getcomposer.org/download/$COMPOSER_VERSION/composer.phar" - -# Install PHP -RUN set -xe; \ - mkdir -p $SRC_DIR; \ - cd $SRC_DIR; \ - wget -O php.tar.xz "$PHP_URL"; \ - echo "$PHP_DOWNLOAD_SHA *php.tar.xz" | sha256sum -c -; \ - wget -O php.tar.xz.asc "$PHP_ASC_URL"; \ - export GNUPGHOME="$(mktemp -d)"; \ - for key in $GPG_KEYS; do \ - ( gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$key" \ - || gpg --keyserver keyserver.pgp.com --recv-keys "$key" ); \ - done; \ - gpg --batch --verify php.tar.xz.asc php.tar.xz; \ - rm -rf "$GNUPGHOME"; \ - - set -eux; \ - savedAptMark="$(apt-mark showmanual)"; \ - apt-get update; \ - apt-get install -y --no-install-recommends libedit-dev=3.1-* dpkg-dev=1.17.*; \ - rm -rf /var/lib/apt/lists/*; \ - apt-get clean; \ - - export \ - CFLAGS="$PHP_CFLAGS" \ - CPPFLAGS="$PHP_CPPFLAGS" \ - LDFLAGS="$PHP_LDFLAGS" \ - ; \ - mkdir -p $PHP_SRC_DIR; \ - tar -Jxf $SRC_DIR/php.tar.xz -C $PHP_SRC_DIR --strip-components=1; \ - cd $SRC_DIR/php; \ - gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)"; \ - debMultiarch="$(dpkg-architecture -qDEB_BUILD_MULTIARCH)"; \ - - # https://bugs.php.net/bug.php?id=74125 - if [ ! -d /usr/include/curl ]; then \ - ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ - fi; \ - ./configure \ - --build="$gnuArch" \ - --with-config-file-path="$PHP_INI_DIR" \ - --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \ - --disable-cgi \ - # --enable-ftp is included here because ftp_ssl_connect() needs ftp to be compiled statically (see https://github.com/docker-library/php/issues/236) - --enable-ftp \ - # --enable-mbstring is included here because otherwise there's no way to get pecl to use it properly (see https://github.com/docker-library/php/issues/195) - --enable-mbstring \ - # --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself) - --enable-mysqlnd \ - --with-curl \ - --with-libedit \ - --with-openssl \ - --with-zlib \ - # bundled pcre does not support JIT on s390x - - # https://manpages.debian.org/stretch/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT - $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ - --with-libdir="lib/$debMultiarch" \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ - ; \ - make -j "$(nproc)"; \ - make test; \ - make install; \ - find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; \ - make clean; \ - cd /; \ - rm -rf $PHP_SRC_DIR; \ - - # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies - apt-mark auto '.*' > /dev/null; \ - [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \ - find /usr/local -type f -executable -exec ldd '{}' ';' \ - | awk '/=>/ { print $(NF-1) }' \ - | sort -u \ - | xargs -r dpkg-query --search \ - | cut -d: -f1 \ - | sort -u \ - | xargs -r apt-mark manual \ - ; \ - apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ - php --version; \ - pecl update-channels; \ - rm -rf /tmp/pear ~/.pearrc; \ - - # Increase the memory size, default is 128M - mkdir "$PHP_INI_DIR"; \ - mkdir "$PHP_INI_DIR/conf.d"; \ - touch "$PHP_INI_DIR/conf.d/memory.ini" \ - && echo "memory_limit = 1G;" >> "$PHP_INI_DIR/conf.d/memory.ini"; - -ENV PATH="$PHPPATH/bin:/usr/local/php/bin:$PATH" - -# Install Composer globally -RUN set -xe; \ - wget $COMPOSER_URL; \ - echo "$COMPOSER_DOWNLOAD_SHA *composer.phar" | sha256sum -c -; \ - mv ./composer.phar /usr/local/bin/composer; \ - chmod +x /usr/local/bin/composer; - -WORKDIR $PHPPATH diff --git a/ubuntu/unsupported_images/php/5.6/dockerd-entrypoint.sh b/ubuntu/unsupported_images/php/5.6/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/php/5.6/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/php/7.0/Dockerfile b/ubuntu/unsupported_images/php/7.0/Dockerfile deleted file mode 100644 index 0dea2974..00000000 --- a/ubuntu/unsupported_images/php/7.0/Dockerfile +++ /dev/null @@ -1,222 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3 -ENV SRC_DIR="/usr/src" \ - PHP_VERSION=7.0.27 \ - PHP_DOWNLOAD_SHA="4b2bc823e806dbf7b62fe0b92b0d14b0c6e03f88c3fc5d96278416c54ce11f6c" \ - PHPPATH="/php" \ - PHP_INI_DIR="/usr/local/etc/php" \ - PHP_CFLAGS="-fstack-protector -fpic -fpie -O2" \ - PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" \ - COMPOSER_VERSION=1.6.3 \ - COMPOSER_DOWNLOAD_SHA="52cb7bbbaee720471e3b34c8ae6db53a38f0b759c06078a80080db739e4dcab6" - -ENV PHP_SRC_DIR="$SRC_DIR/php" \ - PHP_CPPFLAGS="$PHP_CFLAGS" \ - PHP_URL="https://secure.php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" \ - PHP_ASC_URL="https://secure.php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" \ - COMPOSER_URL="https://getcomposer.org/download/$COMPOSER_VERSION/composer.phar" - -# Install PHP -RUN set -xe; \ - mkdir -p $SRC_DIR; \ - cd $SRC_DIR; \ - wget -O php.tar.xz "$PHP_URL"; \ - echo "$PHP_DOWNLOAD_SHA *php.tar.xz" | sha256sum -c -; \ - wget -O php.tar.xz.asc "$PHP_ASC_URL"; \ - export GNUPGHOME="$(mktemp -d)"; \ - for key in $GPG_KEYS; do \ - ( gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$key" \ - || gpg --keyserver keyserver.pgp.com --recv-keys "$key" ); \ - done; \ - gpg --batch --verify php.tar.xz.asc php.tar.xz; \ - rm -rf "$GNUPGHOME"; \ - - set -eux; \ - savedAptMark="$(apt-mark showmanual)"; \ - apt-get update; \ - apt-get install -y --no-install-recommends libedit-dev=3.1-* dpkg-dev=1.17.*; \ - rm -rf /var/lib/apt/lists/*; \ - apt-get clean; \ - - export \ - CFLAGS="$PHP_CFLAGS" \ - CPPFLAGS="$PHP_CPPFLAGS" \ - LDFLAGS="$PHP_LDFLAGS" \ - ; \ - mkdir -p $PHP_SRC_DIR; \ - tar -Jxf $SRC_DIR/php.tar.xz -C $PHP_SRC_DIR --strip-components=1; \ - cd $SRC_DIR/php; \ - gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)"; \ - debMultiarch="$(dpkg-architecture -qDEB_BUILD_MULTIARCH)"; \ - - # https://bugs.php.net/bug.php?id=74125 - if [ ! -d /usr/include/curl ]; then \ - ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ - fi; \ - ./configure \ - --build="$gnuArch" \ - --with-config-file-path="$PHP_INI_DIR" \ - --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \ - --disable-cgi \ - # --enable-ftp is included here because ftp_ssl_connect() needs ftp to be compiled statically (see https://github.com/docker-library/php/issues/236) - --enable-ftp \ - # --enable-mbstring is included here because otherwise there's no way to get pecl to use it properly (see https://github.com/docker-library/php/issues/195) - --enable-mbstring \ - # --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself) - --enable-mysqlnd \ - # https://wiki.php.net/rfc/argon2_password_hash (7.2+) - --with-password-argon2 \ - --with-curl \ - --with-libedit \ - --with-openssl \ - --with-zlib \ - # bundled pcre does not support JIT on s390x - - # https://manpages.debian.org/stretch/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT - $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ - --with-libdir="lib/$debMultiarch" \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ - ; \ - make -j "$(nproc)"; \ - make test; \ - make install; \ - find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; \ - make clean; \ - cd /; \ - rm -rf $PHP_SRC_DIR; \ - - # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies - apt-mark auto '.*' > /dev/null; \ - [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \ - find /usr/local -type f -executable -exec ldd '{}' ';' \ - | awk '/=>/ { print $(NF-1) }' \ - | sort -u \ - | xargs -r dpkg-query --search \ - | cut -d: -f1 \ - | sort -u \ - | xargs -r apt-mark manual \ - ; \ - apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ - php --version; \ - pecl update-channels; \ - rm -rf /tmp/pear ~/.pearrc; \ - - # Increase the memory size, default is 128M - mkdir "$PHP_INI_DIR"; \ - mkdir "$PHP_INI_DIR/conf.d"; \ - touch "$PHP_INI_DIR/conf.d/memory.ini" \ - && echo "memory_limit = 1G;" >> "$PHP_INI_DIR/conf.d/memory.ini"; - -ENV PATH="$PHPPATH/bin:/usr/local/php/bin:$PATH" - -# Install Composer globally -RUN set -xe; \ - wget $COMPOSER_URL; \ - echo "$COMPOSER_DOWNLOAD_SHA *composer.phar" | sha256sum -c -; \ - mv ./composer.phar /usr/local/bin/composer; \ - chmod +x /usr/local/bin/composer; - -WORKDIR $PHPPATH diff --git a/ubuntu/unsupported_images/php/7.0/dockerd-entrypoint.sh b/ubuntu/unsupported_images/php/7.0/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/php/7.0/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/php/7.1/Dockerfile b/ubuntu/unsupported_images/php/7.1/Dockerfile deleted file mode 100644 index df0f2313..00000000 --- a/ubuntu/unsupported_images/php/7.1/Dockerfile +++ /dev/null @@ -1,220 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="18.09.0" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="08795696e852328d66753963249f4396af2295a7fe2847b839f7102e25e47cb9" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.23.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python3=3.4.* python3.4-dev=3.4.* fakeroot=1.20-* ca-certificates jq \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel=5.* less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* python3-pip \ - tk=8.6.* gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && pip3 install awscli boto3 - -VOLUME /var/lib/docker - -# Configure SSH -COPY ssh_config /root/.ssh/config - -COPY dockerd-entrypoint.sh /usr/local/bin/ - - - ENV GPG_KEYS A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0 528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 1729F83938DA44E27BA0F4D3DBDB397470D12172 - ENV SRC_DIR="/usr/src" \ - PHP_VERSION=7.1.16 \ - PHP_DOWNLOAD_SHA="a5d67e477248a3911af7ef85c8400c1ba8cd632184186fd31070b96714e669f1" \ - PHPPATH="/php" \ - PHP_INI_DIR="/usr/local/etc/php" \ - PHP_CFLAGS="-fstack-protector -fpic -fpie -O2" \ - PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" - - ENV PHP_SRC_DIR="$SRC_DIR/php" \ - PHP_CPPFLAGS="$PHP_CFLAGS" \ - PHP_URL="https://secure.php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" \ - PHP_ASC_URL="https://secure.php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" - - # Install PHP - RUN set -xe; \ - mkdir -p $SRC_DIR; \ - cd $SRC_DIR; \ - wget -O php.tar.xz "$PHP_URL"; \ - echo "$PHP_DOWNLOAD_SHA *php.tar.xz" | sha256sum -c -; \ - wget -O php.tar.xz.asc "$PHP_ASC_URL"; \ - export GNUPGHOME="$(mktemp -d)"; \ - for key in $GPG_KEYS; do \ - gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ - done; \ - gpg --batch --verify php.tar.xz.asc php.tar.xz; \ - rm -rf "$GNUPGHOME"; \ - - set -eux; \ - savedAptMark="$(apt-mark showmanual)"; \ - apt-get update; \ - apt-get install -y --no-install-recommends libedit-dev=3.1-* dpkg-dev=1.17.*; \ - rm -rf /var/lib/apt/lists/*; \ - apt-get clean; \ - - export \ - CFLAGS="$PHP_CFLAGS" \ - CPPFLAGS="$PHP_CPPFLAGS" \ - LDFLAGS="$PHP_LDFLAGS" \ - ; \ - mkdir -p $PHP_SRC_DIR; \ - tar -Jxf $SRC_DIR/php.tar.xz -C $PHP_SRC_DIR --strip-components=1; \ - cd $SRC_DIR/php; \ - gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)"; \ - debMultiarch="$(dpkg-architecture -qDEB_BUILD_MULTIARCH)"; \ - - # https://bugs.php.net/bug.php?id=74125 - if [ ! -d /usr/include/curl ]; then \ - ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ - fi; \ - ./configure \ - --build="$gnuArch" \ - --with-config-file-path="$PHP_INI_DIR" \ - --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \ - --disable-cgi \ - # --enable-ftp is included here because ftp_ssl_connect() needs ftp to be compiled statically (see https://github.com/docker-library/php/issues/236) - --enable-ftp \ - # --enable-mbstring is included here because otherwise there's no way to get pecl to use it properly (see https://github.com/docker-library/php/issues/195) - --enable-mbstring \ - # --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself) - --enable-mysqlnd \ - --enable-sockets \ - --enable-pcntl \ - # https://wiki.php.net/rfc/argon2_password_hash (7.2+) - --with-password-argon2 \ - --with-curl \ - --with-pdo-pgsql \ - --with-pdo-mysql \ - --with-libedit \ - --with-openssl \ - --with-zlib \ - # bundled pcre does not support JIT on s390x - - # https://manpages.debian.org/stretch/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT - $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ - --with-libdir="lib/$debMultiarch" \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ - ; \ - make -j "$(nproc)"; \ - make test; \ - make install; \ - find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; \ - make clean; \ - cd /; \ - rm -rf $PHP_SRC_DIR; \ - - # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies - apt-mark auto '.*' > /dev/null; \ - [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \ - find /usr/local -type f -executable -exec ldd '{}' ';' \ - | awk '/=>/ { print $(NF-1) }' \ - | sort -u \ - | xargs -r dpkg-query --search \ - | cut -d: -f1 \ - | sort -u \ - | xargs -r apt-mark manual \ - ; \ - apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ - php --version; \ - pecl update-channels; \ - rm -rf /tmp/pear ~/.pearrc; \ - - # Increase the memory size, default is 128M - mkdir "$PHP_INI_DIR"; \ - mkdir "$PHP_INI_DIR/conf.d"; \ - touch "$PHP_INI_DIR/conf.d/memory.ini" \ - && echo "memory_limit = 1G;" >> "$PHP_INI_DIR/conf.d/memory.ini"; - - ENV PATH="$PHPPATH/bin:/usr/local/php/bin:$PATH" - - # Install Composer globally - RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer - - WORKDIR $PHPPATH - diff --git a/ubuntu/unsupported_images/php/7.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/php/7.1/dockerd-entrypoint.sh deleted file mode 100755 index 1591be44..00000000 --- a/ubuntu/unsupported_images/php/7.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay2 &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/php/7.1/ssh_config b/ubuntu/unsupported_images/php/7.1/ssh_config deleted file mode 100644 index 710e2754..00000000 --- a/ubuntu/unsupported_images/php/7.1/ssh_config +++ /dev/null @@ -1,3 +0,0 @@ -Host * - ConnectTimeout 10 - ConnectionAttempts 10 diff --git a/ubuntu/unsupported_images/python/2.7.12/Dockerfile b/ubuntu/unsupported_images/python/2.7.12/Dockerfile deleted file mode 100644 index 1d5445a1..00000000 --- a/ubuntu/unsupported_images/python/2.7.12/Dockerfile +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV LANG="C.UTF-8" - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends wget=1.15-* fakeroot=1.20-* ca-certificates \ - autoconf=2.69-* automake=1:1.14.* less=458-* groff=1.22.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* curl=7.35.* \ - libdb-dev=1:5.3.* libevent-dev=2.0.* libffi-dev=3.1~* \ - libgeoip-dev=1.6.* libglib2.0-dev=2.40.* libjpeg-dev=8c-* \ - libkrb5-dev=1.12+* liblzma-dev=5.1.* libmagickcore-dev=8:6.7.* \ - libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* libncurses5-dev=5.9+* \ - libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* libsqlite3-dev=3.8.* \ - libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* libxml2-dev=2.9.* \ - libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* patch=2.7.* xz-utils=5.1.* \ - zlib1g-dev=1:1.2.* tcl=8.6.* tk=8.6.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel liberror-perl=0.17-* unzip=6.0-*\ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV PATH="/usr/local/bin:$PATH" \ - GPG_KEY="C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF" \ - PYTHON_VERSION="2.7.12" \ - PYTHON_PIP_VERSION="8.1.2" - -RUN set -ex \ - && apt-get update \ - && apt-get install -y --no-install-recommends tcl-dev tk-dev \ - && rm -rf /var/lib/apt/lists/* \ - \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ - && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && (gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$GPG_KEY" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$GPG_KEY" \ - || gpg --keyserver keyserver.ubuntu.com --recv-keys "$GPG_KEY") \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -r "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && ./configure \ - --enable-shared \ - --enable-unicode=ucs4 \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ - \ - && wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \ - && python2 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \ - && rm /tmp/get-pip.py \ -# we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python -# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages") -# https://github.com/docker-library/python/pull/143#issuecomment-241032683 - && pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ - && pip install awscli==1.* --no-cache-dir \ -# then we use "pip list" to ensure we don't have more than one pip version installed -# https://github.com/docker-library/python/pull/100 - && [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a -name test -o -name tests \) \ - -o \ - \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - \) -exec rm -rf '{}' + \ - && apt-get purge -y --auto-remove tcl-dev tk-dev \ - && rm -rf /usr/src/python ~/.cache - -CMD ["python2"] diff --git a/ubuntu/unsupported_images/python/2.7.12/dockerd-entrypoint.sh b/ubuntu/unsupported_images/python/2.7.12/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/python/2.7.12/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/python/3.3.6/Dockerfile b/ubuntu/unsupported_images/python/3.3.6/Dockerfile deleted file mode 100644 index 5b515629..00000000 --- a/ubuntu/unsupported_images/python/3.3.6/Dockerfile +++ /dev/null @@ -1,159 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV LANG="C.UTF-8" - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends wget=1.15-* fakeroot=1.20-* ca-certificates \ - autoconf=2.69-* automake=1:1.14.* less=458-* groff=1.22.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* curl=7.35.* \ - libdb-dev=1:5.3.* libevent-dev=2.0.* libffi-dev=3.1~* \ - libgeoip-dev=1.6.* libglib2.0-dev=2.40.* libjpeg-dev=8c-* \ - libkrb5-dev=1.12+* liblzma-dev=5.1.* libmagickcore-dev=8:6.7.* \ - libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* libncurses5-dev=5.9+* \ - libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* libsqlite3-dev=3.8.* \ - libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* libxml2-dev=2.9.* \ - libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* patch=2.7.* xz-utils=5.1.* \ - zlib1g-dev=1:1.2.* tcl=8.6.* tk=8.6.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel liberror-perl=0.17-* unzip=6.0-*\ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV PATH="/usr/local/bin:$PATH" \ - GPG_KEY="26DEA9D4613391EF3E25C9FF0A5B101836580288" \ - PYTHON_VERSION="3.3.6" \ - PYTHON_PIP_VERSION="8.1.2" - -RUN set -ex \ - && apt-get update \ - && apt-get install -y --no-install-recommends tcl-dev tk-dev \ - && rm -rf /var/lib/apt/lists/* \ - \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ - && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && (gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$GPG_KEY" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$GPG_KEY" \ - || gpg --keyserver keyserver.ubuntu.com --recv-keys "$GPG_KEY") \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -r "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && ./configure \ - --enable-loadable-sqlite-extensions \ - --enable-shared \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ - \ -# explicit path to "pip3" to ensure distribution-provided "pip3" cannot interfere - && if [ ! -e /usr/local/bin/pip3 ]; then : \ - && wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \ - && python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \ - && rm /tmp/get-pip.py \ - ; fi \ -# we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python -# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages") -# https://github.com/docker-library/python/pull/143#issuecomment-241032683 - && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ - && pip install awscli==1.* --no-cache-dir \ -# then we use "pip list" to ensure we don't have more than one pip version installed -# https://github.com/docker-library/python/pull/100 - && [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a -name test -o -name tests \) \ - -o \ - \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - \) -exec rm -rf '{}' + \ - && apt-get purge -y --auto-remove tcl-dev tk-dev \ - && rm -rf /usr/src/python ~/.cache \ - && cd /usr/local/bin \ - && { [ -e easy_install ] || ln -s easy_install-* easy_install; } \ - && ln -s idle3 idle \ - && ln -s pydoc3 pydoc \ - && ln -s python3 python \ - && ln -s python3-config python-config \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD ["python3"] diff --git a/ubuntu/unsupported_images/python/3.3.6/dockerd-entrypoint.sh b/ubuntu/unsupported_images/python/3.3.6/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/python/3.3.6/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/python/3.4.5/Dockerfile b/ubuntu/unsupported_images/python/3.4.5/Dockerfile deleted file mode 100644 index 6fd8369e..00000000 --- a/ubuntu/unsupported_images/python/3.4.5/Dockerfile +++ /dev/null @@ -1,159 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV LANG="C.UTF-8" - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends wget=1.15-* fakeroot=1.20-* ca-certificates \ - autoconf=2.69-* automake=1:1.14.* less=458-* groff=1.22.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* curl=7.35.* \ - libdb-dev=1:5.3.* libevent-dev=2.0.* libffi-dev=3.1~* \ - libgeoip-dev=1.6.* libglib2.0-dev=2.40.* libjpeg-dev=8c-* \ - libkrb5-dev=1.12+* liblzma-dev=5.1.* libmagickcore-dev=8:6.7.* \ - libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* libncurses5-dev=5.9+* \ - libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* libsqlite3-dev=3.8.* \ - libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* libxml2-dev=2.9.* \ - libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* patch=2.7.* xz-utils=5.1.* \ - zlib1g-dev=1:1.2.* tcl=8.6.* tk=8.6.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel liberror-perl=0.17-* unzip=6.0-*\ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV PATH="/usr/local/bin:$PATH" \ - GPG_KEY="97FC712E4C024BBEA48A61ED3A5CA953F73C700D" \ - PYTHON_VERSION="3.4.5" \ - PYTHON_PIP_VERSION="8.1.2" - -RUN set -ex \ - && apt-get update \ - && apt-get install -y --no-install-recommends tcl-dev tk-dev \ - && rm -rf /var/lib/apt/lists/* \ - \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ - && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && (gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$GPG_KEY" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$GPG_KEY" \ - || gpg --keyserver keyserver.ubuntu.com --recv-keys "$GPG_KEY") \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -r "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && ./configure \ - --enable-loadable-sqlite-extensions \ - --enable-shared \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ - \ -# explicit path to "pip3" to ensure distribution-provided "pip3" cannot interfere - && if [ ! -e /usr/local/bin/pip3 ]; then : \ - && wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \ - && python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \ - && rm /tmp/get-pip.py \ - ; fi \ -# we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python -# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages") -# https://github.com/docker-library/python/pull/143#issuecomment-241032683 - && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ - && pip install awscli==1.* --no-cache-dir \ -# then we use "pip list" to ensure we don't have more than one pip version installed -# https://github.com/docker-library/python/pull/100 - && [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a -name test -o -name tests \) \ - -o \ - \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - \) -exec rm -rf '{}' + \ - && apt-get purge -y --auto-remove tcl-dev tk-dev \ - && rm -rf /usr/src/python ~/.cache \ - && cd /usr/local/bin \ - && { [ -e easy_install ] || ln -s easy_install-* easy_install; } \ - && ln -s idle3 idle \ - && ln -s pydoc3 pydoc \ - && ln -s python3 python \ - && ln -s python3-config python-config \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD ["python3"] diff --git a/ubuntu/unsupported_images/python/3.4.5/dockerd-entrypoint.sh b/ubuntu/unsupported_images/python/3.4.5/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/python/3.4.5/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/python/3.5.2/Dockerfile b/ubuntu/unsupported_images/python/3.5.2/Dockerfile deleted file mode 100644 index aeb46d67..00000000 --- a/ubuntu/unsupported_images/python/3.5.2/Dockerfile +++ /dev/null @@ -1,159 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV LANG="C.UTF-8" - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends wget=1.15-* fakeroot=1.20-* ca-certificates \ - autoconf=2.69-* automake=1:1.14.* less=458-* groff=1.22.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* curl=7.35.* \ - libdb-dev=1:5.3.* libevent-dev=2.0.* libffi-dev=3.1~* \ - libgeoip-dev=1.6.* libglib2.0-dev=2.40.* libjpeg-dev=8c-* \ - libkrb5-dev=1.12+* liblzma-dev=5.1.* libmagickcore-dev=8:6.7.* \ - libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* libncurses5-dev=5.9+* \ - libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* libsqlite3-dev=3.8.* \ - libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* libxml2-dev=2.9.* \ - libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* patch=2.7.* xz-utils=5.1.* \ - zlib1g-dev=1:1.2.* tcl=8.6.* tk=8.6.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel liberror-perl=0.17-* unzip=6.0-*\ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV PATH="/usr/local/bin:$PATH" \ - GPG_KEY="97FC712E4C024BBEA48A61ED3A5CA953F73C700D" \ - PYTHON_VERSION="3.5.2" \ - PYTHON_PIP_VERSION="8.1.2" - -RUN set -ex \ - && apt-get update \ - && apt-get install -y --no-install-recommends tcl-dev tk-dev \ - && rm -rf /var/lib/apt/lists/* \ - \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ - && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && (gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$GPG_KEY" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$GPG_KEY" \ - || gpg --keyserver keyserver.ubuntu.com --recv-keys "$GPG_KEY") \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -r "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && ./configure \ - --enable-loadable-sqlite-extensions \ - --enable-shared \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ - \ -# explicit path to "pip3" to ensure distribution-provided "pip3" cannot interfere - && if [ ! -e /usr/local/bin/pip3 ]; then : \ - && wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \ - && python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \ - && rm /tmp/get-pip.py \ - ; fi \ -# we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python -# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages") -# https://github.com/docker-library/python/pull/143#issuecomment-241032683 - && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ - && pip install awscli==1.* --no-cache-dir \ -# then we use "pip list" to ensure we don't have more than one pip version installed -# https://github.com/docker-library/python/pull/100 - && [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a -name test -o -name tests \) \ - -o \ - \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - \) -exec rm -rf '{}' + \ - && apt-get purge -y --auto-remove tcl-dev tk-dev \ - && rm -rf /usr/src/python ~/.cache \ - && cd /usr/local/bin \ - && { [ -e easy_install ] || ln -s easy_install-* easy_install; } \ - && ln -s idle3 idle \ - && ln -s pydoc3 pydoc \ - && ln -s python3 python \ - && ln -s python3-config python-config \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD ["python3"] diff --git a/ubuntu/unsupported_images/python/3.5.2/dockerd-entrypoint.sh b/ubuntu/unsupported_images/python/3.5.2/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/python/3.5.2/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/python/3.6.5/Dockerfile b/ubuntu/unsupported_images/python/3.6.5/Dockerfile deleted file mode 100644 index c7fced02..00000000 --- a/ubuntu/unsupported_images/python/3.6.5/Dockerfile +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV LANG="C.UTF-8" - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends wget=1.15-* fakeroot=1.20-* ca-certificates \ - autoconf=2.69-* automake=1:1.14.* less=458-* groff=1.22.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* curl=7.35.* \ - libdb-dev=1:5.3.* libevent-dev=2.0.* libffi-dev=3.1~* \ - libgeoip-dev=1.6.* libglib2.0-dev=2.40.* libjpeg-dev=8c-* \ - libkrb5-dev=1.12+* liblzma-dev=5.1.* libmagickcore-dev=8:6.7.* \ - libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* libncurses5-dev=5.9+* \ - libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* libsqlite3-dev=3.8.* \ - libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* libxml2-dev=2.9.* \ - libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* patch=2.7.* xz-utils=5.1.* \ - zlib1g-dev=1:1.2.* tcl=8.6.* tk=8.6.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel liberror-perl=0.17-* unzip=6.0-*\ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV PATH="/usr/local/bin:$PATH" \ - GPG_KEY="0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D" \ - PYTHON_VERSION="3.6.5" \ - PYTHON_PIP_VERSION="10.0.0" \ - LC_ALL=C.UTF-8 \ - LANG=C.UTF-8 - -RUN apt-get update && apt-get install -y --no-install-recommends \ - tcl-dev tk-dev \ - && rm -rf /var/lib/apt/lists/* \ - \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ - && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && (gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$GPG_KEY" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$GPG_KEY" \ - || gpg --keyserver keyserver.ubuntu.com --recv-keys "$GPG_KEY") \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -r "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && ./configure \ - --enable-loadable-sqlite-extensions \ - --enable-shared \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ - \ -# explicit path to "pip3" to ensure distribution-provided "pip3" cannot interfere - && if [ ! -e /usr/local/bin/pip3 ]; then : \ - && wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \ - && python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \ - && rm /tmp/get-pip.py \ - ; fi \ -# we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python -# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages") -# https://github.com/docker-library/python/pull/143#issuecomment-241032683 - && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ - && pip install awscli==1.* boto3 pipenv virtualenv --no-cache-dir \ -# then we use "pip list" to ensure we don't have more than one pip version installed -# https://github.com/docker-library/python/pull/100 - && [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a -name test -o -name tests \) \ - -o \ - \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - \) -exec rm -rf '{}' + \ - && apt-get purge -y --auto-remove tcl-dev tk-dev \ - && rm -rf /usr/src/python ~/.cache \ - && cd /usr/local/bin \ - && { [ -e easy_install ] || ln -s easy_install-* easy_install; } \ - && ln -s idle3 idle \ - && ln -s pydoc3 pydoc \ - && ln -s python3 python \ - && ln -s python3-config python-config \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD ["python3"] diff --git a/ubuntu/unsupported_images/python/3.6.5/dockerd-entrypoint.sh b/ubuntu/unsupported_images/python/3.6.5/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/python/3.6.5/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/python/3.7.1/Dockerfile b/ubuntu/unsupported_images/python/3.7.1/Dockerfile deleted file mode 100644 index fc678761..00000000 --- a/ubuntu/unsupported_images/python/3.7.1/Dockerfile +++ /dev/null @@ -1,183 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="18.09.0" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="08795696e852328d66753963249f4396af2295a7fe2847b839f7102e25e47cb9" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.23.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python3=3.4.* python3.4-dev=3.4.* fakeroot=1.20-* ca-certificates jq \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel=5.* less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* python3-pip \ - tk=8.6.* gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && pip3 install awscli boto3 - -VOLUME /var/lib/docker - -# Configure SSH -COPY ssh_config /root/.ssh/config - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV PATH="/usr/local/bin:$PATH" \ - GPG_KEY="0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D" \ - PYTHON_VERSION="3.7.1" \ - PYTHON_PIP_VERSION="18.1" \ - LC_ALL=C.UTF-8 \ - LANG=C.UTF-8 \ - OPENSSL_DOWNLOAD_SHA256="2836875a0f89c03d0fdf483941512613a50cfb421d6fd94b9f41d7279d586a3d" - -RUN apt-get update && apt-get install -y --no-install-recommends \ - tcl-dev tk-dev \ - && rm -rf /var/lib/apt/lists/* \ - \ - # install openssl - # https://help.dreamhost.com/hc/en-us/articles/360001435926-Installing-OpenSSL-locally-under-your-username - # https://github.com/openssl/openssl/issues/4833 - && wget -O openssl.tar.gz "https://www.openssl.org/source/openssl-1.1.1.tar.gz" \ - && echo "${OPENSSL_DOWNLOAD_SHA256} *openssl.tar.gz" | sha256sum -c - \ - && mkdir -p /usr/src/openssl \ - && tar -C /usr/src/openssl --strip-components=1 -xvzf openssl.tar.gz \ - && rm openssl.tar.gz \ - && cd /usr/src/openssl \ - && ./config \ - && make \ - && make install \ - && echo '/usr/local/lib' >> /etc/ld.so.conf \ - && ldconfig \ - && echo 'export LD_LIBRARY_PATH=/usr/local/lib' >> ~/.bash_profile && . ~/.bash_profile \ - && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ - && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && (gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$GPG_KEY" \ - || gpg --keyserver pgp.mit.edu --recv-keys "$GPG_KEY" \ - || gpg --keyserver keyserver.ubuntu.com --recv-keys "$GPG_KEY") \ - && gpg --batch --verify python.tar.xz.asc python.tar.xz \ - && rm -r "$GNUPGHOME" python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz \ - \ - && cd /usr/src/python \ - && ./configure \ - --enable-loadable-sqlite-extensions \ - --enable-shared \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ - \ -# explicit path to "pip3" to ensure distribution-provided "pip3" cannot interfere - && if [ ! -e /usr/local/bin/pip3 ]; then : \ - && wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \ - && python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \ - && rm /tmp/get-pip.py \ - ; fi \ -# we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python -# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages") -# https://github.com/docker-library/python/pull/143#issuecomment-241032683 - && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ - && pip install pipenv virtualenv --no-cache-dir \ -# then we use "pip list" to ensure we don't have more than one pip version installed -# https://github.com/docker-library/python/pull/100 - && [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \ - \ - && find /usr/local -depth \ - \( \ - \( -type d -a -name test -o -name tests \) \ - -o \ - \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - \) -exec rm -rf '{}' + \ - && apt-get purge -y --auto-remove tcl-dev tk-dev \ - && rm -rf /usr/src/python /usr/src/openssl ~/.cache \ - && cd /usr/local/bin \ - && { [ -e easy_install ] || ln -s easy_install-* easy_install; } \ - && ln -s idle3 idle \ - && ln -s pydoc3 pydoc \ - && ln -s python3 python \ - && ln -s python3-config python-config \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD ["python3"] diff --git a/ubuntu/unsupported_images/python/3.7.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/python/3.7.1/dockerd-entrypoint.sh deleted file mode 100755 index 1591be44..00000000 --- a/ubuntu/unsupported_images/python/3.7.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay2 &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/python/3.7.1/ssh_config b/ubuntu/unsupported_images/python/3.7.1/ssh_config deleted file mode 100644 index 710e2754..00000000 --- a/ubuntu/unsupported_images/python/3.7.1/ssh_config +++ /dev/null @@ -1,3 +0,0 @@ -Host * - ConnectTimeout 10 - ConnectionAttempts 10 diff --git a/ubuntu/unsupported_images/ruby/2.1.10/Dockerfile b/ubuntu/unsupported_images/ruby/2.1.10/Dockerfile deleted file mode 100644 index db40df94..00000000 --- a/ubuntu/unsupported_images/ruby/2.1.10/Dockerfile +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -# Building git from source code: -# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. -########################################################################## -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ - tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ - bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ - libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ - libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ - libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.59-* \ - libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ - libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ - patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ - && apt-get install -y -qq less=458-* groff=1.22.2-* \ - && apt-get -qy build-dep git=1:1.9.1 \ - && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ - && mkdir -p /usr/src/git-openssl \ - && cd /usr/src/git-openssl \ - && apt-get source git=1:1.9.1 \ - && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ - && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ - && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ - && dpkg-buildpackage -rfakeroot -b \ - && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ - && rm -rf /usr/src/git-openssl \ -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.11.157 \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -ENV RUBY_MAJOR="2.1" \ - RUBY_VERSION="2.1.10" \ - RUBY_DOWNLOAD_SHA256="fb2e454d7a5e5a39eb54db0ec666f53eeb6edc593d1d2b970ae4d150b831dd20" \ - RUBYGEMS_VERSION="2.6.7" \ - BUNDLER_VERSION="1.13.5" \ - GEM_HOME="/usr/local/bundle" - -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_BIN="$GEM_HOME/bin" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ - BUNDLE_APP_CONFIG="$GEM_HOME" - -ENV PATH $BUNDLE_BIN:$PATH - -RUN mkdir -p /usr/local/etc \ - && { \ - echo 'install: --no-document'; \ - echo 'update: --no-document'; \ - } >> /usr/local/etc/gemrc \ - && apt-get update && apt-get install -y --no-install-recommends \ - bison libgdbm-dev ruby \ - && wget "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" -O /tmp/ruby.tar.gz \ - && echo "$RUBY_DOWNLOAD_SHA256 /tmp/ruby.tar.gz" | sha256sum -c - \ - && mkdir -p /usr/src/ruby \ - && tar -xzf /tmp/ruby.tar.gz -C /usr/src/ruby --strip-components=1 \ - && cd /usr/src/ruby \ - && { \ - echo '#define ENABLE_PATH_CHECK 0'; \ - echo; \ - cat file.c; \ - } > file.c.new \ - && mv file.c.new file.c \ - && autoconf \ - && ./configure --disable-install-doc \ - && make -j"$(nproc)" \ - && make install \ - && apt-get purge -y --auto-remove bison libgdbm-dev ruby \ - && cd / \ - && rm -r /usr/src/ruby \ - && gem update --system "$RUBYGEMS_VERSION" \ - && gem install bundler --version "$BUNDLER_VERSION" \ - && mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \ - && chmod 777 "$GEM_HOME" "$BUNDLE_BIN" \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD [ "irb" ] diff --git a/ubuntu/unsupported_images/ruby/2.2.5/Dockerfile b/ubuntu/unsupported_images/ruby/2.2.5/Dockerfile deleted file mode 100644 index cbae5c8d..00000000 --- a/ubuntu/unsupported_images/ruby/2.2.5/Dockerfile +++ /dev/null @@ -1,150 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV RUBY_MAJOR="2.2" \ - RUBY_VERSION="2.2.5" \ - RUBY_DOWNLOAD_SHA256="30c4b31697a4ca4ea0c8db8ad30cf45e6690a0f09687e5d483c933c03ca335e3" \ - RUBYGEMS_VERSION="2.6.7" \ - BUNDLER_VERSION="1.13.5" \ - GEM_HOME="/usr/local/bundle" - -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_BIN="$GEM_HOME/bin" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ - BUNDLE_APP_CONFIG="$GEM_HOME" - -ENV PATH $BUNDLE_BIN:$PATH - -RUN set -ex \ - && mkdir -p /usr/local/etc \ - && { \ - echo 'install: --no-document'; \ - echo 'update: --no-document'; \ - } >> /usr/local/etc/gemrc \ - && apt-get update && apt-get install -y --no-install-recommends \ - bison libgdbm-dev ruby \ - && wget "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" -O /tmp/ruby.tar.gz \ - && echo "$RUBY_DOWNLOAD_SHA256 /tmp/ruby.tar.gz" | sha256sum -c - \ - && mkdir -p /usr/src/ruby \ - && tar -xzf /tmp/ruby.tar.gz -C /usr/src/ruby --strip-components=1 \ - && cd /usr/src/ruby \ - && { \ - echo '#define ENABLE_PATH_CHECK 0'; \ - echo; \ - cat file.c; \ - } > file.c.new \ - && mv file.c.new file.c \ - && autoconf \ - && ./configure --disable-install-doc \ - && make -j"$(nproc)" \ - && make install \ - && apt-get purge -y --auto-remove bison libgdbm-dev ruby \ - && cd / \ - && rm -r /usr/src/ruby \ - && gem update --system "$RUBYGEMS_VERSION" \ - && gem install bundler --version "$BUNDLER_VERSION" \ - && mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \ - && chmod 777 "$GEM_HOME" "$BUNDLE_BIN" \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD [ "irb" ] diff --git a/ubuntu/unsupported_images/ruby/2.2.5/dockerd-entrypoint.sh b/ubuntu/unsupported_images/ruby/2.2.5/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/ruby/2.2.5/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/ruby/2.3.1/Dockerfile b/ubuntu/unsupported_images/ruby/2.3.1/Dockerfile deleted file mode 100644 index 910d34e6..00000000 --- a/ubuntu/unsupported_images/ruby/2.3.1/Dockerfile +++ /dev/null @@ -1,150 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV RUBY_MAJOR="2.3" \ - RUBY_VERSION="2.3.1" \ - RUBY_DOWNLOAD_SHA256="b87c738cb2032bf4920fef8e3864dc5cf8eae9d89d8d523ce0236945c5797dcd" \ - RUBYGEMS_VERSION="2.6.7" \ - BUNDLER_VERSION="1.13.5" \ - GEM_HOME="/usr/local/bundle" - -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_BIN="$GEM_HOME/bin" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ - BUNDLE_APP_CONFIG="$GEM_HOME" - -ENV PATH $BUNDLE_BIN:$PATH - -RUN set -ex \ - && mkdir -p /usr/local/etc \ - && { \ - echo 'install: --no-document'; \ - echo 'update: --no-document'; \ - } >> /usr/local/etc/gemrc \ - && apt-get update && apt-get install -y --no-install-recommends \ - bison libgdbm-dev ruby \ - && wget "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" -O /tmp/ruby.tar.gz \ - && echo "$RUBY_DOWNLOAD_SHA256 /tmp/ruby.tar.gz" | sha256sum -c - \ - && mkdir -p /usr/src/ruby \ - && tar -xzf /tmp/ruby.tar.gz -C /usr/src/ruby --strip-components=1 \ - && cd /usr/src/ruby \ - && { \ - echo '#define ENABLE_PATH_CHECK 0'; \ - echo; \ - cat file.c; \ - } > file.c.new \ - && mv file.c.new file.c \ - && autoconf \ - && ./configure --disable-install-doc \ - && make -j"$(nproc)" \ - && make install \ - && apt-get purge -y --auto-remove bison libgdbm-dev ruby \ - && cd / \ - && rm -r /usr/src/ruby \ - && gem update --system "$RUBYGEMS_VERSION" \ - && gem install bundler --version "$BUNDLER_VERSION" \ - && mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \ - && chmod 777 "$GEM_HOME" "$BUNDLE_BIN" \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD [ "irb" ] diff --git a/ubuntu/unsupported_images/ruby/2.3.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/ruby/2.3.1/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/ruby/2.3.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/ruby/2.5.1/Dockerfile b/ubuntu/unsupported_images/ruby/2.5.1/Dockerfile deleted file mode 100644 index c54aad57..00000000 --- a/ubuntu/unsupported_images/ruby/2.5.1/Dockerfile +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - -ENV RUBY_MAJOR="2.5" \ - RUBY_VERSION="2.5.1" \ - RUBY_DOWNLOAD_SHA256="dac81822325b79c3ba9532b048c2123357d3310b2b40024202f360251d9829b1" \ - RUBYGEMS_VERSION="2.7.2" \ - BUNDLER_VERSION="1.16.1" \ - GEM_HOME="/usr/local/bundle" - -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_BIN="$GEM_HOME/bin" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ - BUNDLE_APP_CONFIG="$GEM_HOME" - -ENV PATH $BUNDLE_BIN:$PATH - -RUN mkdir -p /usr/local/etc \ - && { \ - echo 'install: --no-document'; \ - echo 'update: --no-document'; \ - } >> /usr/local/etc/gemrc \ - && apt-get update && apt-get install -y --no-install-recommends \ - bison libgdbm-dev ruby \ - && wget "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" -O /tmp/ruby.tar.gz \ - && echo "$RUBY_DOWNLOAD_SHA256 /tmp/ruby.tar.gz" | sha256sum -c - \ - && mkdir -p /usr/src/ruby \ - && tar -xzf /tmp/ruby.tar.gz -C /usr/src/ruby --strip-components=1 \ - && cd /usr/src/ruby \ - && { \ - echo '#define ENABLE_PATH_CHECK 0'; \ - echo; \ - cat file.c; \ - } > file.c.new \ - && mv file.c.new file.c \ - && autoconf \ - && ./configure --disable-install-doc \ - && make -j"$(nproc)" \ - && make install \ - && apt-get purge -y --auto-remove bison libgdbm-dev ruby \ - && cd / \ - && rm -r /usr/src/ruby \ - && gem update --system "$RUBYGEMS_VERSION" \ - && gem install bundler --version "$BUNDLER_VERSION" \ - && mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \ - && chmod 777 "$GEM_HOME" "$BUNDLE_BIN" \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -CMD [ "irb" ] diff --git a/ubuntu/unsupported_images/ruby/2.5.1/dockerd-entrypoint.sh b/ubuntu/unsupported_images/ruby/2.5.1/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/ruby/2.5.1/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/ruby/2.5.3/Dockerfile b/ubuntu/unsupported_images/ruby/2.5.3/Dockerfile deleted file mode 100644 index e1e77e3e..00000000 --- a/ubuntu/unsupported_images/ruby/2.5.3/Dockerfile +++ /dev/null @@ -1,152 +0,0 @@ -# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "license" file accompanying this file. -# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. -# See the License for the specific language governing permissions and limitations under the License. -# - -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="18.09.0" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="08795696e852328d66753963249f4396af2295a7fe2847b839f7102e25e47cb9" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.23.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python3=3.4.* python3.4-dev=3.4.* fakeroot=1.20-* ca-certificates jq \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel=5.* less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* python3-pip \ - tk=8.6.* gettext=0.18.* gettext-base=0.18.* libapr1=1.5.* libaprutil1=1.5.* libasprintf0c2=0.18.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && pip3 install awscli boto3 - -VOLUME /var/lib/docker - -# Configure SSH -COPY ssh_config /root/.ssh/config - -COPY dockerd-entrypoint.sh /usr/local/bin/ - - - ENV RUBY_MAJOR="2.5" \ - RUBY_VERSION="2.5.3" \ - RUBY_DOWNLOAD_SHA256="9828d03852c37c20fa333a0264f2490f07338576734d910ee3fd538c9520846c" \ - RUBYGEMS_VERSION="2.7.7" \ - BUNDLER_VERSION="1.16.6" \ - GEM_HOME="/usr/local/bundle" - - ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_BIN="$GEM_HOME/bin" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ - BUNDLE_APP_CONFIG="$GEM_HOME" - - ENV PATH $BUNDLE_BIN:$PATH - - RUN mkdir -p /usr/local/etc \ - && { \ - echo 'install: --no-document'; \ - echo 'update: --no-document'; \ - } >> /usr/local/etc/gemrc \ - && apt-get update && apt-get install -y --no-install-recommends \ - bison libgdbm-dev ruby \ - && wget "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" -O /tmp/ruby.tar.gz \ - && echo "$RUBY_DOWNLOAD_SHA256 /tmp/ruby.tar.gz" | sha256sum -c - \ - && mkdir -p /usr/src/ruby \ - && tar -xzf /tmp/ruby.tar.gz -C /usr/src/ruby --strip-components=1 \ - && cd /usr/src/ruby \ - && { \ - echo '#define ENABLE_PATH_CHECK 0'; \ - echo; \ - cat file.c; \ - } > file.c.new \ - && mv file.c.new file.c \ - && autoconf \ - && ./configure --disable-install-doc \ - && make -j"$(nproc)" \ - && make install \ - && apt-get purge -y --auto-remove bison libgdbm-dev ruby \ - && cd / \ - && rm -r /usr/src/ruby \ - && gem update --system "$RUBYGEMS_VERSION" \ - && gem install bundler --version "$BUNDLER_VERSION" \ - && mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \ - && chmod 777 "$GEM_HOME" "$BUNDLE_BIN" \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - - CMD [ "irb" ] - diff --git a/ubuntu/unsupported_images/ruby/2.5.3/dockerd-entrypoint.sh b/ubuntu/unsupported_images/ruby/2.5.3/dockerd-entrypoint.sh deleted file mode 100755 index 1591be44..00000000 --- a/ubuntu/unsupported_images/ruby/2.5.3/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay2 &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@" diff --git a/ubuntu/unsupported_images/ruby/2.5.3/ssh_config b/ubuntu/unsupported_images/ruby/2.5.3/ssh_config deleted file mode 100644 index 710e2754..00000000 --- a/ubuntu/unsupported_images/ruby/2.5.3/ssh_config +++ /dev/null @@ -1,3 +0,0 @@ -Host * - ConnectTimeout 10 - ConnectionAttempts 10 diff --git a/ubuntu/unsupported_images/ubuntu-base/14.04/Dockerfile b/ubuntu/unsupported_images/ubuntu-base/14.04/Dockerfile deleted file mode 100644 index 26ae43b4..00000000 --- a/ubuntu/unsupported_images/ubuntu-base/14.04/Dockerfile +++ /dev/null @@ -1,91 +0,0 @@ -FROM ubuntu:14.04.5 - -ENV DOCKER_BUCKET="download.docker.com" \ - DOCKER_VERSION="17.09.0-ce" \ - DOCKER_CHANNEL="stable" \ - DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" \ - DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \ - DOCKER_COMPOSE_VERSION="1.21.2" \ - GITVERSION_VERSION="3.6.5" - -# Install git, SSH, and other utilities -RUN set -ex \ - && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression \ - && apt-get update \ - && apt install -y apt-transport-https \ - && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ - && apt-get update \ - && apt-get install software-properties-common -y --no-install-recommends \ - && apt-add-repository ppa:git-core/ppa \ - && apt-get update \ - && apt-get install git=1:2.* -y --no-install-recommends \ - && git version \ - && apt-get install -y --no-install-recommends openssh-client=1:6.6* \ - && mkdir ~/.ssh \ - && touch ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \ - && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \ - && chmod 600 ~/.ssh/known_hosts \ - && apt-get install -y --no-install-recommends \ - wget=1.15-* python=2.7.* python2.7-dev=2.7.* fakeroot=1.20-* ca-certificates \ - tar=1.27.* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.* \ - bzip2=1.0.* file=1:5.14-* g++=4:4.8.* gcc=4:4.8.* imagemagick=8:6.7.* \ - libbz2-dev=1.0.* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.* libdb-dev=1:5.3.* \ - libevent-dev=2.0.* libffi-dev=3.1~* libgeoip-dev=1.6.* libglib2.0-dev=2.40.* \ - libjpeg-dev=8c-* libkrb5-dev=1.12+* liblzma-dev=5.1.* \ - libmagickcore-dev=8:6.7.* libmagickwand-dev=8:6.7.* libmysqlclient-dev=5.5.* \ - libncurses5-dev=5.9+* libpng12-dev=1.2.* libpq-dev=9.3.* libreadline-dev=6.3-* \ - libsqlite3-dev=3.8.* libssl-dev=1.0.* libtool=2.4.* libwebp-dev=0.4.* \ - libxml2-dev=2.9.* libxslt1-dev=1.1.* libyaml-dev=0.1.* make=3.81-* \ - patch=2.7.* xz-utils=5.1.* zlib1g-dev=1:1.2.* unzip=6.0-* curl=7.35.* \ - e2fsprogs=1.42.* iptables=1.4.* xfsprogs=3.1.* xz-utils=5.1.* \ - mono-devel less=458-* groff=1.22.* liberror-perl=0.17-* \ - asciidoc=8.6.* build-essential=11.* bzr=2.6.* cvs=2:1.12.* cvsps=2.1-* docbook-xml=4.5-* docbook-xsl=1.78.* dpkg-dev=1.17.* \ - libdbd-sqlite3-perl=1.40-* libdbi-perl=1.630-* libdpkg-perl=1.17.* libhttp-date-perl=6.02-* \ - libio-pty-perl=1:1.08-* libserf-1-1=1.3.* libsvn-perl=1.8.* libsvn1=1.8.* libtcl8.6=8.6.* libtimedate-perl=2.3000-* \ - libunistring0=0.9.* libxml2-utils=2.9.* libyaml-perl=0.84-* python-bzrlib=2.6.* python-configobj=4.7.* \ - sgml-base=1.26+* sgml-data=2.0.* subversion=1.8.* tcl=8.6.* tcl8.6=8.6.* xml-core=0.13+* xmlto=0.0.* xsltproc=1.1.* \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Download and set up GitVersion -RUN set -ex \ - && wget "https://github.com/GitTools/GitVersion/releases/download/v${GITVERSION_VERSION}/GitVersion_${GITVERSION_VERSION}.zip" -O /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \ - && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \ - && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \ - && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$@" >> /usr/local/bin/gitversion \ - && chmod +x /usr/local/bin/gitversion - -# Install Docker -RUN set -ex \ - && curl -fSL "https://${DOCKER_BUCKET}/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \ - && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \ - && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ \ - && rm docker.tgz \ - && docker -v \ -# set up subuid/subgid so that "--userns-remap=default" works out-of-the-box - && addgroup dockremap \ - && useradd -g dockremap dockremap \ - && echo 'dockremap:165536:65536' >> /etc/subuid \ - && echo 'dockremap:165536:65536' >> /etc/subgid \ - && wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \ - && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \ - && chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \ -# Ensure docker-compose works - && docker-compose version - -# Install dependencies by all python images equivalent to buildpack-deps:jessie -# on the public repos. - -RUN set -ex \ - && wget "https://bootstrap.pypa.io/2.6/get-pip.py" -O /tmp/get-pip.py \ - && python /tmp/get-pip.py \ - && pip install awscli==1.* \ - && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* - -VOLUME /var/lib/docker - -COPY dockerd-entrypoint.sh /usr/local/bin/ - diff --git a/ubuntu/unsupported_images/ubuntu-base/14.04/dockerd-entrypoint.sh b/ubuntu/unsupported_images/ubuntu-base/14.04/dockerd-entrypoint.sh deleted file mode 100755 index ca3395c7..00000000 --- a/ubuntu/unsupported_images/ubuntu-base/14.04/dockerd-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -/usr/local/bin/dockerd \ - --host=unix:///var/run/docker.sock \ - --host=tcp://127.0.0.1:2375 \ - --storage-driver=overlay &>/var/log/docker.log & - - -tries=0 -d_timeout=60 -until docker info >/dev/null 2>&1 -do - if [ "$tries" -gt "$d_timeout" ]; then - cat /var/log/docker.log - echo 'Timed out trying to connect to internal docker host.' >&2 - exit 1 - fi - tries=$(( $tries + 1 )) - sleep 1 -done - -eval "$@"