Hi Bjørn, First the Dockerfile is simply a blue-print to create an image. So you wouldn’t run the Solr directly from the Dockerfile.
1. Instead you would create your custom image with the following content: FROM solr:6.6 ADD <src> <dst> 2. To build the image you can use the following command: docker create —tag my-solr:1.0.0 . 3. To run your preconfigured solr, simply use: docker run my-solr:1.0.0 If would like to completely get rid of the Dockerfile, you can use Helm instead to add the data to the pod while creating. Hope this helps, Best, Timo Grün > On 6. May 2021, at 13:23, Bjørn Kristian Larsen <[email protected]> wrote: > > Hi, I need to move an existing solr instance to kubernetes. > > I am trying to write a Dockerfile to > 1. create a core > 2. load data > 3. run solr > > I am able to create a core from my existing config and run it with > "docker run -v myconf:/myservice solr:6.6 -c myservice -d /myservice" > > But i want to avoid saving that container to a new image and then reuse > that image in kubernetes. > > I would guess this is a common usecase but I can not find anything about it > here https://github.com/docker-solr/docker-solr > > Any help would be appreciated! > > Bjørn Larsen
