Additional settings

Setting up for Redis

Setting up for Gerrit accessing

After you register the email, you will receive an email which contains a link. Please copy the link to your browser to activate the account.
Create SSH keys

$./djenkins.sh attach

jenkins# sudo su -l -p jenkins

jenkins@Jenkins:~> ssh-keygen -t rsa

jenkins@Jenkins:~> cat .ssh/id_rsa.pub

after pressing the Enter key at several prompts, an SSH key-pair will be created in /root/.ssh/id_rsa.pub .
Upload SSH pubkey to Gerrit Click the links below to set up the Gerrit WebUI.
Settings --> SSH Public Keys --> Add Key...
Paste your SSH public key there, and then click 'Add'.
Verify your SSH connection You can verify your Gerrit connection by executing this command:
Make sure to add the server RSA key fingerprint to the known hosts of jenkins account if connect to gerrit server in the first time.
If your settings are correct, you'll see the message below.
If not, check SSH proxy and SSH public key on Gerrit.

Initialize

CLI

USAGE: ./djenkins.sh COMMAND
-e
Commands:
start Start a stopped container
attach Attach to a running container
stop Stop a running container
status Status a running container
rm Remove this containers
restart stop , start a container
kill Kill a running container
logs Fetch the logs of a container
cp Copy files/folders from a container's filesystem to the host path
pull Pull an image or a repository from a Docker registry server;
inspect Return low-level information on a containe
top Lookup the running processes of a container
save Save an image to a tar archive
load Load an image from a tar archive
help help