clarin-eric / docker-solr-clarin

A Docker build for Solr, to manage the official Docker hub solr image
Apache License 2.0
0 stars 0 forks source link

Adapt base image to use CLARIN alpine base image #1

Open twagoo opened 6 years ago

twagoo commented 6 years ago

Starting with base image 7.1/alpine, adapt to use CLARIN's docker-alpine-supervisor-base as a base image in such a way that we get CLARIN compatible logging and process management, with Solr running in the foreground by default as is the case with the original image.

twagoo commented 6 years ago

My first, but not yet successful attempt: 4aa8e7e60af1e76228ae12b7ab7b59cf78f467a4

It builds, but running it leads to the following output:

[ENTRYPOINT] Starting fluentd
[ENTRYPOINT] Waiting for fluentd to start
tail: can't open '/var/log/fluentd/fluentd.log': No such file or directory
2017-11-01 13:41:30 +0000 [info]: reading config file path="/etc/fluentd/fluentd.conf"
2017-11-01 13:41:30 +0000 [info]: starting fluentd-0.14.15 pid=5
2017-11-01 13:41:30 +0000 [info]: spawn command to main:  cmdline=["/usr/bin/ruby", "-Eascii-8bit:ascii-8bit", "/usr/bin/fluentd", "-c", "/etc/fluentd/fluentd.conf", "-p", "/fluentd/plugins", "--under-supervisor"]
2017-11-01 13:41:30 +0000 [info]: gem 'fluentd' version '0.14.15'
2017-11-01 13:41:30 +0000 [info]: adding match pattern="fluent.info" type="copy"
2017-11-01 13:41:30 +0000 [info]: #0 'flush_interval' is configured at out side of <buffer>. 'flush_mode' is set to 'interval' to keep existing behaviour
2017-11-01 13:41:30 +0000 [error]: #0 config error file="/etc/fluentd/fluentd.conf" error_class=Fluent::ConfigError error="out_file: `/var/log/fluentd/fluentd.20171101_**.log` is not writable"
2017-11-01 13:41:30 +0000 [info]: Worker 0 finished unexpectedly with status 2
2017-11-01 13:41:30 +0000 [info]: Received graceful stop

I think the problem may be related to user being set to $SOLR_USER (line 77).