Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Commit

Permalink
Issue-78 Make host docker ip configurable by env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-at-linagora authored and Luc DUZAN committed Oct 13, 2017
1 parent 965ee97 commit 104c78b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ You have to modify the env.file file with the following parameters:
- __DOCKER_USER__: is the Docker Hub user used to publish the build, see publishing section (ex. myuser) +
If not given, publishing to Docker Hub will not be enabled.
- __DOCKER_PASSWORD__: is the password of the Docker Hub user
- __DOCKER_HOST__: Ip that the jenkins-docker can reach to connect to the host docker by tls

Then, you can open it in your browser :

Expand Down
3 changes: 3 additions & 0 deletions env.file
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ GITHUB_TOKEN=token
# Credentials used for publishing image on docker hub (not mandatory)
#DOCKER_USER=user
#DOCKER_PASSWORD=pass

# Ip that the jenkins-docker can reach to connect to the host docker by tls
DOCKER_HOST=ip.of.the.host
2 changes: 1 addition & 1 deletion workflow-job
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.kohsuke.github.GHRepository
// $repoURL parameter : specifies the commiter GitHub repo URL
// $sha1 parameter : specifies the actual commit

def dockerIp = '62.210.100.33'
def dockerIp = System.getenv("DOCKER_HOST")
def continuousDeploymentDockerIp = '62.210.101.42'
def continuousDeploymentConfigurationPath = '/root/james/conf'
def hostname = 'james.linagora.com'
Expand Down

0 comments on commit 104c78b

Please sign in to comment.