Giter VIP home page Giter VIP logo

cdk8s-docker's Introduction

Initializing a new app

Initializing a new app requires you to mount the target directory into the container like so: docker run -v /my-new-cdk8s-project:/files brennerm/cdk8s init typescript-app.

Synthesizing your app

Synthesizing works similar but instead of mounting an empty directory you need to mount the directory containing your cdk8s code. This could look like: docker run -v /my-existing-cdk8s-project:/files brennerm/cdk8s synth.

Synthezising Python code

To be able to synthesize Python cdk8s code you need to use the brennerm/cdk8s:python image. It contains additional dependencies like Python 3.7 and pipenv.

Setting the owner of generated files

No matter if you are initializing a new app or synthesizing your manifests, all generated files will have a root ownership afterwards. This happens cause cdk8s is being executed as root to be able to read and write files from and to the volume due to this issue. To fix this you can pass the -u uid=$(id -u) parameter to the docker run command. Tried to prevent executing as root but currently it does not seem possible while keeping a good user experience of the resulting image.

cdk8s-docker's People

Contributors

brennerm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.