Permalink
Browse files

Clean up DockerFile

We don't need to copy the integration test directory (and the virtualenv). We can also have docker cache the transactor untar.
  • Loading branch information...
Scott Crosby authored and DaoWen committed Dec 27, 2018
1 parent c958f56 commit 0e4a95ac2fe0e5fa72afc3617d8d961cb4d473df
Showing with 5 additions and 5 deletions.
  1. +1 −2 integration/Dockerfile
  2. +4 −3 scheduler/Dockerfile
@@ -4,7 +4,6 @@ WORKDIR /opt/cook/integration
COPY requirements.txt /opt/cook/integration
ADD cli.tar.gz /opt/cook/cli/
RUN pip install -r requirements.txt
COPY . /opt/cook/integration


# Don't need to copy over the integration test files --- they're bind-mounted.
ENTRYPOINT ["pytest"]
@@ -35,11 +35,12 @@ WORKDIR /opt/cook
## with fetched dependencies as long as project.clj isn't modified
RUN lein deps

# Copy the whole scheduler into the container
COPY . /opt/cook/

# Datomic setup
COPY datomic /opt/cook/datomic
RUN unzip -uo /opt/cook/datomic/datomic-free-0.9.5394.zip

# Copy the whole scheduler into the container
COPY . /opt/cook/
RUN lein uberjar
RUN cp "target/cook-$(lein print :version | tr -d '"').jar" datomic-free-0.9.5394/lib/cook-$(lein print :version | tr -d '"').jar

0 comments on commit 0e4a95a

Please sign in to comment.