2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-02 09:40:27 +00:00
dotbare/tests/Dockerfile

11 lines
386 B
Docker

FROM bats/bats:latest
RUN apk add --no-cache git
RUN apk add --no-cache fzf
ADD ./ /root/dotbare
RUN echo "source /root/dotbare/dotbare.plugin.bash" >> "$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"]