Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Return to the main docker folder

    Code Block
    languagebash
    cd ..


  • Change directory to scsb-solr-server

    Code Block
    languagebash
    cd scsb-solr-server


  • Use the sudo docker build command to build docker images. (Do note the dot (.) at the end of the command).

    Code Block
    languagebash
    sudo docker build -t scsb-solr-server .


  • Use the sudo docker run command to run docker container.

    Code Block
    languagebash
    sudo docker run --name scsb-solr-server -v /data/solr-data:/var/data/solr -p 8983:8983 -d scsb-solr-server -e "ENV=-m 4g"


Executing the above commands will create image and run the container resulting in a solr server instance running on port 8983.

...