How to run development mode in docker

Hi,
I want to know how to run development mode in docker.
In my DockerFile the base image is docker.elastic.co/kibana/kibana:6.8.0
and the last line CMD /usr/local/bin/kibana-docker
how shold I modify so that the running kibana is development mode?

You need to start up kibana with the --dev. See https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#customizing-configkibanadevyml

So I need to change the content of kibana-docker script?
I have tried to add arge like
CMD [‘kibana-docker’,’- -dev’]
But it didn’t work

And it always show
ERROR Extra serve options "--dev" must have a value

I try to modify the last line of teh script /usr/share/kibana/bin/kibana in docker container
from
NODE_ENV=production "${NODE}" --no-warnings --inspect=0.0.0.0 --max-http-header-size=65536 $NODE_OPTIONS "${DIR}/src/cli" ${@}
to
NODE_ENV=development "${NODE}" --no-warnings --inspect=0.0.0.0 --max-http-header-size=65536 $NODE_OPTIONS "${DIR}/src/cli" ${@}

then the log shows the following error

kibana_1 | {"type":"error","@timestamp":"2019-07-15T02:16:58Z","tags":["warning","process"],"pid":394,"level":"error","error":{"message":"Promise.defer is deprecated and will be removed in a future version. Use new Promise instead.","name":"Warning","stack":"Warning: Promise.defer is deprecated and will be removed in a future version. Use new Promise instead.\n at Transport.config.defer (/usr/share/kibana/src/legacy/core_plugins/elasticsearch/lib/parse_config.js:108:43)\n at Transport.request (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:177:18)\n at exec (/usr/share/kibana/node_modules/elasticsearch/src/lib/client_action.js:362:20)\n at EsApiClient.action (/usr/share/kibana/node_modules/elasticsearch/src/lib/client_action.js:62:16)\n at Worker._getPendingJobs (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/esqueue/worker.js:389:24)\n at Worker._processPendingJobs (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/esqueue/worker.js:308:17)\n at Poller.functionToPoll (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/esqueue/worker.js:69:21)\n at Poller._poll (/usr/share/kibana/node_modules/x-pack/common/poller.js:28:17)\n at ontimeout (timers.js:436:11)\n at tryOnTimeout (timers.js:300:5)\n at listOnTimeout (timers.js:263:5)\n at Timer.processTimers (timers.js:223:10)"},"message":"Promise.defer is deprecated and will be removed in a future version. Use new Promise instead."}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.