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:
20
extras/Dockerfile
Normal file
20
extras/Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user