Skip to content

Commit

Permalink
add inital docs for working with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Oct 5, 2015
1 parent d5ce813 commit a0a760c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 1,7 @@
FROM clojure
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY project.clj /usr/src/app/
RUN lein deps
COPY . /usr/src/app
CMD lein run clojush.problems.demos.simple-regression
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 24,7 @@ http://clojure.org/. The current version of Clojush requires Clojure 1.5.1.
Clojure is available for most OS platforms. [A good starting point for
obtaining and using Clojure](http://dev.clojure.org/display/doc/Getting Started).


Quickstart
----------

Expand Down Expand Up @@ -61,6 62,16 @@ Clojure such as Clooj or Eclipse/Counterclockwise, load one of the
files in src/clojush/problems into the IDE's REPL, type "(pushgp argmap)"
into the REPL's input area, and hit the enter key.

You can also use [Docker](https://docs.docker.com/) to run examples, if you
don't want to install Clojure on your machine directly.

```bash
# first build the image. This needs to be re-done if any of the code changes
docker build -t lspector/clojush .
# then run it on a specific problem
docker run --rm lspector/clojush lein run clojush.problems.demos.simple-regression
```

For large-scale runs you may want to provide additional arguments to
Java in order to allow access to more memory and/or to take maximal
advantage of Clojure's concurrency support in the context of Clojush's
Expand Down

0 comments on commit a0a760c

Please sign in to comment.