Docker Alpine: Error loading MySQLdb module
I am building an Alpine based image of a Django application with MariaDB and I can’t figure out which dependency I should add to my Dockerfile
so that my app could properly connect to the DB.
I am building an Alpine based image of a Django application with MariaDB and I can’t figure out which dependency I should add to my Dockerfile
so that my app could properly connect to the DB.
I’m using nginx in docker from trafex/php-nginx
But I don’t get SQLite working.
The following php code
I am trying to build an optimized PHP image. The strategy that I chose, was to install and compile everything in a build stage and then copy the extensions to a new stage and enable them. This allows me to shed 200MB.
I’m attempting to Dockerize a Vue.js application. I’m using the node:10.15-alpine
Docker image as a base. The image build fails with the following error:
I am working on a small nodejs (nodejs v4.3) project that is using node-serialport https://github.com/voodootikigod/node-serialport. I wrapped it in a docker image. First I successfully used debian as a base image but it had a total size of about 600MB. Then I switched to alpine linux https://hub.docker.com/_/alpine/ and achieved 100MB of image size. However the nodejs project stopped working with alpine as base image. Here are some logs:
I have a script that periodically runs aggregation on a mongodb collection. As the dataset has grown, the amount of time it takes to aggregate has also grown. My aggregation script has recently stopped working consistently, and the error logs show:
error: { [MongoError: server <x> timed out]
name: 'MongoError',
message: 'server <x> timed out' }
I’ve tried debugging this, and the only pattern I can find is that this timeout seems to only occur when the aggregation takes longer than 2 minutes (it times out right around 2m). Does anyone have additional debugging tips for this? The 2-minute thing is giving me the impression that I just need to configure some timeout somewhere but I can’t figure out where or if i’m just falling into a red-herring trap.
I am trying to run a typescript express.js in a docker container. After running the docker I get the following error:
Before I added bcrypt to my package.json, everything was working fine. Now, I get the error message below.
As the title says there are some DNS issues and sometimes when I try to curl inside my docker container https://api.stripe.com/v1/setup_intents it returns curl: (6) Could not resolve host: api.stripe.com. This issue does not happen if I try to curl other websites. docker exec -it php-alpine /bin/sh /var/www/html # curl https://api.stripe.com/v1/setup_intents { works. some json … Read more
I am successfully deploying a Laravel Web Application on ECS using a base image from PHP, in particular 7.3-apache-stretch
from https://hub.docker.com/_/php/