Tag: java

DC/OS JMX Access to java application

I’m new to docker and dc/os. I have deployed dc/os cluster in the microsoft azure. I need to set access via a jmx to my java applications but I can’t. Let’s take the example of deploying a standart tomcat image. I have docker installed on my local machine. To run a tomcat container with jmx […]

How to deploy multiple Services on Spring Boot? [closed]

I have to code the Backend for a Delivering Service. I want to have one service for the supplier who needs to know about the detailed delivering tasks. And I also want to have a service for the customer from where he can order something. So both of the services have to talk to each […]

How to run the COPY and RUN command in same container?

I am trying to install java from the rpm file to docker centos image. > Step 0 : FROM centos:latest —> **34943839435d** Step 1 : COPY . jdk-6u45-linux-x64-rpm.bin —> **2055e5db6ae9** Removing intermediate container 7ae13aaa4424 Step 2 : RUN chmod +x jdk-6u45-linux-x64-rpm.bin && sh jdk-6u45-linux-x64-rpm.bin —> Running in **c4d6b63576bc** jdk-6u45-linux-x64-rpm.bin: jdk-6u45-linux-x64-rpm.bin: is a directory 2014/12/16 06:03:34 […]

java web app and Postgres on websphere-liberty

I’m deploying a working Tomcat webapp on websphere-liberty on docker. The webapp connects to a postgres data source on docker. In websphere when I try to get connection with DataSource ds = (DataSource)ctx.lookup(“java:comp/env/jdbc/postgres”); Connection conn = ds.getConnection(); my web.xml is setted as: <resource-ref> <description>postgreSQL Connection</description> <res-ref-name>jdbc/postgres</res-ref-name> <res-type>javax.sql.XADataSource</res-type> <res-auth>Container</res-auth> </resource-ref> I get the following error javax.naming.NamingException: […]

Docker Container interacting with 2 applications

I currently have a Java Application (.jar) in one container and I am using the docker-compose.yml to create an instance of a mysql database in a second container. I want to know if it is possible for the container 1 to be able to interect with container 2, and be able to read/write to and […]

Dockerfile with node, java, and Dynamodblocal

I am trying to create a docker file that contains the following Nodejs java (jre) Dynamodb local So far I was able to get the Node part done through node:argon but not sure how to get the rest done. This is what my Dockerfile looks like FROM node:argon # Create app directory RUN mkdir -p […]

Docker Compose JVM parameters

I wrote a java application that takes an environment variable that takes an argument to set a key for a JWT token salt key. Is there a way for me to pass the command variables in Docker Compose? java -Djava.security.egd=file:/dev/./urandom -jar /user-profile-api.jar –key=blah And to run the docker image you just docker run -p 8080:8080 […]

Building a docker image doesnt stop because of minecraft server continuing to run

So I have been trying to learn docker for a few days now and set a first goal for me. I want to run a spigot server inside a docker container and later on the road combine that with a BungeeCord network. I have run into problem. My dockerfile runs without problems but once it […]

How to convert JKS into Docker Registry cert/key?

I am trying to set up a secure Docker Registry on two VMs (for HA) and have a question about setting up the SSL. According to that link in the docs, I need to have a certs directory with two files in it: registry.crt – the CA cert registry.key – ??? (private key?) I have […]

Set ports for container in docker for docker-client for java

I can’t set publicPort and privatePort for container in docker. I creating docker container with java library docker-client for java https://github.com/spotify/docker-client I already had created a docker image locally “mobillogix/selenium-chrome”. DockerClient docker = DefaultDockerClient.fromEnv().build(); // Bind container ports to host ports final String[] ports = {“44444”, “59004”}; final String[] ports1 = {“4444”, “5900”}; final Map<String, […]

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