GithubHelp home page GithubHelp logo

docker-flutter's Introduction

docker-flutter

docker-flutter the perfect ready-to-use flutter dev environment ๐Ÿฅณ

inside the container you'll find

  • flutter (duh)
  • android SDK and a device all ready to go
  • noVNC to see play with the emulator in the broswer

all this is happening inside a devcontainer ๐Ÿคฏ

image

why would i use this?

you get a consistent dev environement in 1 command, no matter the host machine ๐Ÿ˜

spend 0 seconds trying to set up java, android studio, or flutter ๐Ÿ”ฅ

getting started

basic command

by default, docker-flutter will run the flutter doctor command to show you everything is working

docker run -it ethernetz/docker-flutter

image

dev environment

to set up a dev container, you'll also need to

  • volume mount your project in the /developer directory
  • forward port 6080
  • add sleep infinity at the end to make sure the container stays open once its created

the final command should look like this

docker run -it -v "$PWD":/developer -p 6080:6080 ethernetz/docker-flutter sleep infinity

dev container

flutter-docker even works inside a dev container

.devcontainer/devcontainer.json

{
  "image": "ethernetz/docker-flutter:latest",
  "customizations": {
    "vscode": {
      "extensions": ["Dart-Code.flutter", "Dart-Code.dart-code"]
    }
  },
  "forwardPorts": [6080],
  "runArgs": ["--privileged"]
}

running the emulator

once your dev environment is set up, it just takes 2 commands to see your flutter app in an android emulator

start the emulator

/start.sh

image

once the emulator is ready, start the flutter app!

flutter run -d emulator-5554

image

docker-flutter's People

Contributors

ethernetz avatar

Stargazers

 avatar

Watchers

 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.