How to install hbase through paketo buildpacks #264
Replies: 3 comments 2 replies
-
The primary target for buildpacks is to take your source code and turn that into a container image. It excels when working with an application that you're developing, but in some cases, you can use it for packaging up 3rd party apps. It's not meant as a complete replacement for Dockerfiles. This falls into the 3rd party app category and that may or may not work, depending on how the app you're trying to deploy is built. If you wanted to do this, the workflow would look something like this:
The reason I specifically mention WAR, executable JAR, or dist-zip file is that that's what the Java buildpack knows how to deploy. If your 3rd party app is run in a different way, then you've got more work to do. You'd either need to get it to one of the supported deployment options or you'd need to use Procfile buildpack and specify a start command manually. I can't see what's being done in the Other areas that can cause issues with 3rd party apps:
Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply @dmikusa . The application I am trying to deploy is a JAR file. And what's happening inside docker-entrypoint.sh docker-entrypoint.sh Ideally the approach that I want to do is to run my jar file in a hbase environment and while keeping the start command to docker-entrypoint.sh, it is checking for the env which will be passed when deploying as a (volume mount -> env.variable) and run the jar file along with the xml files we are copying in the docker image. For this , I had two approaches ->
Hope I am clear. Can you tell me the exact approach that I need to do in order to build it through paketo buildpacks.Please provide your views. Thanks ! |
Beta Was this translation helpful? Give feedback.
-
@dmikusa , any comments here for this ? |
Beta Was this translation helpful? Give feedback.
-
I want to replicate this Dockerfile . Is it possible to do in paketo buildpacks
FROM openjdk:17-jdk
ENV HBASE_HOME='/app/hbase-2.1.6'
PATH="${JAVA_HOME}/lib:/app/hbase-2.1.6/bin:${PATH}"
WORKDIR /app
COPY hbase-2.1.6-bin.tar.gz .
RUN tar -xzf hbase-2.1.6-bin.tar.gz
COPY ./hbase-site.xml hbase-2.1.6/conf/
COPY target/*.jar alarm.jar
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
EXPOSE 80
CMD ["/bin/sh", "-c", "/docker-entrypoint.sh"]*
The copying of files can be done by using BP_INCLUDE_FILES and to set the docker-entrypoint shell file as the entrypoint, I will add a Procfile and set the start command accordingly. But how to install hbase without using Procfile(curl command ) or adding it in my stack ?
Beta Was this translation helpful? Give feedback.
All reactions