Class GitContainer
java.lang.Object
org.jenkinsci.test.acceptance.docker.DockerContainer
org.jenkinsci.test.acceptance.docker.fixtures.GitContainer
- All Implemented Interfaces:
 Closeable,AutoCloseable
- Direct Known Subclasses:
 JavaGitContainer
public class GitContainer
extends org.jenkinsci.test.acceptance.docker.DockerContainer
Runs gitserver container.
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddBracketsIfNeeded(String host) voidaddSSHCertificate(String pubKey) Add an additional certificate to~/.ssh/authorized_keysURL visible from the host.Deprecated.getRepoUrlInsideDocker(String alias) URL visible from other Docker containers.getUrl()host()intport()Methods inherited from class org.jenkinsci.test.acceptance.docker.DockerContainer
assertRunning, close, cp, getCid, getIpAddress, getLogfile, getPid, inspect, ipBound, ipUdpBound, ipv6Enabled, port, resource, sharingHostDockerService, toString, udpPort 
- 
Field Details
- 
REPO_DIR
- See Also:
 
 - 
REPO_NAME
- See Also:
 
 
 - 
 - 
Constructor Details
- 
GitContainer
public GitContainer() 
 - 
 - 
Method Details
- 
host
 - 
port
public int port() - 
getUrl
- Throws:
 IOException
 - 
getRepoUrl
URL visible from the host.- Throws:
 MalformedURLException
 - 
getRepoUrlInsideDocker
Deprecated.- Throws:
 IOException
 - 
getRepoUrlInsideDocker
URL visible from other Docker containers.- Parameters:
 alias- an alias for this container’sDockerContainer.getCid()passed to--link- Throws:
 IOException
 - 
addSSHCertificate
Add an additional certificate to~/.ssh/authorized_keys- Parameters:
 pubKey- the certificate public key- Throws:
 IOExceptionInterruptedException
 - 
addBracketsIfNeeded
- Throws:
 MalformedURLException
 
 -