Skip to content

Running alternative versions branches in a Docker container

Thijs Cobben edited this page Nov 21, 2017 · 12 revisions
  1. Running different versions within a docker container =======================================================

    • checkout the version you want from git to a folder

    • from there you run

      $ docker build -t "image_name" -f dockerize/Dockerfile .

    • checkout the dockerize repository (link see below)

    • In the docker-compose.yml file, change the "b2share" container's image line to build and reference the new image name.

    Example: Change this

     image: eudatb2share/b2share:2.0.1
    

    to this

     image: image_name
    

    where "image_name" is the string that you provided in the docker build command above. Now you can run docker-compose up from that directory.