2020-04-17 16:13:45 -04:00
|
|
|
FROM ubuntu:18.04
|
2019-11-07 13:27:22 -05:00
|
|
|
|
|
|
|
RUN apt-get update -qqy
|
2020-04-17 16:13:45 -04:00
|
|
|
RUN apt-get install -qqy openjdk-11-jre-headless
|
2019-11-07 13:27:22 -05:00
|
|
|
|
|
|
|
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-17 16:13:45 -04:00
|
|
|
EXPOSE $port
|