Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Solr 4.x and 5.x latest build and Docker Hub tags #6

Closed
geerlingguy opened this issue Jul 1, 2017 · 6 comments
Closed

Add Solr 4.x and 5.x latest build and Docker Hub tags #6

geerlingguy opened this issue Jul 1, 2017 · 6 comments

Comments

@geerlingguy
Copy link
Owner

As the title says... I can't find any/many good Solr images on Docker Hub that include a 4.x branch.

@geerlingguy
Copy link
Owner Author

So... 5.x is interesting. I can't use the automatic installation script as-is, because of the checks in these lines: https://github.com/apache/lucene-solr/blob/branch_5x/solr/bin/install_solr_service.sh#L55-L59

With the Debian 9/Stretch container at least:

# cat /proc/version
Linux version 4.9.31-moby (root@11fbdc1f630f) (gcc version 6.2.1 20160822 (Alpine 6.2.1) ) #1 SMP Sat Jun 24 06:29:23 UTC 2017

# uname -a
Linux 4230517c30dd 4.9.31-moby #1 SMP Sat Jun 24 06:29:23 UTC 2017 x86_64 GNU/Linux

There's no Debian in there for the install script to key on... and I'm not sure if I can forcefully tell it "yes, this is Debian... proceed!".

Working on 4.x now.

@geerlingguy
Copy link
Owner Author

And 4.x is interesting as well. Two issues I'm working on right now:

  1. Solr server directory /opt/solr/example not found! after launching a container from the 4.x image manually.
  2. ansible-container run and --var_file don't seem to play nice together. See related issue: Run command fails when passing --var-file option with an existing vars file ansible/ansible-container#643

@geerlingguy
Copy link
Owner Author

geerlingguy commented Jul 9, 2017

The Solr 4.x image is giving:

Solr server directory /opt/solr/example not found!

Then if I share a particular core into that path, I get:

Solr home directory /opt/solr/example/solr not found!

So I'll probably need to do some setup for the default solr core either as part of a Dockerfile (with instructions), or in preparation via a helper role.

With the 6.x branch, it defaults to a collection1 and works out of the box, but the 4.x branch is a little different due to the way cores are auto-registered :(

Tested with the following docker-compose.yml:

---
version: "2"

services:
  solrtest:
    image: geerlingguy/solr:4.x
    container_name: solrtest
    ports:
      - "8983:8983"
    restart: always
    volumes:
      - ./example:/opt/solr/example:rw
    command: ["/opt/solr/bin/solr", "start", "-f"]

@geerlingguy
Copy link
Owner Author

For 4.x—see upstream issue geerlingguy/ansible-role-solr#77

@geerlingguy
Copy link
Owner Author

Closing out this issue, as I have a confirmed working 4.x image now (woohoo!): https://hub.docker.com/r/geerlingguy/solr/tags/

@geerlingguy
Copy link
Owner Author

Moving 5.x work over to #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant