Merge ~ubuntu-docker-images/ubuntu-docker-images/+git/telegraf:20.04-resync-with-21.04-dockerfile into ~ubuntu-docker-images/ubuntu-docker-images/+git/telegraf:edge
Status: | Merged |
---|---|
Merge reported by: | Sergio Durigan Junior |
Merged at revision: | c5daf2651e840c185fee14941482fae1a91887e9 |
Proposed branch: | ~ubuntu-docker-images/ubuntu-docker-images/+git/telegraf:20.04-resync-with-21.04-dockerfile |
Merge into: | ~ubuntu-docker-images/ubuntu-docker-images/+git/telegraf:edge |
Diff against target: |
73 lines (+31/-21) 1 file modified
Dockerfile (+31/-21) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergio Durigan Junior | Approve | ||
Canonical Server | Pending | ||
Review via email: mp+400152@code.launchpad.net |
Description of the change
This is a partial sync-up of the telegraf 20.04 branch to the changes on 21.04.
The build process for telegraf on 20.04 is substantially different from 21.04, so out of caution rather than copy the 21.04 Dockerfile and fixup, I manually made the corresponding refactoring changes but left the existing build system essentially as-is. Let me know if this should be done differently.
A few other things to call out. The 20.04 branch did not have a manifest, so I added the basic support there. However, the 21.04 image also had logic to include go packages. Is that needed here as well? I'm guessing the new golang-go and/or python dependencies were added for this?
In the 20.04 Dockerfile there is a "COPY . ." line that isn't in 21.04. I don't know what that does so left it in place, but can it be removed?
In building the image, I got an error regarding 'apt-get install ... /pkg/telegraf*.deb ...' due to "unsupported file given". Instead of using apt-get to install the .debs I used dpkg -i, and that seemed to resolve the issue.
With that change, I verified the branch builds the docker image successfully, locally. I'll appreciate your usual checking that it builds and runs ok for you too.
For ease of review of the remaining delta, here is a diff between the two Dockerfiles after my changes (and ignoring whitespace changes):
(Refreshed the pastebin)