aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 156 forks source link

Update ubuntu to version 20.04 in Dockerfile and travis.yml #716

Closed mercimat closed 4 years ago

mercimat commented 4 years ago

Building docker using "ubuntu:disco" as base image currently fails, now that 19.04 has reached end-of-life.

E: The repository 'http://security.ubuntu.com/ubuntu disco-security Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu disco Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu disco-updates Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu disco-backports Release' does not have a Release file.
The command '/bin/sh -c apt-get -q update && apt-get -q -y install     make     git     curl     wget     libpcap-dev     libelf-dev     hugepages      libnuma-dev     libhyperscan-dev     liblua5.3-dev     libmnl-dev     libibverbs-dev' returned a non-zero code: 100
The command "docker build --build-arg https_proxy=${https_proxy} -t test-disco ." failed and exited with 100 during .

This PR suggests a way to fix this by using Ubuntu focal (20.04) instead, as it's the latest LTS release. Another option could be to use Ubuntu eoan (19.10) but the issue would come back in a few months.

In Ubuntu 20.04, the hugepages package is replaced by libhugetlbfs-bin it seems.

E: Unable to locate package hugepages
The command '/bin/sh -c apt-get -q update && apt-get -q -y install     make     git     curl     wget     libpcap-dev     libelf-dev     hugepages     libnuma-dev     libhyperscan-dev     liblua5.3-dev     libmnl-dev     libibverbs-dev' returned a non-zero code: 100

https://launchpad.net/ubuntu/focal/+package/libhugetlbfs-bin https://launchpad.net/ubuntu/focal/+package/hugepages

aregm commented 4 years ago

@mercimat thanks for PR

mercimat commented 4 years ago

@aregm Thanks for your feedback. I see that the PR got approved, but closed without being merged. Is that expected ?

aregm commented 4 years ago

Corrected - thanks.