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"]
|
12
extras/bashrc
Normal file
12
extras/bashrc
Normal file
@@ -0,0 +1,12 @@
|
||||
# If not running interactively, don't do anything
|
||||
[ -z "$PS1" ] && return
|
||||
|
||||
export HISTTIMEFORMAT="%d/%m/%y %T "
|
||||
export PS1='\u@\h:\W \$ '
|
||||
alias l='ls -CF'
|
||||
alias la='ls -A'
|
||||
alias ll='ls -alF'
|
||||
alias ls='ls --color=auto'
|
||||
source /etc/profile.d/bash_completion.sh
|
||||
export PS1="\[\e[31m\][\[\e[m\]\[\e[38;5;172m\]\u\[\e[m\]@\[\e[38;5;153m\]\h\[\e[m\] \[\e[38;5;214m\]\W\[\e[m\]\[\e[31m\]]\[\e[m\]\\$ "
|
||||
|
Reference in New Issue
Block a user