What I’m doing I am using AWS batch to run a docker container for a large compute job. I have configured the ECR/ECS successfully to the best of my knowledge but am having issues running the required commands for reasons that are beyond my level of understanding with docker ( newbie ) What I need ..
I’m installing argon2 for Python with RUN apk add py3-argon2-cffi. This installs the Python argon2 package from Alpine (https://alpine.pkgs.org/3.14/alpine-community-x86_64/py3-argon2-cffi-20.1.0-r1.apk.html). When I try to import it with import argon2 I get ModuleNotFoundError: No module named ‘argon2′ I don’t want to install argon2 with pip because I don’t have gcc installed. gccwould tripple my container size and ..
When I run the following command: docker-compose run django python manage.py startapp hello OR docker-compose run django python manage.py createsuperuser Instead of starting a new container, it opens a Postgres shell. However, when I’m using exec, like so: docker-compose exec django python manage.py createsuperuser Then it works as expected. Here is my docker-compose.yml file: version: ..
I am new to containerizing windows applications. I have a python project which uses win32com library to open and do operations like editing, track changes, commenting on MS Word documents(MS Office already installed on my local machine). Now is it possible to containerize the whole application as a single docker image which contains both MS ..
I am running into the problem whenever I try to load custom trained NER model of spacy inside docker container. Note: I am using latest spacy version 3.0 and trained that NER model using CLI commands of spacy, first by converting Train data format into .spacy format The error throws as following(You can check error ..
Under the same directory, I have a main.py and a module.py. I want to call module.py from main.py using the handle mod. Normally, what I’d just write in main.py: import module as mod However, I found out by dumb trial and error that the above does not work when I’m in a Docker container. In ..
Try to build docker-compose container on host machine. The problem with grpcio, which fails all the time. Error: distutils.errors.CompileError: command ‘/usr/bin/gcc’ failed with exit code 1 ERROR: Failed building wheel for grpcio With VERY big traceback Interesting that on my laptop there are no any problems with it. Container works well. I have tried (language ..
I am trying to connect to an external MySQL database with public IP from a Docker container with no success. The script I am trying to execute is Python with sqlalchemy and pymysql. The script works correctly if I execute it directly, but it fails when I try to execute it from the docker container. ..
I created a python based Azure Time triggered Function on custom container. For many months it worked fine, but suddenly stopped working since last week. Examining the logs shows this error 2021-07-20T08:39:57.871Z INFO – Waiting for response to warmup request for container [Container Name]. Elapsed time = 199.7027324 sec 2021-07-20T08:40:13.018Z INFO – Waiting for response ..
I build a sample flask app by this tutorial Afterwards I tried to build a docker out of it and followed the steps in this tutorial The app runs in debug mode in localhost. The docker is build without any error. When I try to run the docker in debug mode, there pops up an ..