docker configuration - devonfw/production-line GitHub Wiki
In order to execute this template, you need the following plugins installed in your Jenkins:
|
β
|
The initialize instance template will install all plugins if you select 'Docker' or 'Docker+Openshift' in the installDeploymentPlugins parameter
|
This template will be automatically created in your jenkins after executing the Initialize_Instance template inside the UTILS folder with the name Docker_Configuration.
For manual creation see: How to add a Template
|
β
|
This template needs the devonfw Production Line Shared Lib |
The only parameter required is remote docker daemon URL. Example: tcp://127.0.0.1:2367
|
β
|
You need to expose the docker daemon manually in your machine. Here you can find how to do it |
|
|
This configuration requires that the docker daemon has no security. Itβs prepared for development environments, for production environments please add security to your docker daemon. |
-
Press the Build with Parameters button
-
Insert remote docker daemon URL.
-
Press the
Buildbutton. -
Wait until the pipeline ends.
Then, you can see that the docker is configured and the remote docker daemon environment variable is set:
The environment variable is configured globally, if you want to use another remote docker daemon for a specific build, you can override the DOCKER_HOST environment variable in your job.
If the DOCKER_HOST is already configured globally, when you execute again this template the value will not be changed. You need to change the value manually at: Jenkins β Manage Jenkins β Configure System β Global properties