Questions tagged [docker]
Use this tag for Docker container specifications (Dockerfiles) or for code that interacts with the Docker server of a system.
32
questions
2
votes
2
answers
39
views
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:
...
2
votes
1
answer
42
views
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:
...
3
votes
1
answer
122
views
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 ...
5
votes
2
answers
358
views
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 ...
4
votes
2
answers
2k
views
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 ...
3
votes
0
answers
71
views
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 ...
7
votes
1
answer
1k
views
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 ...
2
votes
0
answers
56
views
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 ...
3
votes
1
answer
92
views
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 ...
2
votes
2
answers
323
views
Multi stage Dockerfile for eccode compilation
I wrote a Dockerfile to install ecCodes for use in a python environment using cfgrib and xarray.
The tarball can be found on the ecCode releases page
Dockerfile
<...
0
votes
0
answers
2k
views
2
votes
2
answers
105
views
Retrieve Logs from Multiple Containers on Remote Server
Recently I had the requirement to allow multiple containers of the same application to be run on a single development server. This requirement drastically changed how we retrieve logs over SSH from ...
0
votes
1
answer
122
views
nginx react.js dockerfile
https://github.com/bbachi/nextjs-nginx-docker
https://github.com/bbachi/nextjs-nginx-docker/blob/main/Dockerfile
...
4
votes
1
answer
2k
views
Ansible playbook to install Docker Swarm
this is my first ansible playbook.
it installs docker in swarm mode and automatically joins the cluster.
could you guys please review my code and show me where it can be improved?
...
2
votes
1
answer
150
views
Docker entrypoint bash script for passing parameters to the containerized app
Source code located here
I am trying to pass extra parameters from a container to the contained application. The following bash script is working to pass extra variables, but I'm not sure that it's ...
1
vote
2
answers
449
views
Bash script (to be used as a login MOTD message) that displays status of docker-compose projects, and individual docker containers
This is for a cheap VPS I use for personal projects. I like having a message of the day displaying system info on login; I wanted to add the status of my docker containers to it, to see if all are ...
1
vote
1
answer
335
views
Dockerfile of Vim + Plugins and .vimrc
What follows is a Dockerfile for my Vim settings, so I could use it anywhere.
While it is public, it is not intended for mass usage, and so the face that it creates the password in the build process ...
4
votes
1
answer
782
views
Historical Funding Rate Miner for ftx.com
I recently started to take a look at the Go programming language and decided to write a small project without practical use.
The objectives were:
Regularly poll the latest funding rates from https://...
3
votes
0
answers
335
views
Microservice for scraping images with celery
I made a project, that scrapes images asynchronously and saves them in container. I have access to them through volume. Scrapy finds images on given web page.
Any tips will be good. But first I would ...
3
votes
1
answer
63
views
Getting weather and cycling data (yr.no, oslobysykkel)
What I am trying to do, is to get weather data, data about bike trips and populate the postgresql database in order to be able to work with this data from Power BI/Tableau/any other tool.
I have two ...
3
votes
1
answer
888
views
Bash script to send certain data from AWC EC2 to CloudWatch
Here's a little bash script I wrote, which basically checks something on an Amazon EC2 instance and reports data to CloudWatch every 60 seconds. I'll run this inside a container. Everything works just ...
6
votes
1
answer
1k
views
Implementation of Gitlab CI + Docker + Spring Boot
i would really appreciate if anyone could invest a bit of time to review what i did. Basically this is first time i do this, and that is reason why i need another set of eyes.
I have Spring Boot ...
3
votes
0
answers
94
views
PowerShell script to execute Docker maintenance, optionally non-interactively
Problem
Developers in my team are new to Docker. I wanted to provide a way to accomplish general Docker housekeeping tasks (like pruning unused images and compacting the Hyper-V volume) largely ...
2
votes
2
answers
130
views
First Dockerfile, I would appreciate critique
As the title says, this is my first Dockerfile. It won't be published on any registry, just for my internal use at home. I'd appreciate any critique of what I could do better. I'm currently working on ...
5
votes
0
answers
800
views
Docker-compose for task-based Flask API with Redis and rq
I am not a Docker guru or expert in Flask or Redis. However, I need to leverage these technologies. I managed to cobble something together that works and would like to submit it for review.
The MWE ...
3
votes
1
answer
47
views
Deployment Automatization for docker builds, kubernetes deploys and secret injection
I've written a small script that automates the tasks I previously did manually for deploying onto our kubernetes clusters and I am quite happy with the results I have, but I do think that what my ...
3
votes
1
answer
690
views
Reviewing the Dockerfile and docker-compose.yml files for a basic nodejs mysql project
I'm new to docker and after much research and stufy I've created a sample application and would like it to be reviewed in case if I'm missing any corner or if there's redundant information that can be ...
3
votes
1
answer
131
views
batch add users to nextcloud on docker with csv
I have a working script that will batch add users to an instance of nextcloud running on top of docker. This version is the result of changes made after asking this question.
I guess I'm looking for ...
5
votes
1
answer
359
views
Batch upload users to nextcloud on docker with bash csv
I have this bash script that adds users to NextCloud from a csv file. It expects to be run from the same directory as the docker-compose.yml file.
I'm pretty new to bash scripting and I'm wondering ...
3
votes
1
answer
111
views
Dockerfile to generate a unit test image AND a production image
I use a single dockerfile to build and run the following images:
Production application image:
...
3
votes
3
answers
826
views
Bool function in PHP to check if you run the script inside docker
I had to do a CLI script that does something, I also had to add a validation that checks if it runs inside the Docker. After some research I found a solution that people check some processes via ...
1
vote
1
answer
66
views
Combining ADD and VOLUME on a nodejs Dockerfile
I have a node project. My scripts section of package.json looks like this:
...