Sign inSign up

proteinevolution/toolkit-docker

By proteinevolution

•Updated about 6 years ago

The official docker images for the MPI Bioinformatics Toolkit. https://toolkit.tuebingen.mpg.de

Image
0

885

proteinevolution/toolkit-docker repository overview

⁠Toolkit Backend Docker Image

Dockerfile for the toolkit's backend docker image. It should be built automatically by DockerHub.

To build it manually, run: docker image build -t "proteinevolution/toolkit-docker:1.3.0" -t "proteinevolution/toolkit-docker:latest" --build-arg MAXMIND_LICENSE="<LICENSE>" .

To push the image, run: docker push proteinevolution/toolkit-docker:latest

⁠Using image with docker file

The most minimal docker-compose.yml file is:

version: '3.7'
services:
  sbt:
    image: proteinevolution/toolkit-docker:latest
    volumes:
      - .:/toolkit

But it's not optimal if you have anything cached in ~/ivy2 which most probably you do if you develop Scala. To benefit from caching; thus reducing startup time, use the following:

version: '3.7'
services:
  sbt:
    image: proteinevolution/toolkit-docker:latest
    volumes:
      - .:/toolkit
      - ~/.ivy2:/root/.ivy2
      - ~/.sbt:/root/.sbt
      - ~/.coursier:/root/.coursier

It's still the minimal version; in real project you will probably need to expose ports etc.

⁠Overriding CMD

By default (i.e. if you don't provide CMD in your docker run or docker-compose.yml) it will run sbt's shell. It's a reasonable default because from there you can invoke any SBT task you want.

If default does not fit your needs then override CMD in either docker run or docker-compose.yml. Example:

docker run -v :.:/toolkit proteinevolution/toolkit-docker:latest projects test:compile

Here we also used ability to "chain" sbt commands.

Tag summary

Content type

Image

Digest

Size

879.9 MB

Last updated

about 6 years ago

docker pull proteinevolution/toolkit-docker