Skip to content

Commit

Permalink
Add a docker environment to verify the plugin in a clean room
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed Feb 12, 2022
1 parent 5d5c562 commit a1e01df
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git/
.lsp/
.clj-kondo/
.cpcache/
2 changes: 2 additions & 0 deletions CONTRIBUTING.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions scripts/docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

docker build . -t conjure
docker run -ti --rm conjure

0 comments on commit a1e01df

Please sign in to comment.