Tag : java

I am creating a web project using java. Here I am downloading a file from web and I must need to transfer the downloaded file to the docker container. I am using the docker API PUT /containers/{id}/archive https://docs.docker.com/engine/api/v1.41/#operation/PutContainerArchive But, this gives error like below: For copying a simple text file: { "message": "Error processing tar ..

Read more

I have a Jar running code leveraging the hadoop libraries with the LocalFilesystem. This code is running in Docker and deployed on a remote Kubernetes cluster. I can run this code locally in a Docker container and it works fine. When I deploy I get this error: Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.apache.hadoop.conf.Configuration.getLong(String, ..

Read more

I have a Helm Chart. Which on deployment creates the following Kubernetes resources: A SSL enabled Service A Container created with my Docker image which internally runs a Java process that communicates with the above service. Kubernetes Secrets (SSL certificates and access keys), that are mounted inside the above container. The problem is my Container ..

Read more

My Dockerfile FROM maven:3.5-jdk-8 AS build COPY src /usr/src/app/src COPY pom.xml /usr/src/app RUN mvn -f /usr/src/app/pom.xml clean package FROM gcr.io/distroless/java:debug COPY –from=build /usr/src/app/target /usr/app/target COPY –from=build /usr/src/app/src /usr/app/src EXPOSE 8080 ENTRYPOINT ["java", "-cp", "/usr/app/target/classes:/usr/app/target/dependency-jars/*", "com.salesforce.Main"] Local MacBook Docker container java version openjdk version "1.8.0_275" OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-1~deb9u1-b01) OpenJDK 64-Bit Server VM (build 25.275-b01, ..

Read more