Skip to content

Commit

Permalink
JPERF-444: Avoid degradation-prone central Ubuntu servers
Browse files Browse the repository at this point in the history
  • Loading branch information
dagguh committed Apr 2, 2019
1 parent b94356b commit e7bfbd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Dropping a requirement of a major version of a dependency is a new contract.
- Add `SudoSshUbuntuImage`. Resolve [JPERF-445].
- Add `AutoCloseable` wrappers for some `docker-java` resources.

### Fixed
- Avoid degradation-prone central Ubuntu servers. Fix [JPERF-444].

[JPERF-444]: https://ecosystem.atlassian.net/browse/JPERF-444
[JPERF-445]: https://ecosystem.atlassian.net/browse/JPERF-445

## [0.1.0] - 2019-02-15
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ class SudoSshUbuntuImage(
authentication = PasswordAuthentication("root"),
port = sshPort
)
val debianMirror = "deb mirror://mirrors.ubuntu.com/mirrors.txt xenial main restricted universe multiverse"
val ssh = Ssh(sshHost)
ssh.newConnection().use {
it.execute("echo \"$debianMirror\\n\" > /etc/apt/sources.list")
it.execute("apt-get update", Duration.ofSeconds(50))
it.execute("apt-get install sudo")
}
Expand Down

0 comments on commit e7bfbd8

Please sign in to comment.