2020-11-23 18:58:26 +00:00
|
|
|
FROM golang:1.15-buster as tg-build
|
2020-06-22 15:57:05 +00:00
|
|
|
|
|
|
|
ARG TESTGROUND_REF="oni"
|
|
|
|
WORKDIR /usr/src
|
|
|
|
RUN git clone https://github.com/testground/testground.git
|
|
|
|
RUN cd testground && git checkout $TESTGROUND_REF && go build .
|
|
|
|
|
2020-06-19 21:56:59 +00:00
|
|
|
FROM python:3.8-buster
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2020-06-22 15:57:05 +00:00
|
|
|
COPY --from=tg-build /usr/src/testground/testground /usr/bin/testground
|
|
|
|
|
2020-06-19 22:20:07 +00:00
|
|
|
RUN mkdir /composer && chmod 777 /composer
|
|
|
|
RUN mkdir /testground && chmod 777 /testground
|
2020-06-19 21:56:59 +00:00
|
|
|
|
2020-06-19 22:20:07 +00:00
|
|
|
ENV HOME /composer
|
|
|
|
ENV TESTGROUND_HOME /testground
|
|
|
|
ENV LISTEN_PORT 5006
|
2020-06-22 18:24:27 +00:00
|
|
|
ENV TESTGROUND_DAEMON_HOST host.docker.internal
|
2020-06-19 21:56:59 +00:00
|
|
|
|
|
|
|
VOLUME /testground/plans
|
|
|
|
|
|
|
|
|
2020-06-19 22:20:07 +00:00
|
|
|
COPY requirements.txt ./
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
|
2020-06-23 09:46:21 +00:00
|
|
|
CMD panel serve --address 0.0.0.0 --port $LISTEN_PORT composer.ipynb
|