├── Dockerfile ├── LICENSE └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | # node > 14.6.0 is required for the SFDX-Git-Delta plugin 2 | FROM node:lts-alpine 3 | 4 | #add usefull tools 5 | RUN apk add --update --no-cache \ 6 | coreutils \ 7 | git \ 8 | findutils \ 9 | bash \ 10 | unzip \ 11 | curl \ 12 | wget \ 13 | npm \ 14 | openjdk8-jre \ 15 | openssh-client \ 16 | perl \ 17 | jq 18 | 19 | # install Salesforce CLI from npm 20 | RUN npm install @salesforce/cli --global 21 | RUN sf --version 22 | 23 | # install SFDX-Git-Delta plugin - https://github.com/scolladon/sfdx-git-delta 24 | RUN echo y | sf plugins install sfdx-git-delta 25 | RUN sf plugins -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Mehdi Cherfaoui 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # sfdx-cli-gitlab 2 | Lightweight Docker image for CI with Salesforce DX. 3 | 4 | ⚠️ Please **do not reference the mehdisfdc/sfdx-cli-gitlab image on your CI/CD pipeline**, since this image may change at any time (which could break your pipeline). 5 | 6 | If you are interested in using this image, please fork this repo and then create your own public image on https://hub.docker.com/ (it's free and easy, as of early 2021). 7 | --------------------------------------------------------------------------------