diff --git a/Dockerfile b/Dockerfile index 7e93c8b..953baee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM ubuntu:20.10 +# Create symbolic link from sh to bash +RUN ln -sf bash /bin/sh # Install Node.js v14.x RUN apt-get update -qq && \ @@ -13,7 +15,7 @@ RUN apt-get update -qq && \ make \ libxkbcommon-x11-0 -RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - \ +RUN curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - \ && sudo apt-get install -qq nodejs @@ -64,11 +66,11 @@ RUN export XDG_DATA_HOME && \ # Install SFDX CLI RUN npm update -g && \ - npm install sfdx-cli@7.120.0 --global && \ - npm install vlocity@1.14.10 --global + npm install sfdx-cli@7.129.0 --global && \ + npm install vlocity@1.14.16 --global # Install sfdx plugins -RUN echo 'y' | sfdx plugins:install sfdmu@4.4.3 -RUN echo 'y' | sfdx plugins:install sfpowerkit@3.3.4 -RUN echo 'y' | sfdx plugins:install @dxatscale/sfpowerscripts@9.3.6 -RUN echo 'y' | sfdx plugins:install sfdx-browserforce-plugin@2.6.3 +RUN echo 'y' | sfdx plugins:install sfdmu@4.10.3 +RUN echo 'y' | sfdx plugins:install sfpowerkit@3.4.2 +RUN echo 'y' | sfdx plugins:install @dxatscale/sfpowerscripts@10.2.0 +RUN echo 'y' | sfdx plugins:install sfdx-browserforce-plugin@2.7.1 diff --git a/Nov21/Dockerfile b/Nov21/Dockerfile new file mode 100644 index 0000000..1bc1042 --- /dev/null +++ b/Nov21/Dockerfile @@ -0,0 +1,74 @@ +FROM ubuntu:20.10 + + +# Install Node.js v14.x +RUN apt-get update -qq && \ + DEBIAN_FRONTEND=noninteractive apt-get install -qq \ + curl \ + sudo \ + git \ + jq \ + zip \ + unzip \ + make \ + libxkbcommon-x11-0 + +RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - \ + && sudo apt-get install -qq nodejs + + +# Install OpenJDK-8 +RUN apt-get update -qq && \ + DEBIAN_FRONTEND=noninteractive \ + apt-get install -qq openjdk-8-jdk && \ + apt-get clean -qq && \ + rm -rf /var/cache/oracle-jdk8-installer && \ + rm -rf /var/lib/apt/lists/* + +ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ +RUN export JAVA_HOME + + +# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others) +# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer +# installs, work. +RUN apt-get update \ + && apt-get install -y wget gnupg \ + && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ + && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ + && apt-get update \ + && apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + + + +# Set XDG environment variables explicitly so that GitHub Actions does not apply +# default paths that do not point to the plugins directory +# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html +ENV XDG_DATA_HOME=/sfdx_plugins/.local/share +ENV XDG_CONFIG_HOME=/sfdx_plugins/.config +ENV XDG_CACHE_HOME=/sfdx_plugins/.cache + +# Create isolated plugins directory with rwx permission for all users +# Azure pipelines switches to a container-user which does not have access +# to the root directory where plugins are normally installed +RUN mkdir -p $XDG_DATA_HOME && \ + mkdir -p $XDG_CONFIG_HOME && \ + mkdir -p $XDG_CACHE_HOME && \ + chmod -R 777 sfdx_plugins + +RUN export XDG_DATA_HOME && \ + export XDG_CONFIG_HOME && \ + export XDG_CACHE_HOME + +# Install SFDX CLI +RUN npm update -g && \ + npm install sfdx-cli@7.120.0 --global && \ + npm install vlocity@1.14.10 --global + +# Install sfdx plugins +RUN echo 'y' | sfdx plugins:install sfdmu@4.4.3 +RUN echo 'y' | sfdx plugins:install sfpowerkit@3.3.4 +RUN echo 'y' | sfdx plugins:install @dxatscale/sfpowerscripts@9.3.12 +RUN echo 'y' | sfdx plugins:install sfdx-browserforce-plugin@2.6.3 diff --git a/README.md b/README.md index 6aea41a..9359850 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ # Supported tags and respective Dockerfile links -- [release-nov21, latest](https://github.com/dxatscale/docker-sfpowerscripts/blob/main/Dockerfile) +- [release-dec21, latest](https://github.com/dxatscale/docker-sfpowerscripts/blob/main/Dockerfile) +- [release-nov21](https://github.com/dxatscale/docker-sfpowerscripts/blob/main/Nov21/Dockerfile) - [release-oct21](https://github.com/dxatscale/docker-sfpowerscripts/blob/main/Oct21/Dockerfile) - [release-sep21](https://github.com/dxatscale/docker-sfpowerscripts/blob/main/Sep21/Dockerfile) - [release-aug21](https://github.com/dxatscale/docker-sfpowerscripts/blob/main/Aug21/Dockerfile)