Skip to content

Commit

Permalink
replace deprecated apt-key command
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed May 10, 2024
1 parent 696077d commit dfa5764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ ENV MKR_INSTALL_PLUGINS json

RUN apt-get update -yq && \
apt-get install -yq --no-install-recommends curl gnupg2
RUN echo "deb [arch=amd64,arm64] http://apt.mackerel.io/v2/ mackerel contrib" > /etc/apt/sources.list.d/mackerel.list
RUN curl -LfsS https://mackerel.io/file/cert/GPG-KEY-mackerel-v2 | apt-key add -
RUN curl -sS https://mackerel.io/file/cert/GPG-KEY-mackerel-v2 | sudo gpg --dearmor -o /etc/apt/keyrings/mackerel.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/mackerel.gpg] http://apt.mackerel.io/v2/ mackerel contrib" > /etc/apt/sources.list.d/mackerel.list

RUN apt-get update -yq && \
apt-get install -yq --no-install-recommends mackerel-agent-plugins mackerel-check-plugins mkr && \
Expand Down

0 comments on commit dfa5764

Please sign in to comment.