Saleforce sfdx-cli docker image
334
1): Make sure to create open SSL certificate for digigtal signatue
openssl genrsa -des3 -passout pass:SomePassword -out server.pass.key 2048
openssl rsa -passin pass:SomePassword -in server.pass.key -out server.key
openssl req -new -key server.key -out server.csr
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
2): Upload server.crt in your Saleforce connected App setting
3): Save server.key in your GitLab project environment variable SERVER_KEY. GitLab CI/CD environment variables
4): Create environment variable in your GitLab project for SF_CONSUMER_KEY and SF_USERNAME (username that you to use in the CI)
Clone the repo git clone https://github.com/Adiii717/sfdx-gitlab-org.git
Build this docker image or use it from DockerHub
docker build -t adiii717/docker-sfdx-cli .
docker run adiii717/docker-sfdx-cli sfdx --help
If you want to run/test your local code
docker run -it --workdir=/app -v $PWD/:/app adiii717/docker-sfdx-cli
Now you're ready to go! Wwhen you commit and push a change, your change kicks off a GitLab CI build.
Enjoy!
If you find any issues or opportunities for improving this repository, fix them! Feel free to contribute to this project by forking this repository and making changes to the content. Once you've made your changes, share them back with the community by sending a pull request. See How to send pull requests for more information about contributing to GitHub projects.
If you find any issues with this demo that you can't fix, feel free to report them in the issues section of this repository.
Content type
Image
Digest
Size
122.5 MB
Last updated
over 5 years ago
docker pull adiii717/docker-sfdx-cli