Giter VIP home page Giter VIP logo

docker-cookiecutter's Introduction

docker-cookiecutter

Cookiecutter in a Docker container.

This almost works. I'm just stuck on figuring this out:

Docker Hub repo: https://hub.docker.com/r/cookiecutter/cookiecutter/

Usage

docker run -e LC_ALL=C.UTF-8 -t cookiecutter/cookiecutter gh:pydanny/cookiecutter-django

Contributing

To set it up for local development:

git clone https://github.com/audreyr/docker-cookiecutter.git
cd docker-cookiecutter
docker build -t cookiecutter .
docker run -t cookiecutter

docker-cookiecutter's People

Contributors

audreyfeldroy avatar ipedrazas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-cookiecutter's Issues

Working Docker Image?

Is there a working Docker image available?

I am trying to get cookiecutter working with Backstage and using this image was hoping there was something cleaner out there.

error in click setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers

% docker build -t cookiecutter .

[+] Building 8.5s (6/6) FINISHED                                                                                                                                                                                                                                                
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                       0.0s
 => => transferring dockerfile: 335B                                                                                                                                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                            0.0s
 => [internal] load metadata for docker.io/library/alpine:3.2                                                                                                                                                                                                              1.0s
 => [auth] library/alpine:pull token for registry-1.docker.io                                                                                                                                                                                                              0.0s
 => CACHED [1/2] FROM docker.io/library/alpine:3.2@sha256:e9a2035f9d0d7cee1cdd445f5bfa0c5c646455ee26f14565dce23cf2d2de7570                                                                                                                                                 0.0s
 => ERROR [2/2] RUN apk add --update       python       python-dev       py-pip       g++ &&       pip install cookiecutter &&       apk del g++ py-pip  python-dev &&       rm -rf /var/cache/apk/*                                                                       7.4s
------                                                                                                                                                                                                                                                                          
 > [2/2] RUN apk add --update       python       python-dev       py-pip       g++ &&       pip install cookiecutter &&       apk del g++ py-pip  python-dev &&       rm -rf /var/cache/apk/*:                                                                                  
#5 0.282 fetch http://dl-cdn.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz                                                                                                                                                                                            
#5 0.492 (1/31) Installing libgcc (4.9.2-r6)                                                                                                                                                                                                                                    
#5 0.517 (2/31) Installing libstdc++ (4.9.2-r6)                                                                                                                                                                                                                                 
#5 0.559 (3/31) Installing binutils-libs (2.25-r3)                                                                                                                                                                                                                              
#5 0.612 (4/31) Installing binutils (2.25-r3)
#5 0.730 (5/31) Installing libgomp (4.9.2-r6)
#5 0.758 (6/31) Installing pkgconf (0.9.11-r0)
#5 0.785 (7/31) Installing pkgconfig (0.25-r1)
#5 0.812 (8/31) Installing gmp (6.0.0a-r0)
#5 0.847 (9/31) Installing mpfr3 (3.1.2-r0)
#5 0.888 (10/31) Installing mpc1 (1.0.1-r0)
#5 0.917 (11/31) Installing gcc (4.9.2-r6)
#5 1.969 (12/31) Installing musl-dbg (1.1.11-r5)
#5 2.022 (13/31) Installing libc6-compat (1.1.11-r5)
#5 2.040 (14/31) Installing musl-dev (1.1.11-r5)
#5 2.184 (15/31) Installing libc-dev (0.7-r0)
#5 2.201 (16/31) Installing g++ (4.9.2-r6)
#5 3.192 (17/31) Installing libbz2 (1.0.6-r3)
#5 3.221 (18/31) Installing expat (2.2.0-r0)
#5 3.252 (19/31) Installing libffi (3.2.1-r2)
#5 3.274 (20/31) Installing gdbm (1.11-r0)
#5 3.307 (21/31) Installing ncurses-terminfo-base (5.9-r3)
#5 3.333 (22/31) Installing ncurses-libs (5.9-r3)
#5 3.367 (23/31) Installing readline (6.3.008-r0)
#5 3.402 (24/31) Installing sqlite-libs (3.8.10.2-r0)
#5 3.438 (25/31) Installing python (2.7.12-r0)
#5 4.192 (26/31) Installing py-setuptools (1.1.7-r0)
#5 4.246 (27/31) Installing py-pip (6.1.1-r0)
#5 4.396 (28/31) Installing python-doc (2.7.12-r0)
#5 4.418 (29/31) Installing python-tests (2.7.12-r0)
#5 5.002 (30/31) Installing py-gdbm (2.7.12-r0)
#5 5.024 (31/31) Installing python-dev (2.7.12-r0)
#5 5.106 Executing busybox-1.23.2-r3.trigger
#5 5.123 OK: 215 MiB in 46 packages
#5 5.604 You are using pip version 6.1.1, however version 22.3.1 is available.
#5 5.604 You should consider upgrading via the 'pip install --upgrade pip' command.
#5 5.614 Collecting cookiecutter
#5 6.025   Downloading https://files.pythonhosted.org/packages/64/4f/66a92457a729104db896321135e05b0cf94a9034fd5345f30d4d8386b957/cookiecutter-2.1.1-py2.py3-none-any.whl
#5 6.056 Collecting jinja2-time>=0.2.0 (from cookiecutter)
#5 6.232   Downloading https://files.pythonhosted.org/packages/6a/a1/d44fa38306ffa34a7e1af09632b158e13ec89670ce491f8a15af3ebcb4e4/jinja2_time-0.2.0-py2.py3-none-any.whl
#5 6.246 Collecting click<9.0.0,>=7.0 (from cookiecutter)
#5 6.459   Downloading https://files.pythonhosted.org/packages/59/87/84326af34517fca8c58418d148f2403df25303e02736832403587318e9e8/click-8.1.3.tar.gz (331kB)
#5 6.668     Complete output from command python setup.py egg_info:
#5 6.668     error in click setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
#5 6.668     
#5 6.668     ----------------------------------------
#5 6.679     Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_UpCeT/click
------
executor failed running [/bin/sh -c apk add --update       python       python-dev       py-pip       g++ &&       pip install cookiecutter &&       apk del g++ py-pip  python-dev &&       rm -rf /var/cache/apk/*]: exit code: 1

Add "git" in the container to accept "gh" syntax

Currently:

Traceback (most recent call last):
  File "/usr/bin/cookiecutter", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/cookiecutter/cli.py", line 106, in main
    config_file=user_config
  File "/usr/lib/python2.7/site-packages/cookiecutter/main.py", line 107, in cookiecutter
    no_input=no_input
  File "/usr/lib/python2.7/site-packages/cookiecutter/vcs.py", line 104, in clone
    raise VCSNotInstalled(msg)
cookiecutter.exceptions.VCSNotInstalled: 'git' is not installed.

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.