Sign inSign up

adammbest/sfdx

By adammbest

•Updated 4 months ago

CICD Pipelines with Salesforce DX and related apps and plugins

Image
1

50K+

adammbest/sfdx repository overview

⁠DESCRIPTION

This docker image is used for a Salesforce CICD pipeline

⁠SUPPORTED TAGS

  • adammbest/sfdx:latest (same as adammbest/sfdx:1.10)
  • 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)
  • adammbest/sfdx:1.9 (@salesforce/cli 2.22.7, vlocity 1.17.6, Node 18.x. Updated 09 Jan 2024)
  • adammbest/sfdx:1.8 (@salesforce/cli 2.12.9, vlocity 1.17.4, Node 18.x. Updated 14 Oct 2023)
  • adammbest/sfdx:1.7 (sfdx-cli 7.208.10, @salesforce/cli 1.85.8, vlocity 1.17.2, Node 18.x. Updated 11 Jul 2023)
  • adammbest/sfdx:1.6 (sfdx-cli 7.204.6, @salesforce/cli 1.81.6, vlocity 1.17.2, Node 18.x. Updated 10 Jun 2023)
  • adammbest/sfdx:1.5 (sfdx-cli 7.188.1. Node 18.x. Updated 21 Feb 2023)
  • adammbest/sfdx:1.4 (sfdx-cli 7.181.1. Node 14.x. Updated 17 Dec 2022)
  • adammbest/sfdx:1.3 (sfdx-cli 7.171.0. Updated 24 Oct 2022)
  • adammbest/sfdx:1.2 (sfdx-cli 7.134.0. Added Azure CLI. Updated 13 Jul 2022)
  • adammbest/sfdx:1.1 (sfdx-cli 7.134.0)

⁠SAMPLE USAGE with Azure DevOps

##### 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

⁠WHO DO I TALK TO?

⁠DockerFile CONTENTS (latest)


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


Tag summary

Content type

Image

Digest

sha256:606a5a760…

Size

1.2 GB

Last updated

4 months ago

docker pull adammbest/sfdx:cicd.1.11