Category : docker-container

So, I have to dockerize a node.js app. Here is the app: https://github.com/CherryCircle/MySQLSlowLogAnalyzer In order to function I have to run node slowLogAnalyzer.js And then node slowLogAnalyzer.js mysql-slowquery.log Where mysql-slowquery.log is the name of the file which I have to pass. The file is located in the same directory. One more problem is that the ..

Read more

I have a Web Application working fine in Docker Container, using the Development Environment configuration (ASPNETCORE_ENVIRONMENT=Development), however the problems started when I decided to add a Test Environment Configuration. When I run Docker-Compose file with the ASPNETCORE_ENVIRONMENT=Test, the following error message is logged and the application doesn’t start in Docker. Why the Environment Configuration would ..

Read more

I have a dockerfile FROM python:3 WORKDIR /app ADD ./venv ./venv ADD ./data/file1.csv.gz ./data/file1.csv.gz ADD ./data/file2.csv.gz ./data/file2.csv.gz ADD ./requirements.txt ./venv/requirements.txt WORKDIR /app/venv RUN pip install –no-cache-dir -r requirements.txt CMD ["python", "./src/script.py", "/app/data/file1.csv.gz", "/app/data/file2.csv.gz"] After building an image from it and running it, the image runs the app as it should, but then the container shuts ..

Read more

I have two containers (both .net-core), a Web Application and a Web API, the Web Application can be accessed from the host machine using http://localhost:51217, however I can’t access the Web API using http://localhost:51218, I got the connection refused, in order to access the Web API, I had to change the Kerstel URL configuration from ..

Read more

Using – Docker version 20.10.7, build f0df350 This is what I want to do: Have two containers in same docker network – one each for MongoDb and Mongo-Express. Expose localhost port 8090 to container port 8081 for Mongo-Express. Not exposing port in the MongoDd container. Scenario 1: works fine Using the run statements as below, ..

Read more