rubygems-bundler
SUCCESS
6m 42s
History Source
SummaryIterations1Transcript6Dockerfile
01Iteration 1
WRITEWriteFile· step #1
0s
Dockerfile696 bytes written
text26 lines · 696 chars
# Generated by BuildAgent based on repository context.
# Builds Bundler from source using a slim Ruby base image.

FROM ruby:slim-bookworm

# Install system dependencies required for building Bundler and optional tooling.
RUN apt-get update -y \
  && apt-get install -y --no-install-recommends graphviz \
  && rm -rf /var/lib/apt/lists/*

# Set a working directory for the build context
WORKDIR /work

# Copy source code into the image
COPY . /work

# Build Bundler from source and install the produced gem
RUN gem build bundler.gemspec \
  && gem install bundler-*.gem

# Verify the installation
RUN bundler -v

# Default command: show Bundler version when container starts
CMD ["bundle", "-v"]
WRITEWriteFile· step #2
0s
.dockerignore114 bytes written
dockerignore12 lines · 114 chars
# Ignore VCS and dependency directories
.git
node_modules
vendor/bundle
.bundle
*.gem
*.o
*.so
.DS_Store
.env
"""
VERIFYVerifyBuild· step #3
1m 27s
VerifyBuildsmoke_failed
Smoke [FAIL]: ruby -e 'puts RUBY_VERSION
  Output: sh: 1: Syntax error: Unterminated quoted string

Smoke [FAIL]: ruby -e 'require \"bundler\"; puts Bundler::VERSION
  Output: sh: 1: Syntax error: Unterminated quoted string

Smoke [PASS]: test -f /work/bundler.gemspec && echo ok || echo missing
READReadFile· step #4
0s
Dockerfile696 chars · 26 lines
text26 lines · 696 chars
# Generated by BuildAgent based on repository context.
# Builds Bundler from source using a slim Ruby base image.

FROM ruby:slim-bookworm

# Install system dependencies required for building Bundler and optional tooling.
RUN apt-get update -y \
  && apt-get install -y --no-install-recommends graphviz \
  && rm -rf /var/lib/apt/lists/*

# Set a working directory for the build context
WORKDIR /work

# Copy source code into the image
COPY . /work

# Build Bundler from source and install the produced gem
RUN gem build bundler.gemspec \
  && gem install bundler-*.gem

# Verify the installation
RUN bundler -v

# Default command: show Bundler version when container starts
CMD ["bundle", "-v"]
WRITEWriteFile· step #5
0s
Dockerfile799 bytes written
text29 lines · 799 chars
# Generated by BuildAgent based on repository context.
# Builds Bundler from source using a slim Ruby base image.

FROM ruby:slim-bookworm

# Use bash as the default shell to improve quoting behavior in smoke tests
SHELL ["/bin/bash", "-lc"]

# Install system dependencies required for building Bundler and optional tooling.
RUN apt-get update -y \
  && apt-get install -y --no-install-recommends graphviz \
  && rm -rf /var/lib/apt/lists/*

# Set a working directory for the build context
WORKDIR /work

# Copy source code into the image
COPY . /work

# Build Bundler from source and install the produced gem
RUN gem build bundler.gemspec \
  && gem install bundler-*.gem

# Verify the installation
RUN bundler -v

# Default command: show Bundler version when container starts
CMD ["bundle", "-v"]
VERIFYVerifyBuild· step #6
1m 08s
VerifyBuildaccepted
Smoke [PASS]: bundle -v
Smoke [PASS]: ruby -v