Skip to content

Commit 146079f

Browse files
committed
JPERF-444: Avoid degradation-prone central Ubuntu servers
1 parent c8044ad commit 146079f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Dropping a requirement of a major version of a dependency is a new contract.
3030
- Add `SudoSshUbuntuImage`. Resolve [JPERF-445].
3131
- Add `AutoCloseable` wrappers for some `docker-java` resources.
3232

33+
### Fixed
34+
- Avoid degradation-prone central Ubuntu servers. Fix [JPERF-444].
35+
36+
[JPERF-444]: https://ecosystem.atlassian.net/browse/JPERF-444
3337
[JPERF-445]: https://ecosystem.atlassian.net/browse/JPERF-445
3438

3539
## [0.1.0] - 2019-02-15

src/main/kotlin/com/atlassian/performance/tools/sshubuntu/api/SudoSshUbuntuImage.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ class SudoSshUbuntuImage(
8585
authentication = PasswordAuthentication("root"),
8686
port = sshPort
8787
)
88+
val debianMirror = "deb mirror://mirrors.ubuntu.com/mirrors.txt xenial main restricted universe multiverse"
8889
val ssh = Ssh(sshHost)
8990
ssh.newConnection().use {
91+
it.execute("echo \"$debianMirror\\n\" > /etc/apt/sources.list")
9092
it.execute("apt-get update", Duration.ofSeconds(50))
9193
it.execute("apt-get install sudo")
9294
}

0 commit comments

Comments
 (0)