Comments (5)
Oh cool to see that issue, that can totally upgrade my experience to use it.
I hope my usecase can help :
I have created a kubernetes template in coder v2 that use envbuilder and provide a DinD (Docker in Docker) sidecar.
That allow me to create my container using the .devcontainer
specifications and I can start a database aside to use it in the workspace project.
Using the dockerComposeFile
can allow to use the DinD sidecar to start the workspace.
Maybe that can be something like this for the implementation.
from envbuilder.
A compose-file is not just a single container, but contains many of the following:
- services
- networks
- volumes
- configs
- secrets
Envbuilder currently relies on GoogleContainerTools/kaniko to build images, and kaniko has no plans to support compose.
In order to support compose, we would, at a minimum, need to either:
a) Switch to a different backend that supports the compose spec, or
b) Implement the compose spec ourselves and build any required images on demand
The tricky thing here is that kaniko in its current incarnation only supports building one image at a time, so we would need to separate the 'build' process from the 'run' process.
from envbuilder.
Yeah, let's consider this out of scope for the v1.0 release and pick it back up depending on feedback
from envbuilder.
Should we close this @bpmct if the investigation is complete?
from envbuilder.
Sure :)
from envbuilder.
Related Issues (20)
- devcontainer: support docker-compose
- Implement devcontainer-lock.json
- Envbuilder create git repo folder with a trailing `.git` HOT 1
- bug: lifecycle script `OnCreateCommand` is not executed. HOT 1
- coder/kaniko: support caching ENV and ARG directives HOT 1
- Stop using deprecated codersdk.LogsSender function
- 401 error for requests to coder.example.com after "Update" option following template change HOT 3
- question: Ability to add features and/or modify feature parameters HOT 3
- feat: Add a way to select a specific branch before building the devcontainer HOT 2
- kubernetes: build with an initContainer or a Job HOT 2
- envbuilder - pass ssh key HOT 1
- envbuilder: fetch upstream changes from repo if local copy is not dirty HOT 9
- Add support for starting envbuilder from a built image
- bug: devcontainer.Compile references global variable
- Allow cache probing to work when instructions (e.g. `RUN`) don't change any files HOT 2
- README & docs refresh HOT 1
- Allow passing Git SSH key as an environment variable HOT 4
- Dev Container features are not cached
- Examples & blog posts HOT 3
- Expand Dockerfile directives in `devcontainer` with environment variables and build args when detecting user, image, etc.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envbuilder.