Tag: java

java.net.UnknownHostException in pid 1 for address resolved by kube-dns

I am receiving an java.net.UnknownHostException: postgres-service on a machine where I can ping postgres-service on the command line. This is in the context of Kubernetes (more specifically GKE) services and Docker images. Could it be that Java requires additional packages (in comparison to ping) to be installed before it can resolve symbolic IP addresses such […]

Run specific configuration of WildFly Jboss on Docker

I work with JBoss AS 7. Today I decided to run the same server configuration on WildFly JBoss using Docker. So I just would like to start server using specific standalone.xml. I am asking for road map. I already have Installed docker and wildfly – there are work all right. Script that I run against […]

jax-rs client is not creating jax-rs cookie

Hi i have two separate docker container running. one container runs an application which has the following rest-resource @GET @Path(“/jaxrsSaveCookie”) @Produces(MediaType.TEXT_PLAIN) public Response jaxrsSaveCookie(@QueryParam(“name”) String name, @QueryParam(“value”) String value) { logger.info(“jaxrsSaveCookie [name: ” + name + “, value: ” + value + “]”); NewCookie cookie = new NewCookie(name, value, “/”, “”, “my cookie”, NewCookie.DEFAULT_MAX_AGE, false); […]

Docker springboot app update war file without rebuilding using maven

I am running Docker for Windows version 1.12.3 and have a spring boot application running in a Docker container. I’m using a maven container to build my application. docker run –rm -it -v $(cd)\trunk:/project maven:3.3.9-jdk-8 mvn clean package -f /project Which works fine it builds my war inside truck, then I run a tomcat container. […]

CrashLoopBackOff: Docker image not running on Kubernates ? (ImagePullBackOff)

I have a REST API application with the following maven and docker file. I am using Jdk 8, latest Docker and Kubernates, latest minicubi , and work on latest Mac OS I was able to create the docker image without any problem as well as deploy it on Kubernate. However here the status when I […]

Old Gradle version installed in docker container

I have a docker container in which i am building my projects with jenkins. I want Gradle 3.0 installed in my projects and java version to make build properly. When i install gradle with commandapt-get install gradle 3.0 , it runs and start installing, but after that when i check Gradle with gradle -version […]

Docker : Persisting build argument in container during run?

During the Docker build phase I pass in an argument for the particular JAR file I want to copy into the container. Docker Build docker build -t foo-service . –build-arg FAT_JAR=foo-service-1.0.0-SNAPSHOT Dockerfile FROM maven:3.3-jdk-8-alpine # Install packages RUN apk add –no-cache curl tar bash wget EXPOSE 9000 ARG FAT_JAR RUN echo “Copying $FAT_JAR.jar to container” […]

Can't deploy artifact to KIE-server via Drools workbench because of “ConversationId not valid – missing releaseId”

I’m using the, kie-server-showcase and drools-workbench-showcase, via docker-run, I can see the kie-server in the drools UI and deploy a build to it. However, when I use docker-compose, I get a runtime exception when trying to deploy the demo morgauge project, see the logs here: http://pastebin.com/qKQ8hgak, but I’ve included the interesting parts: kie-server | 15:24:41,268 […]

Docker – oracle.kv.FaultException: Could not contact any RepNode

I am new to Docker and nosql, I created a Oracle Linux VM (ipAddr on my windows machine. Further I created docker container (on this VM ) for kvlite and run my nosql-container as below: $ docker run –name nosql-container -p 5000:5000 -d kvlite:latest followed by below commands: $ docker exec -it nosql-container bash […]

Connecting to Meteor DDP from Java with Docker container

I am here just to share some experience with java DDP Client Meteor and Docker Hello I am accessing to a meteor docker container from a J2EE docker container and it fails because there are some trouble at the connection with the server name (corresponding to “meteor” in my compose file) and the port “82”. […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.