Comments (4)
Hi!
it starts a new container each time, so startup is slow. How can I use an existing container if I run docker-compose up beforehand?
You can't reuse it. This architecture is by design. The startup can't be slow, because the overhead of starting a new container tends to zero.
You can find good working examples at:
- https://github.com/evilmartians/terraforming-rails/tree/master/examples/dockerdev
- https://github.com/bibendi/dip-example-rails
from dip.
Hi @bibendi, it's weird but if I run tests from inside the existing container it's a bit faster than if I run them through the dip command (my config is correct). Could it be because on Mac Docker uses a virtual machine behind the scenes? Thanks
from dip.
Probably yes.
I have that numbers on my Linux machine:
$ time dip run bash -c exit
0,76s user 0,10s system
Overhead is only about 0,76s, so it is no bother me.
from dip.
Uhm. I ran that command and I get
dip run bash -c exit 0.55s user 0.15s system 31% cpu 2.194 total
so it's not bad I guess. Perhaps I am complaining too much π‘
Thanks!
from dip.
Related Issues (20)
- dip provision fails if there is a space in the path name HOT 2
- Dip does not wrap an actual container command in quotes on Ubuntu HOT 4
- Since 7.1.2 `shell: false` commands with any argument fails with "undefined local variable or method `default_args' " HOT 2
- Docker compose v2 compat? HOT 8
- Question: Is there a way to use the 7+ version for non-ruby project? HOT 1
- question regarding description string HOT 1
- port forwardings in docker-compose.yml are not activated via dip HOT 2
- Can I use more than one provision or there have another way to run commands each by eachοΌ HOT 4
- `dip nginx` Default Image Change to `nginxproxy/nginx-proxy` HOT 1
- Doesn't work on MacOS Catalina HOT 3
- `docker-compose` is always used instead of `docker compose` HOT 2
- Latest version doesnt recognize the commands
- User Level Permissions by Default? HOT 1
- Feature request: DIP_ROOT_DIR env var
- Question: Is it possible to use Docker Compose profiles? HOT 3
- Make DIP_FILE relative path
- dip commands fails with psych error 'Tried to load unspecified class: Symbol (Psych::DisallowedClass)' HOT 4
- Feature request: Ability to remove environment HOT 1
- Current Docker host user UID special environment variable HOT 2
- replace nginx with traefik HOT 1
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 dip.