2019-03-04 23:52:53 +00:00
|
|
|
ARG bashver=latest
|
|
|
|
|
|
|
|
FROM bash:${bashver}
|
2022-01-17 13:58:05 +00:00
|
|
|
ARG TINI_VERSION=v0.19.0
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
|
|
|
|
COPY ./docker /tmp/docker
|
|
|
|
# default to amd64 when not running in buildx environment that provides target platform
|
|
|
|
RUN /tmp/docker/install_tini.sh "${TARGETPLATFORM-linux/amd64}"
|
|
|
|
|
2019-03-04 23:52:53 +00:00
|
|
|
|
2021-05-03 12:43:04 +00:00
|
|
|
# Install parallel and accept the citation notice (we aren't using this in a
|
|
|
|
# context where it make sense to cite GNU Parallel).
|
|
|
|
RUN apk add --no-cache parallel ncurses && \
|
|
|
|
mkdir -p ~/.parallel && touch ~/.parallel/will-cite
|
2019-03-04 23:52:53 +00:00
|
|
|
|
2021-05-03 12:43:04 +00:00
|
|
|
RUN ln -s /opt/bats/bin/bats /usr/local/bin/bats
|
2019-03-04 23:52:53 +00:00
|
|
|
COPY . /opt/bats/
|
|
|
|
|
2022-01-17 13:58:05 +00:00
|
|
|
RUN mkdir -p /code
|
2021-05-03 12:43:04 +00:00
|
|
|
WORKDIR /code/
|
|
|
|
|
2022-01-17 13:58:05 +00:00
|
|
|
ENTRYPOINT ["/tini", "--", "bash", "bats"]
|