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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
addBracketsIfNeeded
(String host) void
addSSHCertificate
(String pubKey) Add an additional certificate to~/.ssh/authorized_keys
URL visible from the host.Deprecated.getRepoUrlInsideDocker
(String alias) URL visible from other Docker containers.getUrl()
host()
int
port()
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:
IOException
InterruptedException
-
addBracketsIfNeeded
- Throws:
MalformedURLException
-