2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-04 06:00:45 +00:00
dotbare/tests/Dockerfile

11 lines
386 B
Docker
Raw Normal View History

2020-05-13 07:24:25 +00:00
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
2020-05-13 07:24:25 +00:00
WORKDIR /root/dotbare
2020-05-13 11:32:25 +00:00
ARG MIGRATE='url'
RUN [ "$MIGRATE" = 'url' ] && ./dotbare finit -u https://github.com/kazhala/dotfiles.git || :
2020-05-15 08:06:32 +00:00
RUN [ "$MIGRATE" = 'bare' ] && ./dotbare finit -y || :
2020-05-13 07:24:25 +00:00
ENTRYPOINT ["bats", "tests"]