buildpack

How to pass flags to java process in Docker contatiner built by Cloud Native Buildpacks (CNB)

五迷三道 提交于 2021-02-11 07:23:56
问题 Normally when I create Docker image I do something like this: FROM openjdk:15-jdk-slim ARG version=undefined LABEL version=${version} WORKDIR / COPY build/libs/v2t-api-$version.jar /v2t-api.jar USER nobody VOLUME ["/tmp"] EXPOSE 8080 EXPOSE 8081 ENTRYPOINT ["sh", "-c", "exec java ${JAVA_OPTS} -jar v2t-api.jar"] So, when I start my container in for example kubernetes I can set JAVA_OPTS which defines how many memory is available for heap or how many CPUs are actually there. Packaging OCI

Python 3.7.0 Heroku buildpack issue

我是研究僧i 提交于 2021-01-28 19:51:59
问题 I've read some people with the same issue, but nothing suggested has worked. I'm trying to deploy a silly project to Heroku but nothing is working. Below this lines you can see the message: Writing objects: 100% (100/100), 55.42 MiB | 625.00 KiB/s, done. Total 100 (delta 19), reused 4 (delta 0) remote: Compressing source files... done. remote: Building source: Counting objects: 100, done. Delta compression using up to 4 threads. Compressing objects: 100% (94/94), done. Writing objects: 100%

Cloud Native Buildpacks/Paketo with Java/Spring Boot: How to configure different JDK download uri (e.g. no access to github.com)

爷,独闯天下 提交于 2021-01-20 12:18:05
问题 Having a Spring Boot app I tried to build it using the spring-boot-maven-plugin goal mvn spring-boot:build-image . But the build fails downloading the bellsoft-jre11.0.9.1+1-linux-amd64.tar.gz from github.com , since I don't have access to it from my build pipeline: ... Paketo BellSoft Liberica Buildpack 5.2.1 https://github.com/paketo-buildpacks/bellsoft-liberica Build Configuration: $BP_JVM_VERSION 11.0.9 the Java version Launch Configuration: $BPL_JVM_HEAD_ROOM 0 the headroom in memory

ERROR: failed to launch: determine start command: when there is no default process a command is required

不羁的心 提交于 2020-12-15 01:07:49
问题 The bounty expires in 4 days . Answers to this question are eligible for a +50 reputation bounty. Stuck wants to draw more attention to this question. After upgrading spring boot to 2.4 we cannot run the final docker image that we create via this script: script: - echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY - apk add openjdk11 - ./gradlew bootBuildImage --imageName=$DOCKER_IMAGE_INTERMEDIATE - docker build -f ./docker/Dockerfile --build-arg base_image=

ERROR: failed to launch: determine start command: when there is no default process a command is required

﹥>﹥吖頭↗ 提交于 2020-12-15 01:05:15
问题 The bounty expires in 4 days . Answers to this question are eligible for a +50 reputation bounty. Stuck wants to draw more attention to this question. After upgrading spring boot to 2.4 we cannot run the final docker image that we create via this script: script: - echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY - apk add openjdk11 - ./gradlew bootBuildImage --imageName=$DOCKER_IMAGE_INTERMEDIATE - docker build -f ./docker/Dockerfile --build-arg base_image=

ERROR: failed to launch: determine start command: when there is no default process a command is required

这一生的挚爱 提交于 2020-12-15 01:04:06
问题 The bounty expires in 4 days . Answers to this question are eligible for a +50 reputation bounty. Stuck wants to draw more attention to this question. After upgrading spring boot to 2.4 we cannot run the final docker image that we create via this script: script: - echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY - apk add openjdk11 - ./gradlew bootBuildImage --imageName=$DOCKER_IMAGE_INTERMEDIATE - docker build -f ./docker/Dockerfile --build-arg base_image=

ERROR: failed to launch: determine start command: when there is no default process a command is required

最后都变了- 提交于 2020-12-15 01:03:39
问题 The bounty expires in 4 days . Answers to this question are eligible for a +50 reputation bounty. Stuck wants to draw more attention to this question. After upgrading spring boot to 2.4 we cannot run the final docker image that we create via this script: script: - echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY - apk add openjdk11 - ./gradlew bootBuildImage --imageName=$DOCKER_IMAGE_INTERMEDIATE - docker build -f ./docker/Dockerfile --build-arg base_image=

ERROR: failed to launch: determine start command: when there is no default process a command is required

雨燕双飞 提交于 2020-12-15 01:03:16
问题 The bounty expires in 4 days . Answers to this question are eligible for a +50 reputation bounty. Stuck wants to draw more attention to this question. After upgrading spring boot to 2.4 we cannot run the final docker image that we create via this script: script: - echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY - apk add openjdk11 - ./gradlew bootBuildImage --imageName=$DOCKER_IMAGE_INTERMEDIATE - docker build -f ./docker/Dockerfile --build-arg base_image=

How to set CONFIG_PATH in Heroku buildpack

核能气质少年 提交于 2020-12-13 11:52:25
问题 Before I elaborate on the problem, I should let you know that I've successfully installed ffmpegthumbnailer on heroku's bash (heroku run bash). I'm trying to build ffmpegthumbnailer using a custom Heroku buildpack I've written, but when I run ./configure && make install in the bin/compile buildpack file, ffmpegthumbnailer tells me that it can't find the ffmpeg libs (util, format, codec, scale) and suggest that I set the PKG_CONFIG_PATH. So I set the PKG_CONFIG_PATH and it still can't seem to