Skip to content

Commit

Permalink
Install gh by apk (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Jul 16, 2024
1 parent 151b847 commit 171c3d5
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@

ARG ALPINE_VERSION=3.17

# ========================================
FROM alpine:${ALPINE_VERSION} as gh-downloader

RUN wget https://github.com/cli/cli/releases/download/v2.29.0/gh_2.29.0_linux_amd64.tar.gz -O - \
| tar xzfv - \
&& mv gh_* gh

# ========================================
FROM alpine:${ALPINE_VERSION}
ARG ALPINE_VERSION=3.17
Expand All @@ -30,6 +23,7 @@ RUN apk add --no-cache \
curl \
findutils \
git \
github-cli \
py3-pip \
py3-rosdep \
py3-rosinstall-generator \
Expand All @@ -42,10 +36,6 @@ RUN rosdep init \
&& sed -i -e 's|ros/rosdistro/master|alpine-ros/rosdistro/alpine-custom-apk|' \
/etc/ros/rosdep/sources.list.d/20-default.list

# TODO: use `apk add --no-cache gh` after dropping Melodic
COPY --from=gh-downloader /gh/bin/gh /usr/local/bin/
RUN gh --version

ENV HOME="/root"

ARG ROS_DISTRO="noetic"
Expand Down

0 comments on commit 171c3d5

Please sign in to comment.