Skip to content

Conversation

@dagguh
Copy link
Contributor

@dagguh dagguh commented Apr 5, 2019

No description provided.

dataset.database.start(jiraUri, it)
}
startJiraNode(jira.ssh, db.peerIp)
startJiraNode(jira.ssh.becomeUsable(), db.container.getContainerIpAddress())
Copy link
Contributor Author

@dagguh dagguh Apr 5, 2019

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

Copy link
Contributor Author

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 ->
Copy link
Contributor

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.

wyrzyk
wyrzyk previously approved these changes Apr 8, 2019
sebapawlak
sebapawlak previously approved these changes Apr 10, 2019
@dagguh dagguh dismissed stale reviews from sebapawlak and wyrzyk via 8ca81ea May 17, 2019 15:12
@dagguh dagguh force-pushed the issue/JPERF-445-switch-back-to-empowered-ssh-ubuntu branch from 2e2a260 to 8ca81ea Compare May 17, 2019 15:12
@dagguh
Copy link
Contributor Author

dagguh commented May 17, 2019

Resolved conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants