fiunchinho / dockerize-me Goto Github PK
View Code? Open in Web Editor NEWThis tool lets you Dockerize your applications using best practices to define your Dockerfile and Docker entry point files.
This tool lets you Dockerize your applications using best practices to define your Dockerfile and Docker entry point files.
Traceback (most recent call last):
File "/app/dockerize-me/dockerize.py", line 49, in <module>
app_deps=app_deps
File "/app/dockerize-me/dockerize.py", line 15, in render
with open("/code/Dockerfile", "w") as file_handler:
IOError: [Errno 13] Permission denied: '/code/Dockerfile'
The current release seems to block when trying to open the Dockerfile in /code/.
Also, the README example uses /app
instead of /code
.
Please see bellow to reproduce current crash using a hello-world
:
root@scal:~# cd /tmp
root@scal:/tmp# git clone https://github.com/brianmyers/hello.git
Cloning into 'hello'...
remote: Counting objects: 11, done.
remote: Total 11 (delta 0), reused 0 (delta 0), pack-reused 11
Unpacking objects: 100% (11/11), done.
Checking connectivity... done.
root@scal:/tmp# cd hello/
root@scal:/tmp/hello# docker run -it --rm -v $PWD:/code fiunchinho/dockerize-me
What's your email? [email protected]
What's your name? tester
Does the container run Java? [False]
Which file/folder needs to be copied to the container? It'll be copied into '/code' [.]
Which port do you want to expose? [No ports exposed]
Do you need an entrypoint to do stuff before running the app? [False]
How do you execute your application? The code lives in '/code' python /code/hello.py
System dependencies (f.e python=2.7.11-r3 py-pip=7.1.2-r0): [None] python=2.7.11-r3 py-pip=7.1.2-r0
App dependencies command (f.e pip install -r requirements.txt): [False]
Traceback (most recent call last):
File "/app/dockerize-me/dockerize.py", line 49, in <module>
app_deps=app_deps
File "/app/dockerize-me/dockerize.py", line 15, in render
with open("/code/Dockerfile", "w") as file_handler:
IOError: [Errno 13] Permission denied: '/code/Dockerfile'
Best regards,
I found this tool via the devops weekly newsletter and like the idea.
When I try to run the command as described in the readme, the following happens:
$ docker run -it --rm -v $PWD:/code fiunchinho/dockerize-me
python: can't open file '/code/dockerize-me/dockerize.py': [Errno 2] No such file or directory
When I start sh
in the container, /code
looks odd:
/ # ls -la /code
ls: can't open '/code': Permission denied
total 0
/ # ls -la / | grep code
drwx------ 82 1000 1000 4096 May 29 14:53 code
Not sure what's wrong. Could you take a look at this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.