Giter Site home page Giter Site logo

dockerize-me's People

Contributors

fiunchinho avatar rossf7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockerize-me's Issues

Permission denied for writing the Dockerfile

Error

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'

Details

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,

can't open file '/code/dockerize-me/dockerize.py'

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.