Update to 0.134.0 definition
This commit is contained in:
		@@ -1,61 +1,46 @@
 | 
			
		||||
#-------------------------------------------------------------------------------------------------------------
 | 
			
		||||
# Copyright (c) Microsoft Corporation. All rights reserved.
 | 
			
		||||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
 | 
			
		||||
#-------------------------------------------------------------------------------------------------------------
 | 
			
		||||
# Update the VARIANT arg in devcontainer.json to pick a Java version >= 11
 | 
			
		||||
ARG VARIANT=11
 | 
			
		||||
FROM openjdk:${VARIANT}-jdk-buster
 | 
			
		||||
 | 
			
		||||
FROM mcr.microsoft.com/java/jdk:8u232-zulu-ubuntu
 | 
			
		||||
 | 
			
		||||
# Avoid warnings by switching to noninteractive
 | 
			
		||||
ENV DEBIAN_FRONTEND=noninteractive
 | 
			
		||||
 | 
			
		||||
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
 | 
			
		||||
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
 | 
			
		||||
# will be updated to match your local UID/GID (when using the dockerFile property).
 | 
			
		||||
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
 | 
			
		||||
# Options for setup script
 | 
			
		||||
ARG INSTALL_ZSH="true"
 | 
			
		||||
ARG UPGRADE_PACKAGES="false"
 | 
			
		||||
ARG USERNAME=vscode
 | 
			
		||||
ARG USER_UID=1000
 | 
			
		||||
ARG USER_GID=$USER_UID
 | 
			
		||||
 | 
			
		||||
# Maven settings
 | 
			
		||||
# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies.
 | 
			
		||||
COPY library-scripts/*.sh /tmp/library-scripts/
 | 
			
		||||
RUN /bin/bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \
 | 
			
		||||
    && if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi \
 | 
			
		||||
    && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/common-debian.sh
 | 
			
		||||
 | 
			
		||||
# [Optional] Install Maven
 | 
			
		||||
ARG INSTALL_MAVEN="false"
 | 
			
		||||
ARG MAVEN_VERSION=3.6.3
 | 
			
		||||
ARG MAVEN_SHA=c35a1803a6e70a126e80b2b3ae33eed961f83ed74d18fcd16909b2d44d7dada3203f1ffe726c17ef8dcca2dcaa9fca676987befeadc9b9f759967a8cb77181c0
 | 
			
		||||
ARG MAVEN_DOWNLOAD_SHA="no-check"
 | 
			
		||||
ENV MAVEN_HOME=/usr/local/share/maven
 | 
			
		||||
COPY maven-settings.xml ${MAVEN_HOME}/ref/
 | 
			
		||||
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then /bin/bash /tmp/library-scripts/maven-debian.sh ${MAVEN_VERSION} ${MAVEN_HOME} ${USERNAME} ${MAVEN_DOWNLOAD_SHA}; fi \
 | 
			
		||||
    && rm -f /tmp/library-scripts/maven-debian.sh
 | 
			
		||||
 | 
			
		||||
# Configure apt and install packages
 | 
			
		||||
RUN apt-get update \
 | 
			
		||||
    && apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
 | 
			
		||||
    #
 | 
			
		||||
    # Verify git and needed tools are installed
 | 
			
		||||
    && apt-get -y install \
 | 
			
		||||
        git \
 | 
			
		||||
        iproute2 \
 | 
			
		||||
        procps \
 | 
			
		||||
        curl \
 | 
			
		||||
        apt-transport-https \
 | 
			
		||||
        gnupg2 \
 | 
			
		||||
        lsb-release \
 | 
			
		||||
    #
 | 
			
		||||
    # Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
 | 
			
		||||
    && groupadd --gid $USER_GID $USERNAME \
 | 
			
		||||
    && useradd -s /bin/bash --uid ${USER_UID} --gid ${USER_GID} -m $USERNAME \
 | 
			
		||||
    # [Optional] Add sudo support for the non-root user
 | 
			
		||||
    && apt-get install -y sudo \
 | 
			
		||||
    && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
 | 
			
		||||
    && chmod 0440 /etc/sudoers.d/$USERNAME \
 | 
			
		||||
    # 
 | 
			
		||||
    # Install Maven
 | 
			
		||||
    && mkdir -p ${MAVEN_HOME} ${MAVEN_HOME}/ref \
 | 
			
		||||
    && curl -fsSL -o /tmp/apache-maven.tar.gz https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
 | 
			
		||||
    && echo "${MAVEN_SHA} /tmp/apache-maven.tar.gz" | sha512sum -c - \
 | 
			
		||||
    && tar -xzf /tmp/apache-maven.tar.gz -C ${MAVEN_HOME} --strip-components=1 \
 | 
			
		||||
    && rm -f /tmp/apache-maven.tar.gz \
 | 
			
		||||
    && ln -s ${MAVEN_HOME}/bin/mvn /usr/local/bin/mvn \
 | 
			
		||||
    #
 | 
			
		||||
    # Clean up
 | 
			
		||||
    && apt-get autoremove -y \
 | 
			
		||||
    && apt-get clean -y \
 | 
			
		||||
    && rm -rf /var/lib/apt/lists/*
 | 
			
		||||
# [Optional] Install Gradle
 | 
			
		||||
ARG INSTALL_GRADLE="false"
 | 
			
		||||
ARG GRADLE_VERSION=5.4.1
 | 
			
		||||
ARG GRADLE_DOWNLOAD_SHA="no-check"
 | 
			
		||||
ENV GRADLE_HOME=/usr/local/share/gradle
 | 
			
		||||
RUN if [ "${INSTALL_GRADLE}" = "true" ]; then /bin/bash /tmp/library-scripts/gradle-debian.sh ${GRADLE_VERSION} ${GRADLE_HOME} ${USERNAME} ${GRADLE_DOWNLOAD_SHA}; fi \
 | 
			
		||||
    && rm -f /tmp/library-scripts/gradle-debian.sh
 | 
			
		||||
 | 
			
		||||
# Switch back to dialog for any ad-hoc use of apt-get
 | 
			
		||||
ENV DEBIAN_FRONTEND=dialog
 | 
			
		||||
# [Optional] Install Node.js for use with web applications - update the INSTALL_NODE arg in devcontainer.json to enable.
 | 
			
		||||
ARG INSTALL_NODE="false"
 | 
			
		||||
ARG NODE_VERSION="lts/*"
 | 
			
		||||
ENV NVM_DIR=/usr/local/share/nvm
 | 
			
		||||
ENV NVM_SYMLINK_CURRENT=true \
 | 
			
		||||
    PATH=${NVM_DIR}/current/bin:${PATH}
 | 
			
		||||
COPY library-scripts/node-debian.sh /tmp/library-scripts/
 | 
			
		||||
RUN if [ "$INSTALL_NODE" = "true" ]; then /bin/bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "${NODE_VERSION}" "${USERNAME}"; fi \
 | 
			
		||||
    && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/node-debian.sh
 | 
			
		||||
 | 
			
		||||
# [Optional] Uncomment this section to install additional OS packages.
 | 
			
		||||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
 | 
			
		||||
#     && apt-get -y install --no-install-recommends <your-package-list-here>
 | 
			
		||||
		Reference in New Issue
	
	Block a user