2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-06 09:20:25 +00:00
dotbare/tests/Dockerfile
2020-05-15 18:06:32 +10:00

11 lines
370 B
Docker

FROM bats/bats:latest
RUN apk add --no-cache git
RUN apk add --no-cache fzf
ADD ./ /root/dotbare
RUN echo "PATH=$PATH:$HOME/dotbare" >> "$HOME"/.bashrc
WORKDIR /root/dotbare
ARG MIGRATE='url'
RUN [ "$MIGRATE" = 'url' ] && ./dotbare finit -u https://github.com/kazhala/dotfiles.git || :
RUN [ "$MIGRATE" = 'bare' ] && ./dotbare finit -y || :
ENTRYPOINT ["bats", "tests"]