@cryptotaxi247 / netdata-1 / commits / 0b33dd6f1

Updated Polyverse reinstall commands in Dockerfile (#5173)

The problem: After this PR was merged (https://github.com/netdata/netdata/pull/5137), we noticed on our end that the default Polyverse install script had room for improvement to ensure there's reliability. To be more specific, we noticed that while we only expose x86_64 packages, we noticed a pull to an x86 (32-bit package) that was not expected. What this meant was, during our first update, we were completely removing existing mirrors/packages in the install script. The fix: Our install script now merely comments out the existing repos/mirrors. The install instructions then merely update/upgrade all packages in-place, this preferring our packages as a priority, and the final command uncomments all the other mirrors/repos that may exist. The outcome: Due to this step, ALL existing repos stay on the host after Polymorphic repositories are sbuscribed. Everything works as expected. However, the host will prefer Polymorphic repositories above others.

Archis committed Jan 14, 2019 at 13:44 UTC 0b33dd6f15d199b4e5c200acb7fae8812307cb8a
1 file changed +4 -2
packaging/docker/Dockerfile
+4 -2
@@ -73,8 +73,10 @@ RUN apk --no-cache add curl \
73
74 # Subscribe to Polyverse's Polymorphic Linux repositories and reinstall all packages, so they are scrambled
75 RUN curl https://sh.polyverse.io | sh -s install gcxce5byVQbtRz0iwfGkozZwy support+netdata@polyverse.io && \
76 - sed -n -i '/repo.polyverse.io/p' /etc/apk/repositories && \
77 - apk upgrade --update-cache --available
76 + apk update && \
77 + apk upgrade --available --no-cache && \
78 + sed -in 's/^#//g' /etc/apk/repositories
79 +
80
81 # Copy files over
82 COPY --from=builder /app /