Questions tagged [docker]

Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application.

0
votes
0answers
16 views

Merging php and Nodejs docker images for a developer ready php image used for php application development and CI

For my application I need to provide an image that will be used to develop and release my php application. As well know a php application for the frontend required tools as well such as gulp webpack ...
-3
votes
0answers
29 views

Should a developer be able to create a docker artifact from a lerna monorepo in their development environment? [migrated]

I've recently started using lerna to manage a monorepo, and in development it works fine. Lerna creates symlinks between my various packages, and so tools like 'tsc --watch' or nodemon work fine for ...
0
votes
0answers
20 views

How to access legacy service from behind a reverse proxy

I have a set of services running in Docker containers and are all behind a reverse proxy. Some of those need to contact other non Docker services hosted on different machines. At the moment, Docker ...
0
votes
1answer
35 views

What happens to network connections to the web app running in a pod, when a pod is down in a Kubernetes node?

Each pod represents single instance of the web application in a node of Kubernetes. Lets say 100 users are signed into a web app like Stackoverflow and connected to Pod1 of NodeA. Pod1 is down now. ...
-5
votes
1answer
77 views

How was industry dealing with containerizations and container orchestration before Docker and Kubernetes? [closed]

Before Kafka, we had RabbitMQ, ActiveMQ etc. Mostly there use to be a something before version, in technology. But What was industry using something similar to Docker and Kubernetes, before they ...
-1
votes
1answer
119 views

OS tax in dockerized production environment

I am reading Docker deep dive since I am interested in this shiny technology. I can read: The VM model then carves low-level hardware resources into VMs. Each VM is a software construct ...
2
votes
3answers
355 views

Different Redis instances for different microservices?

Say that we have Kubernetes running with n pods, each being a separate microservice. Now, some of those services need a caching layer. When we take into consideration: the fact that Redis was tested ...
0
votes
1answer
85 views

Broadcast a message to all container replicas

I have two web services, one of which creates resources on disk for the other one to read and process. The resources are subject to irregular change, so I'd like to inform the consumer service when a ...
0
votes
1answer
47 views

Can Kubernetes help with providing more processing power for the same request?

I am fairly new to Docker and Kubernetes and I have a question for which I could not figure out the answer myself. I am working on an application that does string matching on data extracted from ...
1
vote
0answers
42 views

Dynamically start containers to isolate code compilation / running

I'm building a system where I need to measure certain algorithms, which are written by the end users. Obviously running external code is a huge security risk, therefore it needs to be isolated. The ...
1
vote
2answers
62 views

Any patterns for extracting tooling from multiple repositories?

I'm working on a project where an increasing number of small mini apps all share nearly the same tooling - makefiles, dockerfiles, jenkinsfiles and webpack configs, along with a couple of scripts, are ...
-1
votes
1answer
44 views

How do I test my python package (for distributing) for different versions of python?

I have made a small library/application that I intend to distribute. However I want to find out what versions of python can handle my script ? Given that there are many minor and micro versions and ...
1
vote
1answer
336 views

Why place Composer in separate docker container?

Note: this question is not strictly PHP-oriented, since both Docker and Composer can be easily used outside of the PHP ecosystem (although such cases would be rather rare IMO). In one of the projects ...
0
votes
0answers
104 views

Install another OS in docker container?

Learning docker concepts and tried few hello world. Came up with below questiob which I could not find on google. Say I am on Linux box. I want to to install and run windows (along with java, tomcat)...
2
votes
2answers
539 views

Best practices for Docker image node version and .nvmrc

If I'm building microservices using Node on Docker images - it's necessary to keep an idea of what version of Node I'm using. The idea is - I'm going to be running Node locally in development - and ...
0
votes
1answer
49 views

How can I keep a web application easy to self host while still breaking it up in to multiple smaller components

I am working on an open source web application that I will be hosting on my own server and I estimate most users will use that but I also want to easily allow users to run the application themself. ...
5
votes
1answer
479 views

Managing private NPM packages and CI/CD

At work we have an application that is run directly on dev machines, but deployed to Docker swarms (a QA swarm and production swarm). The code and CI/CD pipelines are all in GitLab CE. It uses ...
1
vote
2answers
519 views

Developing and debugging microservices locally

The use case: I am working on a microservice based architecture and I am wondering how I am supposed to debug a microservice (with my IDE attached to it) on my local machine where I develop it. The ...
2
votes
2answers
340 views

Synchronise work across docker containers in a queue

I have a rather simple (i thought) setup that causes me some grief. I am using a queueing system (AWS SQS) and a few worker docker containers with code written in .net core that pull from a queue and ...
3
votes
2answers
60 views

Efficiency of horizontal scaling when Multiple Deployment of same container on a single Host

Do we get efficiency in terms of load handling when the same container (in this case the container has a apache server and a php application) is deployed 5 or more times (i.e. 5 or more containers are ...
1
vote
1answer
574 views

Do I need to secure communications between microservices in a cluster?

So, let's say I have a standard set up for application, that is: - split into micro services - and is running in a cluster (kubernetes or docker swarm, I guess specific implementation does not matter, ...
0
votes
1answer
218 views

Make Docker-based SPA configurable

I have a single page app (Vue JS) that is built and released as docker image. The docker image is based on the official Nginx Docker image and serves the SPA as static content. Until now, there was ...
2
votes
1answer
110 views

Docker and GPU-based computations. Feasible? [closed]

Recently I ran against this question and this Nvidia-docker project, which is an Nvidia Docker implementation and it made me wondering where, why and how this scheme makes sense? I found out some ...
4
votes
1answer
573 views

What are the advantages running a local docker registry?

I do not have production experience with docker and have several questions regarding a local registry: A dockerfile is the description (=recipe) of how an image is built(=cooked, e.g. FROM alpine:3....
1
vote
1answer
131 views

Should I containerize Python 'job' scripts?

We have a python scheduling solution which, at the moment dynamically loads python modules to run each job in a separate process. The jobs are pretty heavy containing some Tensorflow models which ...
0
votes
1answer
551 views

Building docker images in Gitlab CI and pushing to AWS ECR.

I want to do something fairly simply in my Gitlab CI pipeline - I want to build the docker image and push it to an AWS ECR repo. I've looked at this Gitlab CI guide and one of the suggestions it ...
0
votes
1answer
91 views

Using mysql's\mariadb's root user for development on a docker development environent running multiple application instances

I have setup a docker-based development environment having the following images as you can see in docker-compose.yml: version: '2' services: phpBB_dev: build: context: . dockerfile: ...
1
vote
1answer
52 views

Should I put docker commands in my package.json?

I'm currently working on getting a good workflow going on, from development to a kubernetes deployment on cloud platform. I'm pretty comfortable with various docker commands, but rewriting long ...
7
votes
2answers
2k views

best way to install local package into docker image

I have a python package that I wrote and I want to use it within multiple docker builds. However, I can't just install my local package situated outside of Dockerfile folder. And I don't want to ...
6
votes
1answer
727 views

Is mocking microservices a thing?

I'm trying to get my head around a the development workflow for working with microservices and docker multicontainer applications. The thing that I'm particularly trying to solve - is getting a good ...
14
votes
2answers
6k views

Should I include tests in Docker image?

When it comes to tests, I can think of two options: Put both test and application in one image. Include only application code in the image. Create a test-specific container that builds after the ...
1
vote
2answers
2k views

How to build a scalable, containerizable and manageable API with GraphQL, Kafka, Docker, Kubernetes and MongoDB?

I have no doubt regarding what each of the technology does. I have tried all of them as well. What I have doubt with is: In case we use GraphQL, wont it act like a single point of failure if the ...
0
votes
2answers
287 views

Should Java (fat) JARs be published before containerization?

There doesn't seem to be a lot of literature around the best practices when it comes to containerization of Java applications and I'm curious as to what the logical approaches are. It used to be that ...
-1
votes
1answer
628 views

What is the recommended way to storage documents as Microservice / API?

I'am new in Microservices, and this is the scenario. Background: I have an Web Application that requires store and retrieve files and let's say that i need to storage documents (PDFs, Word Documents,...
0
votes
1answer
505 views

Nginx for exposing Docker Swarm services to the Internet?

I'm involved in the development of an enterprise web application whose functionality is separated into microservices deployed in a Docker Swarm. In order to expose these microservices to the Internet ...
1
vote
1answer
307 views

Where to place Docker-related configuration files

Many projects need more than a Dockerfile or a docker-compose.yml in their root to work out of the box (e.g. for local development or a demo): For example a web application might need its runtime, a ...
6
votes
1answer
6k views

Building C++ apps with Docker: how to deal with dynamic linking?

I have a C++ project, cloned from GitHub, which I'd like to build with a Docker image (a customized Debian stable). The image contains the usual tools for compiling C++ apps plus all the dependencies ...
1
vote
1answer
160 views

Using docker as temporary RAM

Scenario: I am designing a system where user uploads a structured data file ~0-5GB in size. I need to let user analyze this file and perform some transformations on the file which essentially means ...
1
vote
2answers
139 views

Is there an intermediate computing model between docker containers and xen hypervisors?

Docker is amazing. You can use it to replicate production and all its quirks on your local machine. Then you can deploy that instance straight through all the staging workflows super-quick. Ie your ...
10
votes
3answers
1k views

Are there benefits to running my development environment in a Docker container?

I develop primarily using Visual Studio on Windows. The problem is that after a while Windows gets bogged down and I'm faced with needing to reinstall Windows. Similarly switching to new machines is ...
8
votes
1answer
543 views

What are the reasons to use docker in your software development process if you're not using it in production?

Docker has a lot of potential to solve problems in my workplace in a large team (100) of software developers and it's use to solve problems in my workplace. This includes: Having a cluster of Docker ...
52
votes
4answers
7k views

Are the development benefits of using Docker negated when using Java compared to other languages closer to Unix binaries?

I had a friend who said: Docker is amazing. You can use it to replicate production and all its quirks on your local machine. Then you can deploy that instance straight through all the staging ...
4
votes
1answer
430 views

How to set up a recurring job server in a Kubernetes cluster

My current task is to set up a system that pushes out notifications to specific users based on a set schedule. Having tackled the push notifications issue, I am now trying to put together a system ...
0
votes
1answer
775 views

Design and setup a centralized logging with microservices / docker

I am developing on a a large webapp system that has multiple docker containers. Imagine a webapp but with many external restful services running on different containers. A microservices setup. I ...
4
votes
2answers
163 views

Are there worthwhile advantages to creating a separate docker container to handle http?

I've got a Python webapp running in docker container and a DB container/service, and I'm wondering if the apache/mod_wsgi functionality should be contained within the container that runs the python ...
2
votes
1answer
461 views

Splitting application code and docker deployment files

I am beginning the process of moving my django stack to docker containers. Most examples I have seen put the Dockerfile and docker-compose.yml files in the same repository as the application source ...
0
votes
1answer
108 views

Controlling the Data of a Database Docker Container

I'm new to Docker and containers in general, and was wondering if: this approach is possible, and are there better/more-proven approaches I have a "Command Central" web app that's responsible for ...
3
votes
1answer
929 views

How should I run multiple instances of my Docker project on one server?

I have built a blogging application, running in several containers that are managed with docker-compose. Now I'm wondering - how does one run multiple instances of such application on one server? I'...
5
votes
1answer
7k views

How to wait for the execution of method and then exit?

I have a console application (dotnet core, ubuntu), that looks like following: void Main() { try { var job = new Job(); job.Start(); while(Console.ReadLine() != "quit"...
3
votes
1answer
663 views

Recommended way to organize and build multiple services for App Engine Flexible Environment with custom runtime

When deploying to Flexible Environment using the default runtime (e.g. python), we just need to specify different app.yaml files with different entrypoint: values. But what would the 'best practice' ...