Sha256: 4f603c25b67cd9e84b9f15dd883fc743b26ed67735ff547ed2ee158fa77191d5

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

<%= render partial: "shared/header" -%>

##
# Builder image.
# Creates /workspace/gapic-generator-<%= gem_name %>.gem
# to be copied into the final runtime image.
##
FROM ruby:2.6-stretch as builder
WORKDIR /workspace

# Copy code from the local directory.
COPY . /workspace/

# Create a build of the gapic-generator-<%= gem_name %> gem from source.
RUN gem build -o gapic-generator-<%= gem_name %>.gem \
              gapic-generator-<%= gem_name %>.gemspec


##
# Runtime image.
# Installs the generator executables, common protos, and an entrypoint.
##
FROM ruby:2.6-stretch
WORKDIR /workspace

# Install common protos.
COPY --from=gcr.io/gapic-images/api-common-protos:beta /protos/ /workspace/common-protos/

# Copy gems from the builder.
COPY --from=builder /workspace/*.gem /workspace/

# Install the subgenerator and other needed tools.
RUN gem install --pre grpc-tools gapic-generator-<%= gem_name %>.gem \
    && rm gapic-generator-<%= gem_name %>.gem \
    && mkdir -p --mode=777 /.cache

# Install the entrypoint.
COPY ./docker-entrypoint.sh /workspace/entrypoint.sh
ENTRYPOINT ["/workspace/entrypoint.sh"]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gapic-generator-0.6.4 gem_templates/dockerfile.erb
gapic-generator-0.6.3 gem_templates/dockerfile.erb
gapic-generator-0.6.2 gem_templates/dockerfile.erb