Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
-4
votes
0answers
13 views

Python app and docker server for quick machine learning prototyping

I'm currently developing an app using PySide2 for the GUI and PyTorch, scipy, and other libraries to process my data. However, I reached a point where my laptop is not being able to process the data, ...
0
votes
1answer
29 views

What's a good liveness probe for a Hangfire background job server?

We're in the process of moving everything to K8s and one of our applications is a small .NET Core 2.2 console app that runs a Hangfire background job server. At the moment the app runs as a Windows ...
0
votes
2answers
73 views

Why should I use containers instead of deploying build artifacts directly to Azure App Services or AWS Elastic Beanstalk?

Recently, I have been told by others to look into containerization of my stateless web applications (in this case .NET Core 2.x and 3.1). All of my dependencies are retrieved from public and private ...
-5
votes
0answers
25 views

What happens when a MIT licensed project uses Apache 2.0 drivers to connect to GPLv3 databases? [migrated]

I'm working on a SaaS medical research startup project with a MIT license. The goal is for the source to be open (because then customers can help improve it and find bugs), and end-users who want to ...
0
votes
1answer
69 views

Are Docker images tied to CPU architectures?

Linux Onlyoffice Docker scripts are available for download. Are docker containers tied to a particular CPU architecture (IA64 vs ARM)? I would like to run Onlyoffice on an ARM platform (Raspbery Pi 4 ...
-2
votes
1answer
43 views

Containers Across Operating systems

Curious how containers are portable across development/testing/cloud environments with no worry needed about the underlying infrastructure. Does the Docker Engine essentially standardize operating ...
2
votes
1answer
183 views

At what point does a microservices architecture become “worth it” vs. a monolithic ASP.NET web application?

I'm the maintainer of an ASP.NET WebForms application and am contemplating a refresh of the application in order to eliminate dependency on some legacy libraries, add some features, fix some areas ...
4
votes
3answers
356 views

Does each microservice need its own server running (Tomcat, docker container)

In development I have a Java backend API which I'm running with Tomcat. I'm wanting to wrap the backend in a docker container and deploy to an AWS EC2 instance, and be able to scale up/down. Does ...
0
votes
2answers
103 views

Microservices: how far should coupling / decoupling of application parts relying on the same data backends go?

I am in the process of migrating a pretty much monolithic PHP application to microservices. With the development pipeline, docker containerisation, CI/CD and scalability in mind, what would be the ...
1
vote
1answer
151 views

Build docker images for GUI applications in Linux

Currently I'm building GUI applications for Linux and they have many dependencies( We ship Raspberry Pi devices with the executable installed on each device). My idea is to create a docker image for ...
2
votes
1answer
76 views

Pub-Sub pattern and instance replication

I am porting an event-driven architecture to a container environment (Docker) and I wonder how to take advantage of replication while using pub-sub: if I just increment replicas I end up with many ...
2
votes
1answer
54 views

How to handle patch version bumps for docker images when the software itself is unchanged?

Let's say I'm maintaining a piece of software that I version following the semver spec. I am also maintaining a docker image for said software, tagged with version tags. What do I do if I need to ...
-1
votes
1answer
75 views

Would you lose any benefits of docker if the docker service ceased to be a daemon?

This author writes about alternatives to docker, such as Podman, Buildah and Skopeo. In addition you can run docker images without the Docker Daemon using nspawn. But I want to run docker-compose ...
0
votes
0answers
38 views

How to manage versioning of different artifacts when using Maven and GitlabCI?

I have been using Maven for almost a year and have recently started using GitLab CICD. I am trying to develop CIs for the build and deployment of microservices. Each microservice is packed in a docker ...
0
votes
0answers
271 views

Jenkins Docker image, to use bind mounts or not?

I am reading through this bit of the Jenkins Docker README and there seems to be a section that contradicts itself from my current understanding. https://github.com/jenkinsci/docker/blob/master/README....
0
votes
0answers
25 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 ...
0
votes
0answers
22 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 ...
-1
votes
1answer
40 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
96 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
127 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 ...
3
votes
3answers
1k 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
256 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
49 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
48 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
77 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
55 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 ...
2
votes
1answer
610 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
224 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
951 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
51 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. ...
7
votes
1answer
742 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 ...
3
votes
2answers
941 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
541 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
66 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
731 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
261 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
156 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
775 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
159 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
673 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
118 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
53 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
4k 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 ...
7
votes
1answer
947 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 ...
19
votes
3answers
8k 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
323 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 ...
0
votes
1answer
811 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
562 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
370 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 ...