2020-04-16 15:05:22 -04:00
|
|
|
FROM ubuntu:19.04
|
2019-11-07 13:27:22 -05:00
|
|
|
|
|
|
|
RUN apt-get update -qqy
|
|
|
|
RUN apt-get install -qqy openjdk-12-jre-headless
|
|
|
|
|
|
|
|
ARG port
|
|
|
|
ARG bucket
|
|
|
|
ARG token
|
|
|
|
|
|
|
|
ENV GCS_FIXTURE_PORT=${port}
|
|
|
|
ENV GCS_FIXTURE_BUCKET=${bucket}
|
|
|
|
ENV GCS_FIXTURE_TOKEN=${token}
|
|
|
|
|
|
|
|
ENTRYPOINT exec java -classpath "/fixture/shared/*" \
|
|
|
|
fixture.gcs.GoogleCloudStorageHttpFixture 0.0.0.0 "$GCS_FIXTURE_PORT" "$GCS_FIXTURE_BUCKET" "$GCS_FIXTURE_TOKEN"
|
|
|
|
|
2020-04-16 15:05:22 -04:00
|
|
|
EXPOSE $port
|