Tag: python

Can't access app deployed with docker and google cloud

I currently have a Linux Debian VM set up through Google Cloud Platform. I have docker installed and would like to start running application containers within it. I’m following the documentation under Docker’s website Found Here under “Running a web application in Docker” I download the image and run it with no issue. I then […]

scan-and-scroll doesn't work from Docker with a ElasticSearch cluster placed outside

Currently I use Docker with an ElasticSearch cluster, which is placed outside the container. From my docker I manage to create a mapping (so my ip it’s good), and I manage to launch simple request in python language. def getBodyOfRoot(self, id): res = self.es.get(index=self.ES_Index, doc_type=self.ES_Type, id=id) return res[‘_source’] this example works well in my host […]

Enable webcam in docker application and access thru AWS ECS

our requirement is , using docker we need to detect webcam from internet (amazon EC2) using cv2 we are trying to detect the webcam from internet by leveraging on AWS ECS. video_capture = cv2.VideoCapture(0) ret, frame = video_capture.read() we are not getting any error but no webcam is detected when we run it from AWS […]

Deploying project in Docker with Angular 4, Django and postgresql

I am trying to deploy on Heroku my project in Docker with Angular 4 frontend with Django backend and postgresql database. At this moment my files look as shown below. I am note sure if this is done properly? I pushed it using heroku container:push web –app myproject but it doesn’t work (Logs). I assume […]

Error run scrapy after install docker

I want to crawl from dynamic content using scrapy. I get from the internet that I must install docker. But after installing it, I always get error when I run: scrapy runspider example.py or other scrapy command. Then I uninstall docker. But the error is still showed. This is the error: then I try to […]

How to use yml file generated by anisible-container

I have been working on the use of ansible-container I created the following setup An ec2 instance with the latests versions of python, pip, docker, docker-compose, ansible, and ansible-container (call this Machine A) On this instance, I downloaded and installed the bleeding edge version of ansible-container from github using pip -e to install to use […]

Migration from MySQL to postgresql using Django and Docker – relation “authtoken_token” does not exist

I am trying to migrate my Django project using MySQL database to postgresql with Docker. When I use MySQL everything works fine. I have all in ORM so when I use MySQL I have to create only database and do python manage.py makemigrations and then python manage.py migrate and I get ready database with all […]

Issue connecting to Docker container

I am trying to connect a script on a Docker host to a script on a Docker container. The scripts are using Python’s remote queue manager, and they work perfectly outside of Docker, so I’m quite sure the issue is with my Docker configuration or my understanding of Docker port forwarding. The script on the […]

Running python program on docker

I’m newbie using Docker and Python and I’d like some help. I’m trying to run a Python program inside a Docker container. This program needs to run periodically, so my approach was, after cloning and installing my program, to run it as a cron job. I created the Dockerfile with all the steps but it’s […]

Installing Python 3 Docker Ubuntu error command 'x86_64-linux-gnu-gcc

I’m trying to create a dockerfile that uses Python 3. FROM ubuntu:14.04 RUN apt-get update RUN apt-get install -y python3 python3-dev python-pip RUN apt-get install -y libxml2-dev libxslt1-dev libpq-dev libjpeg-dev libfreetype6-dev zlib1g-dev RUN cd /var/projects/apps && pip install -r requirements.txt I get the error fatal error: Python.h: No such file or directory when trying to […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.