docker-compose

Jooq unable to find database when triggered via a gradle image on Dockerfile

╄→尐↘猪︶ㄣ 提交于 2020-06-02 05:49:19
问题 I have a Dockerfile that uses gradle to build my Spring boot application just before coping it into the container and trigger it. This is how it looks: FROM gradle:5.4.1-jdk8-alpine AS build COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src RUN gradle build --no-daemon FROM openjdk:8-jdk-alpine EXPOSE 8080 RUN mkdir /app COPY --from=build /home/gradle/src/build/libs/*.jar yurlapp.jar ENTRYPOINT ["java","-jar" , "/yurlapp.jar"] It's quite simple, it will execute Gradle and

Jooq unable to find database when triggered via a gradle image on Dockerfile

試著忘記壹切 提交于 2020-06-02 05:46:53
问题 I have a Dockerfile that uses gradle to build my Spring boot application just before coping it into the container and trigger it. This is how it looks: FROM gradle:5.4.1-jdk8-alpine AS build COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src RUN gradle build --no-daemon FROM openjdk:8-jdk-alpine EXPOSE 8080 RUN mkdir /app COPY --from=build /home/gradle/src/build/libs/*.jar yurlapp.jar ENTRYPOINT ["java","-jar" , "/yurlapp.jar"] It's quite simple, it will execute Gradle and

Error: Starting container process caused “exec: \”/docker-entrypoint.sh\“: permission denied”

冷暖自知 提交于 2020-05-30 06:08:38
问题 I'm trying to build docker-compose, but I'm getting this error: ERROR: for indicaaquicombrold_mysqld_1 Cannot start service mysqld: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/docker-entrypoint.sh\": permission denied" ERROR: for mysqld Cannot start service mysqld: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/docker-entrypoint.sh\": permission denied" ERROR: Encountered errors while bringing up the project.

docker selenium/standalone-chrome unable to connect to docker web server

ⅰ亾dé卋堺 提交于 2020-05-29 16:14:33
问题 I am trying to use codeception to run tests for a php web site which was developed using docker containers. I created a test folder in the web container and put there codecept.phar. This is the project's setup: docker-compose.yml: version: '3' services: db: image: mariadb restart: always volumes: - ./db:/var/lib/mysql ports: - '3306:3306' environment: MYSQL_ROOT_PASSWORD: root web: build: . restart: always tty: true volumes: - ./src:/var/www - ./build/php.ini:/usr/local/etc/php/php.ini ports:

docker selenium/standalone-chrome unable to connect to docker web server

寵の児 提交于 2020-05-29 16:14:26
问题 I am trying to use codeception to run tests for a php web site which was developed using docker containers. I created a test folder in the web container and put there codecept.phar. This is the project's setup: docker-compose.yml: version: '3' services: db: image: mariadb restart: always volumes: - ./db:/var/lib/mysql ports: - '3306:3306' environment: MYSQL_ROOT_PASSWORD: root web: build: . restart: always tty: true volumes: - ./src:/var/www - ./build/php.ini:/usr/local/etc/php/php.ini ports:

Docker cannot connect application to MySQL

一曲冷凌霜 提交于 2020-05-29 11:20:31
问题 I am trying to run integration tests (in python) which depend on mysql. Currently they depend on SQL running locally, but I want them to depend on a MySQL running in docker. Contents of Dockerfile: FROM continuumio/anaconda3:4.3.1 WORKDIR /opt/workdir ADD . /opt/workdir RUN python setup.py install Contents of Docker Compose: version: '2' services: mysql: image: mysql:5.6 container_name: test_mysql_container environment: - MYSQL_ROOT_PASSWORD=test - MYSQL_DATABASE=My_Database - MYSQL_USER=my

Docker cannot connect application to MySQL

谁说胖子不能爱 提交于 2020-05-29 11:20:27
问题 I am trying to run integration tests (in python) which depend on mysql. Currently they depend on SQL running locally, but I want them to depend on a MySQL running in docker. Contents of Dockerfile: FROM continuumio/anaconda3:4.3.1 WORKDIR /opt/workdir ADD . /opt/workdir RUN python setup.py install Contents of Docker Compose: version: '2' services: mysql: image: mysql:5.6 container_name: test_mysql_container environment: - MYSQL_ROOT_PASSWORD=test - MYSQL_DATABASE=My_Database - MYSQL_USER=my

Refused connection to RabbitMQ when using docker link

南楼画角 提交于 2020-05-29 07:26:07
问题 I have a microservices application which has two services and a rabbit mq used as a message queue for communication between them. Now, I want to deploy them on docker. I have the following code in the docker-compose.yml file: version: "3" services: rabbitmq: build: ./Rabbit hostname: "rabbitmq" container_name: "rabbitmq" environment: RABBITMQ_ERLANG_COOKIE: "cookie" RABBITMQ_DEFAULT_USER: "user" RABBITMQ_DEFAULT_PASS: "pass" RABBITMQ_DEFAULT_VHOST: "/" ports: - "15672:15672" - "5672:5672" #

Set $PROJECT_NAME in docker-compose file?

十年热恋 提交于 2020-05-29 02:31:40
问题 I am using the same docker-compose.yml file for multiple projects. I am really lazy so I don't want to start them with docker-compose -p $PROJECT_NAME up . As of Docker version 17.06.0 is it possible to set the variable directly in the docker-compose.yml file. 回答1: Right now we can use .env file with custom project name and set COMPOSE_PROJECT_NAME=SOMEPROJECTNAME It's not flexible but it's better than nothing. Currently there is an open issue regarding this as a proposal. 回答2: I know this

Set $PROJECT_NAME in docker-compose file?

早过忘川 提交于 2020-05-29 02:28:52
问题 I am using the same docker-compose.yml file for multiple projects. I am really lazy so I don't want to start them with docker-compose -p $PROJECT_NAME up . As of Docker version 17.06.0 is it possible to set the variable directly in the docker-compose.yml file. 回答1: Right now we can use .env file with custom project name and set COMPOSE_PROJECT_NAME=SOMEPROJECTNAME It's not flexible but it's better than nothing. Currently there is an open issue regarding this as a proposal. 回答2: I know this