Questions tagged buildpack

Explore the latest questions and answers asked by our top developers.

reload `procmgr` in container?

So I have a docker container build with buildpack that runs the following command under PID 1 procmgr /layers/paketo-buildpacks_php-web/php-web/procs.yml is it possible to reload the configs passed into procmgr somehow? 🐳 [DEV] backend-v1-7476cc6cfd-l68p2 app # ps aufx USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND cnb 30 1.0 0.0 18648 3444 pts/0 […]

By DmitrySemenov
Published
Categorised as buildpack, containers, docker, php Tagged , , ,

Why does "spring-boot:build-image" run the Spring Boot application?

Two simple questions: Why is a Spring Boot application executed while creating a Docker image with the mvnw spring-boot:build-image command? Is there a command line option to prevent this from happening? I am building a Docker image for a Spring Boot application. The application depends on other, third party services which are not necessarily (and […]

By KDW
Published
Categorised as buildpack, docker, maven, spring-boot Tagged , , ,

how to disable memory calculator from docker image generated by buildpack

When I’m establishing the memory limits (-Xmx512m -Xms512m) in the deployment.yml for a Spring Boot Application which the docker image was generated with the command (mvn spring-boot:build-image) then I’m receiving the following error: Setting Active Processor Count to 4 Adding $JAVA_OPTS to $JAVA_TOOL_OPTIONS unable to calculate memory configuration all memory regions require 1130933K which is […]

By albertomaciq
Published
Categorised as buildpack, docker, spring-boot Tagged , ,

Paketo buildpack bindings not working when using "external" docker daemon

I have a Jenkins setup with a master and multiple worker/slave nodes. The workers are docker containers running on VMs. The containers themselves have no docker daemon running (nor installed). They mount /var/run/docker.sock from the host for that. When I build the image it fails to include some CA certificates I added to the build […]

By razr
Published
Categorised as buildpack, daemon, docker, docker-daemon, paketo Tagged , , , ,

Pass parameters to my application in a image done with JIB

I would like to optimize my docker image using jib. I have been using a Dockerfile like this: FROM openjdk:8-jdk ARG NAME ADD $NAME app.jar VOLUME /tmp VOLUME /certificates ENTRYPOINT exec java $JAVA_OPTIONS -jar app.jar Now I am creating the image with mvn compile jib:dockerBuild but would like to know how to add the JAVA_OPTIONS […]

By antonof
Published
Categorised as buildpack, docker, java, jib, maven Tagged , , , ,

Buildpacks:Update of buildpacks

I’m looking into buildpacks to create container images without Dockerfiles. One benefit should be that buildpacks are managed and are updated quite fast if some vulnerabilities are found. So it should relief the developer from that task. However, how do I know when the buildpacks I use are updated? Maybe they are also now longer […]

By Oli
Published
Categorised as buildpack, docker Tagged ,

Why paketobuildpacks/run image download everytime

It’s a springboot gradle project. My build command is pack build test_boot –builder paketobuildpacks/builder:base –env BP_JVM_VERSION=8 the message like: base: Pulling from paketobuildpacks/builder Digest: sha256:0ea77b1be8d415639a36cc476c515bb492bf2a35274da4686caddbd897059b44 Status: Image is up to date for paketobuildpacks/builder:base base-cnb: Pulling from paketobuildpacks/run Digest: sha256:3bdefd40188e93e4aba93978440816f9b86d03a1a7b58e6c6c854bcb88df8ace Status: Image is up to date for paketobuildpacks/run:base-cnb ===> DETECTING 8 of 18 buildpacks participating paketo-buildpacks/ca-certificates […]

By sia
Published
Categorised as buildpack, docker Tagged ,

How can i modify the default user group in paketo buildpack?

I built a image use –builder paketobuildpacks/builder:base , but my app went wrong cause no permission. > apt-get update Reading package lists… Done E: List directory /var/lib/apt/lists/partial is missing. – Acquire (13: Permission denied) Then i found that the run image of paketobuildpacks stacks sets the default user: ARG cnb_uid=1000 ARG cnb_gid=1000 RUN groupadd cnb […]

By sia
Published
Categorised as buildpack, docker, image, paketo Tagged , , ,

How to embed environment variables into the images with buildpack

I tryed to embed environment variables into the images like this: pack build samples/java –path java/jar –env BP_JVM_VERSION=8 –env BPE_TEST_VAR=test then i run the image, and attach it ,run echo $TEST_VAR it shows nothing how can i get the environment variables? Source: Docker Questions

By sia
Published
Categorised as buildpack, docker Tagged ,

Why is the OCI image created at an incorrect time with buildpacks

Hi StackOverflow community, i’m learing buildpacks form https://buildpacks.io/docs/, and i successed built a image with pack build myapp –builder cnbs/sample-builder:bionic, but the CREATED time shows incorrectly. REPOSITORY TAG IMAGE ID CREATED SIZE paketobuildpacks/run base-cnb 5eaa2a599cd5 12 days ago 87.9MB cnbs/sample-stack-run bionic 0b2076fcd92b 13 days ago 70.2MB cnbs/sample-builder bionic 39da2bad90ed 41 years ago 180MB buildpacksio/lifecycle 0.11.3 […]

By sia
Published
Categorised as buildpack, docker, image Tagged , ,
1 4

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq