diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..8eac777e --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.git/ +.lsp/ +.clj-kondo/ +.cpcache/ diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 4a5f4242..82be1da1 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -14,4 +14,6 @@ Your changes and evaluations only apply to the in memory copy of Conjure, use `m Once you're happy with your changes, you can (maybe) write some tests and execute them with `make test`. CircleCI will also run them for you. +You can run `scripts/docker.sh` to drop into a fresh Ubuntu based Neovim environment with Conjure pre-installed from your working directory. This can be used to verify your changes in a clean room environment. + If you'd like to contribute or are having issues please don't hesitate to get in touch with me (Olical / Oliver Caldwell) on twitter, email or Clojurians Slack. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..97e60928 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM ubuntu:21.10 + +RUN apt-get update +RUN apt-get upgrade -y +RUN apt-get install -y software-properties-common + +RUN add-apt-repository ppa:neovim-ppa/stable +RUN apt-get update +RUN apt-get install -y neovim + +ADD . /root/.local/share/nvim/site/pack/conjure/start/conjure + +CMD nvim diff --git a/scripts/docker.sh b/scripts/docker.sh new file mode 100755 index 00000000..b899fca8 --- /dev/null +++ b/scripts/docker.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +docker build . -t conjure +docker run -ti --rm conjure