Sha256: ed090e9e741492d1532e135b3312d2b755dc83f9171c7a2af043b9dd32da7ef0

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

# Buld from ruby 2.7.5 image
FROM ruby:2.7.5 as build

LABEL name="emasser" \
      vendor="MITRE" \
      version="${EMASSER_VERSION}" \
      release="1" \
      url="https://github.com/mitre/emasser" \
      description="Emasser is a command-line interface (CLI) that aims to automate routine business use-cases and provide utility surrounding the Enterprise Mission Assurance Support Service (eMASS) by leveraging its representational state transfer (REST) application programming interface (API)." \
      docs="https://mitre.github.io/emasser/" \
      run="docker run -d --name ${NAME} ${IMAGE} <args>"

# Set the base directory that will be used from now on
WORKDIR /emasser

# Install dependency
RUN gem install bundler -v '2.3.5'
RUN apt update && apt install -y build-essential
COPY . .
RUN bundle install
# WORKDIR /emasser/emass_client/ruby_client
# RUN gem build emass_client.gemspec
WORKDIR /emasser
RUN gem build emasser.gemspec
RUN mkdir gems
# RUN mv emass_client/ruby_client/emass_client*.gem gems/emass_client.gem
RUN mv emasser*.gem gems/emasser.gem


FROM ruby:2-alpine

# Use the line below when testing creating the container locally
# RUN sed -i 's/https/http/g' /etc/apk/repositories
COPY --from=build /emasser/gems /emass-gems

# RUN apk add build-base libcurl && gem install /emass-gems/emass_client.gem && gem install /emass-gems/emasser.gem
RUN apk add build-base libcurl && gem install /emass-gems/emasser.gem

VOLUME [ "/data" ]
WORKDIR /data

ENTRYPOINT ["emasser"]

CMD ["-h"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emasser-3.4.1 Dockerfile