Code Monkey home page Code Monkey logo

blimp's People

Contributors

cg505 avatar kklin 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

blimp's Issues

Buildkit doesn't work on DigitalOcean Kube cluster

What happened?

โฏ blimp up
Booting cloud sandbox
[Error] Get help at https://kelda.io/blimp/docs/help/
Message: Failed to create development sandbox
Error: rpc error: code = Unavailable desc = transport is closing

The buildkit pod is unhealthy, with the following logs:

time="2020-12-21T04:38:58Z" level=warning msg="/proc/sys/kernel/unprivileged_userns_clone needs to be set to 1."
[rootlesskit:parent] error: failed to start the child: fork/exec /proc/self/exe: operation not permitted

What were you expecting to happen?

Buildkit should successfully start, and the development sandbox should be deployed.

There's some additional UX issues here as well:

  • The error message should be better.
  • The compose file doesn't even require building images. So even if buildkit isn't working, we should let the development sandbox be created.

Reproduction steps

Additional context

Switching to non-rootless images for buildkit may fix the issue on DO.

Reported by Ian Walter in Slack (https://kelda.slack.com/archives/C4LF0KL4D/p1608525499118200)

Add support for `docker-compose run`

Is your feature request related to a problem? Please describe.
We have many environment initialization routines implemented inside the docker image and run with compose (e.g. docker-compose run backend load_db). In order to completely replace docker-compose with blimp, it would be nice that blimp supports that syntax and behaviour.

Describe the solution you'd like
Be able to blimp run backend load_db (with or without support for the other parameters).

Additional context

$ blimp run backend load_db
unknown command "run" for "blimp"

Did you mean this?
	up

PS: I just found this project and looks really promising. Thanks!

Friendly error message upon user accidentally invoke `Docker build` upon `blimp up`

Nice product you have here ๐Ÿ‘ . Here is some feedback from my personal use:

Is your feature request related to a problem? Please describe.
When user accidentally include build command on docker-compose.yml e.g. step to reproduce:

  1. Clone the official example git clone https://github.com/kelda/node-todo && cd node-todo
  2. Edit docker-compose.yml, include a build command, like this:
version: '3'
services:
  web:
    # for example I accidentally include build command here:
    build: .
    entrypoint:
      - "/usr/src/app/node_modules/.bin/nodemon"
      - "/usr/src/app/server.js"
    ports:
      - "8080:8080"
    depends_on:
      - mongo
    volumes:
      - "./app:/usr/src/app/app"
  mongo:
    image: "mongo"
    ports:
      - "27017:27017"
  1. save the file
  2. run blimp up

User will get the following error message which might not be descriptive enough for user to fix the issue:

โžœ  node-todo git:(master) โœ— blimp up
Booting cloud sandbox
Building image for web:
[Error] Get help at https://kelda.io/blimp/docs/help/
build web: start build: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Describe the solution you'd like

  • Catch that error message, and tell user to not avoid docker build command in the docker-compose.yml file.
    OR
  • read the docker-compose.yml file and if build command is detected, refuse to run and display proper err msg.

or maybe somekind of messaging looks like you are trying to invoke Docker 'build' command, this command is not currently supported in Blimp's cloud container. Please check your 'docker-compose.yml' file and remove the 'build' command.

Additional context
User can easily accidentally include build command within docker-compose.yml because they think Blimp is ready-to-use drop-in-replacement for Docker Compose (as you describe it). And lots of users are having build command within their docker-compose.yml.

If they run blimp up and it didn't work, they may think your product is broken or not working as described. They may drop off. So this will be good improvement for new user who might not understand anything of your product.

Well it took me a while to figure out what went wrong too.

Add support for `COMPOSE_FILE` environment variable

Is your feature request related to a problem? Please describe.
In order to specify different docker-compose.yml files, it would be nice that blimp supports the environment variables that docker-compose uses, specifically the COMPOSE_FILE environment variable.

Describe the solution you'd like
When the COMPOSE_FILE environment variable is set, blimp uses it to find the Compose file(s).
This probably also implies adding support for multiple Compose files, because COMPOSE_FILE may specify many files concatenated with :.

Additional context
Probably adding CLI support would be nice too (docker-compose -f file.yaml).

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.