Demonstrating the use of Salesforce DX with a Jenkins CI server.
Download the repo
$ git clone https://github.com/isalew/sfdx-ci-demo
$ cd sfdx-ci-demo
Build a docker image from the project Dockerfile
$ docker build -t isalew/sfdx-ci .
Execute a container from the docker image mapped to a local volume
$ docker run -d -p 8080:8080 -v ~/repos/sfdc/sfdx/repos/sfdx-ci-demo:/sfdx-ci-demo --name sfdx-ci isalew/sfdx-ci
Grab the initial admin password for Jenkins from the install logs
$ docker logs -f ci
# Copy the initial password from the log file
# Open jenkins at `http://localhost:8080`, enter the initial password, and setup your admin user
Setup ssh for easier git repository access
$ docker exec -it ci bash
$ root@########:/# cd ~/.ssh/
$ ssh-keygen -t rsa -C 'admin@sfdx-cli'
$ cat id_rsa.pub
# Copy the public key to your github repo