-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (54 loc) · 1.78 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM salesforce/cli:2.28.6-full
ENV SHELL /bin/bash
ENV DEBIAN_FRONTEND=noninteractive
#ARG SALESFORCE_CLI_VERSION=7.203.6
ARG SF_CLI_VERSION=2.28.6
ARG CUMULUSCI_VERSION=3.84.2
# Basic
RUN apt update
RUN echo y | apt install software-properties-common
# Get Git >= 2.18 : actions/checkout@v2 says "To create a local Git repository instead, add Git 2.18 or higher to the PATH"
RUN add-apt-repository -y ppa:git-core/ppa
RUN apt-get update
RUN apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*
# Install Python 3.10
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt update
RUN echo y | apt install python3.10
# Install Pip
RUN echo y | apt install python3.10-distutils
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
# Install Cumulus CI
RUN pip3 install --no-cache-dir cumulusci==${CUMULUSCI_VERSION}
# Install SFDX plugins
RUN echo y | sfdx plugins:install [email protected]
#RUN echo y | sfdx plugins:install @dxatscale/[email protected]
# Install prettier
#ARG NODEJS_VERSION=12.15.0-r1
#ARG PRETTIER_VERSION
#RUN set -x && \
# apk add --no-cache nodejs=${NODEJS_VERSION} nodejs-npm=${NODEJS_VERSION} && \
# npm install -g prettier@${PRETTIER_VERSION} && \
# npm cache clean --force && \
# apk del nodejs-npm
RUN set -x && \
(curl -sL https://deb.nodesource.com/setup_20.x | bash) && \
apt-get install --no-install-recommends nodejs && \
rm -rf /var/lib/apt/lists/* && \
npm install -g prettier@${PRETTIER_VERSION} && \
npm cache clean --force
# Installed versions
RUN set -x && \
node -v && \
npm -v && \
git --version && \
python3 --version && \
pip3 --version && \
cci version && \
sfdx --version && \
sf version && \
sfdx plugins --core && \
prettier -v
ENV SFDX_CONTAINER_MODE true
ENV DEBIAN_FRONTEND=dialog