This repository has been archived by the owner on Apr 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Dockerfile for Feb 22' release
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
Showing
3 changed files
with
85 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters