Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Commit

Permalink
Create Dockerfile for Feb 22' release
Browse files Browse the repository at this point in the history
sfdx-cli v7.136.2
vlocity v1.14.19
browserforce v2.8.0
sfdmu v4.12.7
sfpowerkit v4.1.3
sfpowerscripts v10.2.13
  • Loading branch information
aly76 committed Feb 9, 2022
1 parent 05dd3cb commit 3bd172a
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 7 deletions.
77 changes: 77 additions & 0 deletions Dec21/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
FROM ubuntu:20.04

# Create symbolic link from sh to bash
RUN ln -sf bash /bin/sh

# 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 -fsSL 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 && \
# use yarn, as npm v6 is affected by caching issue
npm install --global yarn && \
yarn global add sfdx-cli@7.129.0 && \
yarn global add vlocity@1.14.16

# Install sfdx plugins
RUN echo 'y' | sfdx plugins:install sfdx-browserforce-plugin@2.7.1
RUN echo 'y' | sfdx plugins:install sfdmu@4.4.3
RUN echo 'y' | sfdx plugins:install sfpowerkit@4.0.1
RUN echo 'y' | sfdx plugins:install @dxatscale/sfpowerscripts@10.2.7
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ RUN export XDG_DATA_HOME && \
RUN npm update -g && \
# use yarn, as npm v6 is affected by caching issue
npm install --global yarn && \
yarn global add sfdx-cli@7.129.0 && \
yarn global add vlocity@1.14.16
yarn global add sfdx-cli@7.136.2 && \
yarn global add vlocity@1.14.19

# Install sfdx plugins
RUN echo 'y' | sfdx plugins:install sfdx-browserforce-plugin@2.7.1
RUN echo 'y' | sfdx plugins:install sfdmu@4.4.3
RUN echo 'y' | sfdx plugins:install sfpowerkit@4.0.1
RUN echo 'y' | sfdx plugins:install @dxatscale/sfpowerscripts@10.2.7
RUN echo 'y' | sfdx plugins:install sfdx-browserforce-plugin@2.8.0
RUN echo 'y' | sfdx plugins:install sfdmu@4.12.7
RUN echo 'y' | sfdx plugins:install sfpowerkit@4.1.3
RUN echo 'y' | sfdx plugins:install @dxatscale/sfpowerscripts@10.2.13
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

# Supported tags and respective Dockerfile links

- [release-dec21, latest](https://github.com/dxatscale/docker-sfpowerscripts/blob/main/Dockerfile)
- [release-feb22, latest](https://github.com/dxatscale/docker-sfpowerscripts/blob/main/Dockerfile)
- [release-dec21](https://github.com/dxatscale/docker-sfpowerscripts/blob/main/Dec21/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)
Expand Down

0 comments on commit 3bd172a

Please sign in to comment.