-
Notifications
You must be signed in to change notification settings - Fork 16
JPERF-445: Use ssh-ubuntu instead of inlined Docker code
#7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
JPERF-445: Use ssh-ubuntu instead of inlined Docker code
#7
Conversation
| dataset.database.start(jiraUri, it) | ||
| } | ||
| startJiraNode(jira.ssh, db.peerIp) | ||
| startJiraNode(jira.ssh.becomeUsable(), db.container.getContainerIpAddress()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://circleci.com/gh/dagguh/virtual-users/60 :
Error while executing sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic
Hmm, the CopyPastedDocker fails to install on Ubuntu bionic. Before this PR we're using xenial
Raised: https://ecosystem.atlassian.net/browse/JPERF-449
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's the problem.
ssh-ubuntu is based on rastasheep, which only supports LTS Ubuntu versions, e.g. 16, 18.
infrastructure hardcodes Docker for Ubuntu 17, which is not LTS and therefore not available as rastasheep.
So we gotta unhardcode it from infra AKA https://ecosystem.atlassian.net/browse/JPERF-449 mentioned earlier.
|
|
||
| val dbContainer = SshUbuntuContainer(exposePort(3306)) | ||
| val jiraContainer = SshUbuntuContainer(exposePort(8080)) | ||
| return dbContainer.start().use { db -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an idea. We could avoid the nested containers by introducing a container that would allow registering all the docker containers:
val env = Environment()
env.register(dbContainer)
env.register(jiraContainer)
// env takes care to start and close containers in the right order
env.use{
}
It would be an overkill for two containers but it would improve readability for 3+ containers.
src/test/kotlin/com/atlassian/performance/tools/virtualusers/api/EntryPointIT.kt
Show resolved
Hide resolved
2e2a260 to
8ca81ea
Compare
|
Resolved conflicts |
No description provided.