Questions tagged [docker]
Use this tag for Docker container specifications (Dockerfiles) or for code that interacts with the Docker server of a system.
36 questions
4votes
0answers
73views
Correct abstractions/organisation of a NodeJS GraphQL API
I recently did a quick take-home test for a potential job opportunity. It included building a GraphQL API with nodeJS. I am not an expert in node (mostly use Python at work) but I have used it for ...
2votes
0answers
73views
Performance of a dockerfile that uses vcpkg, c++, rust, swift and npm
I have the following dockerfile, which builds a Backend and Frontend for a large project. The project uses the following technologies: C++ (using vcpkg as a package manager <-- very slow) Swift (...
4votes
1answer
51views
sqlalchemy and alembic integration in FastAPI
I am building a fastAPI + sqlalchemy + alembic + docker-compose reusable template. Full source code: https://github.com/mascai/fastapi_template (commit 77ce7f2) I would appreciate pull-requests =) The ...
6votes
2answers
111views
Bash Script for Docker Image Cleanup
I’ve been working on a bash script to clean up old Docker images while keeping the latest tag for each repository and skipping images currently in use. I’m sharing the script below and would ...
2votes
1answer
142views
Update a docker compose service properly
I'm currently running an executable in Docker that has been mounted as a Docker volume in the foreground. The executable (or the service) continuously generates console output and can be interrupted ...
1vote
0answers
130views
How to reduce the build time/cache Docker image layer in subsequent GitHub Actions runs?
I have a Dockerfile with ubuntu:22.04 as a base image and a manual Python installation(specific version i.e., 3.11.1) layer which takes a long time. How to cache ...
5votes
2answers
2kviews
How to reduce the build time of Docker image layer in GitHub Actions?
I have a Dockerfile with ubuntu:22.04 as a base image and a manual Python installation(specific version i.e., 3.11.1) layer which takes a long time. Approach 1: ...
4votes
1answer
55views
Debian and Docker compose upgrade script, 2nd version
As a continuation of this question, I would like a second review from you. Here is the updated sh script: ...
3votes
1answer
152views
Debian and Docker compose upgrade script
I'm running Debian 12 and Docker compose containers. Once a day, crontab should start the script, but the script should also be called manually. Could you rate my upgrade script file or recommend an ...
5votes
2answers
424views
Parsing gateway ip from `/proc/net/route` in a docker container
In try to replicate the outcome of the following command sequence using php: netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10 I did this using ...
4votes
2answers
7kviews
Install specific version of Python in docker
Downloading specific version like 3.11.1 from https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tgz and installing ...
3votes
0answers
79views
CLI app to spin up a Docker cluster
This is my first Go project. I've written a CLI app to provision a database cluster on docker containers. Since it's a distributed database, you can configure per-node services. For example: to ...
7votes
1answer
2kviews
Nginx Docker image with built from source with modules
I needed Nginx Docker image with additional modules (Lua and headers more) and Lua Prometheus lib. I did not want to use Openresty for that because its Alpine docker image weighs ~110MB, when Nginx ...
2votes
0answers
66views
a C/Python X server interface extension package
The project is named winlin; it's a portmanteau of the words window and Linux. I'm working on a CPython extension to interact with the X server and manipulate windows. I don't have a ton of ...
3votes
1answer
110views
Docker project that deploys a RESTful API with Flask and MySQL
What's up? this is a small project to teach myself Docker. This Docker setup works, healthchecks pass for both app and mysql, app is initialized and is listening as expected, what I'm looking is a ...