Skip to content

Commit

Permalink
api: Specify ruby bundler for api gen
Browse files Browse the repository at this point in the history
This patch updates the Dockerfile used to generate API bindings to
specify an explicit version of the Ruby bundler program. This is
required since an older version of Ruby is used as the newer ones
are not compatible with the API generation code.

Signed-off-by: akutz <andrew.kutz@broadcom.com>
  • Loading branch information
akutz committed Jan 2, 2025
1 parent f238201 commit 4b7d0c5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions gen/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ ENV PATH="/root/.rbenv/shims:${PATH}" \
RUN apt-get install -y rbenv && \
rbenv install 2.7.6 && \
rbenv rehash && \
rbenv global 2.7.6 && \
gem install bundler
rbenv global 2.7.6

RUN gem install bundler -v 2.4.22


## --------------------------------------
Expand All @@ -71,6 +72,11 @@ WORKDIR /govmomi/gen
## --------------------------------------

COPY Gemfile Gemfile.lock .
RUN go install golang.org/x/tools/cmd/goimports@latest && \
bundle update --bundler && \
bundle install
RUN bundle update --bundler && bundle install


## --------------------------------------
## Install goimports to forma gen'd files
## --------------------------------------

RUN go install golang.org/x/tools/cmd/goimports@latest

0 comments on commit 4b7d0c5

Please sign in to comment.