Made a Checkout 6.4.3 version into my local MacOS machine.
Customized kibana source code. // made changes in one file (filter_bar.less)
changed Node version 8.11.4
Yarn Install
yarn kbn bootstrap
yarn start
Yarn build ---> (6 packages were generated into the kibana/target directory for darwin, linux, winows versions and some OSS versions (zip files) )
Extracted darwin and windows versions and tested them using in mac and windows using run/kibana and works as expected.
And as per Jarpy's instructions in this below POST
I have cloned kibana-docker 6.4.3 ( GitHub - elastic/kibana-docker at 6.4 )into my local machine.
Also, i have installed virtualenv, Python docker in my local machine.
I know there is no need to create a docker file by myself to create a docker image. Please can you provide me steps editing the docker template (make file or docker related files under template folder) for generating the docker image using my local source code of kibana/target along with the commands.
FYI:I am pretty new to docker .
Thanks in advance and any help is highly appreciated.
Thanks for your reply Brandon,
i tried running
env ARTIFACTS_DIR=/Users/vmacha012/Documents/Project/PluginDev/kibana (My local source code PATH)appending with ELASTIC_VERSION=6.4.3 make release-manager-release . but, it's throwing few errors
make[1]: *** [build-from-local-artifacts] Error 127
make: *** [release-manager-release] Error 2
And can see newly generated (Dockerfile-full & Docker -oss) files under /kibana-docker/build/kibana . Please can you refer to the screenshots.
And when i tried running it as build image. It took nearly 5 mins to "sending build context to docker deamon" and it got failed in 5th step .. Please refer to snapshot 1 (It is due to the tar.gz file)
and when i tried uncompressing the file and changing the relative path in generated docker file and triggered a build ...it got exited with non-zero code:7 (Please refer to the attached screenshot 2
And the next command didn't run (I mean from step6 to Step 15)
Can some one help me in building the docker-image asap. As i have to move it to production environment early next week
Below is the file that got generated when i run env ARTIFACTS_DIR=/Users/vmacha012/Documents/Project/PluginDev/kibana ELASTIC_VERSION=6.4.3 make release-manager-release:slight_smile:
@vishal_M, using curl against localhost isn't going to work. From the containers perspective, localhost is the container itself. You shouldn't need to modify the Dockerfile and you should just be able to specify the ARCHIVES_DIR environment variable as originally recommended by jarpy.
Hello Brandon, I have used the below command to generate docker file.
env ARTIFACTS_DIR=/Users/vmacha012/Documents/Project/PluginDev/kibana ELASTIC_VERSION=6.4.3 make release-manager-release
I am using an auto-generated docker file to build the image. I haven't updated any line (http://localhost:8000)..
I have a question: Do i need to checkin my customized code to Kibana source code repository(https://github.com/elastic/kibana) by creating a new branch along with the target folder ?
From /Users/vmacha012/Documents/Project/PluginDev/ if you run python -m SimpleHTTPServer it will host a simple web server which will allow you to use curl from within the Dockerfile.
Hello Brandon,
Just now, i have realized that the files that have generated under (kibana source code) kibana/target folder has a different name ( [kibana-6.4.3-SNAPSHOT-linux-x86_64.tar.gz]). But, in the docker file it is generated as http://localhost:8000/kibana/target/kibana-6.4.3-linux-x86_64.tar.gz . Please refer to the attached snapshot (Left-top).
I have started running the web server using python -m SimpleHTTPServer as per your instructions and can accessible the files using url:(plz refer to the right side of the snapshot).
FYI : I have tried to build image by renaming http://localhost:8000/kibana/target/kibana-6.4.3-SNAPSHOT-linux-x86_64.tar.gz in the docker file. But, still there seems to be the same issue(left-bottom).
When we provide ARTIFACTS_DIR , it will generate us a docker file with localpath of our source code (kibana/docker ) this is where it is throwing errors. (plz refer snapshot 2)
@Brandon_Kobel , can you please clone this repos and try the instructions which were in my first post (install dependencies, yarn kbn bootstrap, build)
I can't see the command you ran. Please send a complete transcript from the shell, as a GitHub Gist. Screenshots of shells are hard to read, impossible to search and tend to omit details.
Also, is there any chance of using Kibana 7? It has a completely different Docker build system that is integrated with the main source code.
Hello @jarpy && @Brandon_Kobel ,
I have tried creating kibana docker-image for version 6.4.3. Please find the attached gist url let me know if you have any issues.
we tried to deploy as kibana docker image7.1.1 .But, its has some issues with kubernetes cluster.
Also, We tried customizing kibana source code 7.0.0 and deploy it as a docker image. It also has a similar issue ( like generating custom docker image with kibana source code 6.4.3)(didn't tried deploying a basic kibana 7.1.1 image from elastic artifacts in kubernetes).
We were able to deploy 6.4.3 in kubernetes cluser successfully. So ended up customizing kibana source code 6.4.3. But, facing issues while trying to generate a custom docker image.
Hello @jarpy & @Brandon_Kobel ,
Please can someone look into this gist and provide me the instructions on how to generate custom docker image successfully.
Also, Please let me know if you require any additional information.
Any help is highly appreciated.
@vishal_M your ARTIFACTS_DIR is incorrect, it should be ARTIFACTS_DIR=/Users/vmacha012/Documents/Project/Docker/. Also before running make release-manager-release try doing a docker pull python:3.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.