docker-compose

ZuulException (SendErrorFilter) at first call

帅比萌擦擦* 提交于 2019-12-08 08:57:27
I am building an application by Spring Cloud ,Spring Boot and Docker. Entire application is working fine. I have couple of micro-services. Each of the project is running on Docker. When I try to consume my micro-services through Zuul API Gateway I am getting an error for the 1st call. But if I refresh the browser it's working fine. The error is given below-- 2019-03-10 04:54:55.440 WARN [netflix- zuul-api-gateway- server,1855093598d4f99c,1855093598d4f99c true] 1 --- [nio-8765-exec-1] o.s.c.n.z.filters.post.SendErrorFilter : Error during filtering com.netflix.zuul.exception.ZuulException at org

Docker for AWS and Selenium Grid - Connection refused / No route to host (Host unreachable)

假如想象 提交于 2019-12-08 08:54:16
问题 What I am trying to achieve is a scalable and on-demand test infrastructure using Selenium Grid. I can get everything up and running but what I end up with is this: Here are all the pieces: Docker for AWS (CloudFormation Stack) docker-selenium Docker compose file (below) The "implied" software used are: Docker swarm Stacks Here is what I can accomplish: Create, log into, and ping all hosts & nodes within the stack, following the guidelines here: deploy Docker for AWS Deploy using the compose

Docker Container Start Command Did Not Get .bashrc variables

孤者浪人 提交于 2019-12-08 08:04:15
问题 I'm using docker to execute a command when starting the container but seems the environment variable did not get from the .bashrc file, please give me some advice. thanks dockerFile I add this to .bashrc: echo "export PYTHONPATH=$PYTHONPATH:/models/research:/models/research/slim" >> /root/.bashrc docker-compose.yml file with: command: ["python2", "/usr/bin/supervisord", "--nodaemon", "--configuration", "/etc/supervisor/supervisord.conf"] PS:if I exec echo $PYTHPATH or just exec python2 /usr

docker-compose networking - hostname not resolving

巧了我就是萌 提交于 2019-12-08 07:48:47
问题 I have the following docker-compose file. I am trying to access the service running in the container, from the host. But the hostname never resolves. version: '2' networks: mynet: driver: bridge services: grpcserver: image: test/image volumes: - ./:/var/local/git ports: - 50051:50051 stdin_open: true tty: true hostname: grpcserver networks: - mynet entrypoint: bash ../var/local/git/service/start.sh When I exec to the container I can telnet grpcserver 50051 to the running service using the

Docker not propagating file changes from host to container

十年热恋 提交于 2019-12-08 05:16:33
问题 I am aiming to configure docker so that when I modify a file on the host the change is propagated inside the container file system. You can think of this as hot reloading for server side node code. The nodemon file watcher should restart the server in response to file changes. However these file changes on the host volume don't seem to be reflected inside the container when I inspect the container using docker exec pokerspace_express_1 bash and inspect a modified file the changes are not

Wait node.js until Logstash is ready using containers

℡╲_俬逩灬. 提交于 2019-12-08 05:13:53
问题 I have the following setup in docker-compose.yml : .... logstash: container_name: logstash image: docker.elastic.co/logstash/logstash:6.2.4 node: container_name: node build: context: ./node/ dockerfile: ./Dockerfile depends_on: - logstash .... I'm using the package winston-logstash to wire them together. This is the transport layer: const logstashHost = process.env.LOGSTASH_HOST || 'logstash' const logstashPort = process.env.LOGSTASH_PORT || 5045 new (winstonLogstash.Logstash)({ host:

Docker compose. The volume inside another volume on the same container. How does it work?

◇◆丶佛笑我妖孽 提交于 2019-12-08 05:11:12
问题 I'm trying to create a relatively simple setup to develop and test npm packages. A problem was in the fact, that after you mounted a code volume to the container it replaces node_modules. I tried a lot of generally logical stuff, mostly aimed to move node_modules to another location and then reference it within configuration files. It works, but the solution is ugly. Also, it's not good practice to install webpack globally, but my solution requires it. However, after some time I found this

Why does docker-compose create an empty host folder when mounting named volume?

左心房为你撑大大i 提交于 2019-12-08 05:10:05
问题 I have the following in my docker-compose.yml file: volumes: - .:/var/www/app - my_modules:/var/www/app/node_modules I do this because I don't have node_modules on my host and everything gets installed in the image and is located at /var/www/app/node_modules . I have two questions regarding this: An empty folder gets created in my host named node_modules . If I add another volume (named or anonymous) to the list in my .yml file, it'll show up in my host directory in the same folder that

ZuulException (SendErrorFilter) at first call

安稳与你 提交于 2019-12-08 05:02:59
问题 I am building an application by Spring Cloud ,Spring Boot and Docker. Entire application is working fine. I have couple of micro-services. Each of the project is running on Docker. When I try to consume my micro-services through Zuul API Gateway I am getting an error for the 1st call. But if I refresh the browser it's working fine. The error is given below-- 2019-03-10 04:54:55.440 WARN [netflix- zuul-api-gateway- server,1855093598d4f99c,1855093598d4f99c true] 1 --- [nio-8765-exec-1] o.s.c.n

How to pass variable as attribute to xml configuration file in Wildfly with Docker

时光总嘲笑我的痴心妄想 提交于 2019-12-08 04:55:41
问题 I'm trying to pass values from docker-compose.yml file to Wildfly configuration dynamically. I want to have flexibility of mail configuration - just for quick change of addres, or username, or port.. In this case, I tried to do that by forwarding environment variables from docker-compose.yml, by dockerfile as arguments "-Dargumentname=$environmentvariable. Currently wildfly interupts on start with error: [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 45)