First pass at a dockerized toolchain.

I've seen a lot more failures. Compose is not the latest. It seems to
sort of work. We should probably parameterize Docker and Compose
versions to ensure we're installing a consistent toolchain.

Signed-off-by: Chad Metcalf <chad@docker.com>
This commit is contained in:
Chad Metcalf
2020-08-11 09:20:46 -07:00
parent 199da87b3b
commit 3d1fb4c9a4
3 changed files with 47 additions and 1 deletions

20
extras/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM docker:19.03
ARG UID
ARG GID
RUN apk update && apk add bash bash-completion gawk make netcat-openbsd docker-compose findutils git curl && \
rm -rf /var/lib/apt/lists/* && \
rm /var/cache/apk/* && \
addgroup -S -g $GID awesome && adduser -S -G awesome -u $UID awesome && \
ln -s /opt/bats/bin/bats /usr/local/bin/bats && \
git clone --depth 1 --branch v1.2.1 https://github.com/bats-core/bats-core.git /opt/bats
COPY bashrc /home/awesome/.bashrc
USER awesome
VOLUME /code
WORKDIR /code
ENTRYPOINT ["bash"]