Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
tests/dockerfile: update base image (#629)
Browse files Browse the repository at this point in the history
Changes the base image to `mesosphere/marathon-lb:latest`. Since this
image requires a copy of `/marathon-lb`, reusing the existing image
instead of creating another one helps with caching. Also since the
latest `cassandra-driver` no longer works on `debian:jessie` and
`mesosphere/marathon-lb:latest` is already built upon `debian:buster`
using it as the base makes sense.
  • Loading branch information
jkoelker authored Mar 26, 2019
1 parent 4b2d8c0 commit 5a36f7e
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
FROM debian:jessie
FROM mesosphere/marathon-lb:latest

COPY . /marathon-lb

RUN apt-get update && apt-get install -y ruby apache2 vim curl ruby-dev build-essential \
RUN apt-get update && apt-get install -y curl gnupg \
&& echo "deb http://debian.datastax.com/community stable main" | tee -a /etc/apt/sources.list.d/cassandra.sources.list \
&& curl -L http://debian.datastax.com/debian/repo_key | apt-key add - \
&& apt-get update && apt-get install -y cassandra \
&& apt-get update \
&& apt-get install -y \
ruby \
apache2 \
vim \
ruby-dev \
build-essential \
cassandra \
&& gem install --no-ri --no-rdoc cassandra-driver \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

WORKDIR /marathon-lb

# NOTE(jkoelker) Clear out the entrypoint and cmd from the parent image
ENTRYPOINT []
CMD []

0 comments on commit 5a36f7e

Please sign in to comment.