CICD Pipelines with Salesforce DX and related apps and plugins
50K+
This docker image is used for a Salesforce CICD pipeline
##### Microsoft Hosted Agents with Public Docker Image #####
pool:
vmImage: "ubuntu-latest"
container: adammbest/sfdx:latest
##### Microsoft Hosted Agents with Azure Container Registry Image #####
pool:
vmImage: "ubuntu-latest"
container:
image: resourcegroup.azurecr.io/shareddevelopment:123456
#image: $(ACR_CONTAINER_IMAGE)
endpoint: ACRConnectionName
FROM ubuntu:20.04
####### Install Node.js v14.x #######
RUN apt-get clean && \
apt-get autoremove && \
apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -qq \
curl \
sudo \
git \
jq \
zip \
unzip \
rsync \
libxml2-utils \
make \
libxkbcommon-x11-0 && \
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - \
&& sudo apt-get install -qq nodejs
####### Install yarn & OpenJDK-8 #######
#######RUN echo 'y' | apt-get -o Dpkg::Options::="--force-overwrite" install yarn
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
RUN apt-get install -y gnupg && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install --no-install-recommends yarn && \
yarn -v && \
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/* && \
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 && \
export XDG_DATA_HOME && \
export XDG_CONFIG_HOME && \
export XDG_CACHE_HOME
####### Install SF CLIs, Plugins, Azure CLI #######
# adammbest/sfdx:1.10 (@salesforce/cli 2.25.7, vlocity 1.17.6, @provartesting/provardx 0.3.2, Node 18.x. Updated 31 Jan 2024)
RUN npm update -g && \
npm install @salesforce/cli --global && \
npm install vlocity --global && \
echo 'y' | sfdx plugins:install sfdmu && \
echo 'y' | sfdx plugins:install sfdx-browserforce-plugin && \
echo "y" | sfdx plugins:install sfdx-git-delta && \
echo "y" | sfdx plugins:install community && \
echo "y" | sfdx plugins:install @provartesting/provardx && \
sfdx plugins:install @salesforce/sfdx-scanner && \
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash && \
az config set extension.use_dynamic_install=yes_without_prompt
Content type
Image
Digest
sha256:606a5a760…
Size
1.2 GB
Last updated
4 months ago
docker pull adammbest/sfdx:cicd.1.11