Category : containers

I have run docker (below) which has installed with some data science tools docker run -d -p 8888:8080 –name "myworkspace" –shm-size 512m –cpus=2 –memory=4g mltooling/ml-workspace:0.13.2 then I run my dashboard dashapp.py inside the container terminal : if __name__ == ‘__main__’: app.run_server(debug=True, port=6066) then, the output give this IP address to access the dashboard –> http://127.0.0.1:6066/ ..

Read more

I’m currently trying to mount a Docker container directory to my local host directory. My local folder has the path C:/Users/lp/local_env-Returns/ and has the following files: cmi_forecast_script.py , Dockerfile, requirements.txt , .dockerignore and sales_data.xlsx. I’m running the Python script when I run the Docker container of the Dockerfile. This creates a csv_file in my Docker ..

Read more

I am trying to deploy a containerized Flask web application on Heroku, but it does not run and I get the below errors in Heroku’s logs heroku logs –tail –app containerized-test-app: 2021-09-18T23:31:47.871670+00:00 heroku[web.1]: State changed from crashed to starting 2021-09-18T23:31:55.365419+00:00 heroku[web.1]: Starting process with command `/bin/sh -c python3.9 /opt/stonks_app/start.py` 2021-09-18T23:31:56.239496+00:00 heroku[web.1]: Process exited with status ..

Read more

In many of the problems I work on, I find that I’ll have a custom class, then a container class that stores those objects and methods that acts on all the objects in the class. For example, consider a curve class, and a container. class Curve: def __init__(self, args): self.label def getLength(self): # code that ..

Read more