dockerfile

Docker Compose: How to specify path to docker file while building as if in different directory?

淺唱寂寞╮ 提交于 2021-01-27 07:16:51
问题 docker build -t test2 -f tests/low_conviction_integration/Dockerfile . If I need to copy a file from a directory ABOVE my Dockerfile, I can accomplish it by calling docker build -t image_name -f path_to_docker_file/Dockerfile . from that ABOVE directory How can I accomplish the same behavior with docker-compose? I want docker-compose to exist in same directory as Dockerfile, to build with Dockerfile, but to ultimately call it as if it was in ABOVE directory, so that I can copy the correct

Docker Compose: How to specify path to docker file while building as if in different directory?

徘徊边缘 提交于 2021-01-27 07:14:04
问题 docker build -t test2 -f tests/low_conviction_integration/Dockerfile . If I need to copy a file from a directory ABOVE my Dockerfile, I can accomplish it by calling docker build -t image_name -f path_to_docker_file/Dockerfile . from that ABOVE directory How can I accomplish the same behavior with docker-compose? I want docker-compose to exist in same directory as Dockerfile, to build with Dockerfile, but to ultimately call it as if it was in ABOVE directory, so that I can copy the correct

Docker best practices: single process for a container

a 夏天 提交于 2021-01-27 04:37:53
问题 The Docker best practices guide states that: "...you should only run a single process in a single container..." Should Nginx and PHP-FPM run in separate containers? Or does that mean that micro service architectures only run one service or "app" in a container? Having these services in a single container seems easier to deploy and maintain. 回答1: Depending on the use case, you can run multiple processes inside a single container, although I won't recommend that. In some sense it is even

How am I supposed to use a Postgresql docker image/container?

↘锁芯ラ 提交于 2021-01-27 04:17:29
问题 I'm new to docker. I'm still trying to wrap my head around all this. I'm building a node application (REST api), using Postgresql to store my data. I've spent a few days learning about docker, but I'm not sure whether I'm doing things the way I'm supposed to. So here are my questions: I'm using the official docker postgres 9.5 image as base to build my own (my Dockerfile only adds plpython on top of it, and installs a custom python module for use within plpython stored procedures). I created

How to install kerberos client in docker?

时间秒杀一切 提交于 2021-01-22 07:09:23
问题 I am trying to create Docker image by next Dockerfile . It must to install Kerberos client. Dockerfile : FROM node:latest RUN export DEBIAN_FRONTEND=noninteractive RUN apt-get -qq update RUN apt-get -qq install krb5-user libpam-krb5 RUN apt-get -qq clean COPY / ./ EXPOSE 3000 CMD ["npm", "start"] Next command RUN apt-get -qq install krb5-user libpam-krb5 from Dockerfile ask me to enter the value to interactive prompt which looks like: Default Kerberos version 5 realm: The point is that the

How to install kerberos client in docker?

邮差的信 提交于 2021-01-22 07:07:55
问题 I am trying to create Docker image by next Dockerfile . It must to install Kerberos client. Dockerfile : FROM node:latest RUN export DEBIAN_FRONTEND=noninteractive RUN apt-get -qq update RUN apt-get -qq install krb5-user libpam-krb5 RUN apt-get -qq clean COPY / ./ EXPOSE 3000 CMD ["npm", "start"] Next command RUN apt-get -qq install krb5-user libpam-krb5 from Dockerfile ask me to enter the value to interactive prompt which looks like: Default Kerberos version 5 realm: The point is that the

How to install kerberos client in docker?

笑着哭i 提交于 2021-01-22 07:07:33
问题 I am trying to create Docker image by next Dockerfile . It must to install Kerberos client. Dockerfile : FROM node:latest RUN export DEBIAN_FRONTEND=noninteractive RUN apt-get -qq update RUN apt-get -qq install krb5-user libpam-krb5 RUN apt-get -qq clean COPY / ./ EXPOSE 3000 CMD ["npm", "start"] Next command RUN apt-get -qq install krb5-user libpam-krb5 from Dockerfile ask me to enter the value to interactive prompt which looks like: Default Kerberos version 5 realm: The point is that the

docker run script which exports env variables

旧巷老猫 提交于 2021-01-21 12:35:45
问题 I've search some of the questions already like docker ENV vs RUN export, which explains differences between those commands, but didn't help in solving my problem. For example I have a script called myscript : #!/bin/bash export PLATFORM_HOME="$(pwd)" And have following lines in Dockerfile: ... COPY myscript.sh / RUN ./myscript.sh I've also tried to use ENTRYPOINT instead of RUN or declaring variable before calling the script, all that with no success. What I want to achieve is that PLATFORM

docker run script which exports env variables

点点圈 提交于 2021-01-21 12:35:29
问题 I've search some of the questions already like docker ENV vs RUN export, which explains differences between those commands, but didn't help in solving my problem. For example I have a script called myscript : #!/bin/bash export PLATFORM_HOME="$(pwd)" And have following lines in Dockerfile: ... COPY myscript.sh / RUN ./myscript.sh I've also tried to use ENTRYPOINT instead of RUN or declaring variable before calling the script, all that with no success. What I want to achieve is that PLATFORM

Mounting Maven Repository to Docker

∥☆過路亽.° 提交于 2021-01-21 09:32:34
问题 I am trying to build a Java application and make a package using docker. This builds needs a maven repository which I don't want to include in the image, since it's very large. I wanted to try using volumes and mount my local maven repository to the maven repository in the image. I used apt-get install -y maven in order to have maven available, but I can't find the directory .m2 in the image $HOME . I used ls -la $HOME , ls -la and ls -la /root to find the maven home, but there is no .m2