Coder Social home page Coder Social logo

Comments (36)

nicolasdanelon avatar nicolasdanelon commented on May 4, 2024 38

@sfkpmr maybe I don't want to install Rust on my machine, maybe I just want to download the docker images and run the app on my local environment without installing any dependency...
also docker containers can be used to deploy the app faster on tons of boxes.
if some developer is using M1 and doesn't have a dependency or is just running Linux docker will have all dependencies already built in, configured and ready to run.
Docker is a must

from appflowy.

franciscoafonsoo avatar franciscoafonsoo commented on May 4, 2024 14

Would you guys be open to a Pull Request for a docker-compose and some Dockerfiles ?

I was thinking that it would help local development in the wild to have a docker-compose that launches the db, the backend and the frontend (never dockerized a flutter app but should be possible).

Edit: i'm checking the database scripts. The idea would be to simplify this logic so that random developers can launch the project in a very simple and straight forward way

from appflowy.

 avatar commented on May 4, 2024 12

Please DO create the Docker Image we are interested in hosting it on our servers.

from appflowy.

PabloCastellano avatar PabloCastellano commented on May 4, 2024 10

Yes, please! The Rust+Flutter stack isn't that common nowadays and having to spend more than 1 hour (my case so far) for installing all the Rust and Flutter dependencies, plus compiling... is discouraging, unless you have been waiting for a Notion open source clone for years!

With Docker it would be super easy and fast to just fetch AppFlowy and run it

from appflowy.

franciscoafonsoo avatar franciscoafonsoo commented on May 4, 2024 4

So i will start with something very simple:

  • docker-compose definition for the backend and the database. something like this
version: "3.8"

services:
  backend:
    image: appflowy-backend
    build:
      context: ./backend
      dockerfile: Dockerfile

    ports:
      - 8080:8080

  database:
    image: postgres:14.1-bullseye
    environment:
      DB_USER: postgres
      DB_PASSWORD: password
      DB_NAME: flowy
      DB_PORT: 5433

    ports:
      - 5433:5433

I am reading the db scripts to understand what needs to be done. But should look something like that. After having that done, it's a matter of exploring flutter docker and connecting it.

Is the existing rust Dockerfile working ? @appflowy

from appflowy.

huangxinping avatar huangxinping commented on May 4, 2024 3

Please DO create the Docker Image we are also VERY interested.

It has taken more than 3 hours to install all dependencies so far without success.

from appflowy.

HawksRepos avatar HawksRepos commented on May 4, 2024 3

Yeah we would be keen to do a video on this if we could get a working docker container running on the unraid platform (we can add the template on your behalf if needed) - https://youtube.com/c/IBRACORP

from appflowy.

appflowy avatar appflowy commented on May 4, 2024 3

The backend docker image is ready. Run
make docker_image

image

image

I couldn't find the method to run the GUI desktop application build with flutter in Docker, but I'll keep trying. I'm working on the frontend part that enables communication with the backend. Let me know if I'm on the right track to meet your needs.

from appflowy.

stemount avatar stemount commented on May 4, 2024 2

@sfkpmr what do you propose the use of Docker for? (building? hosting flutter as a pwa or something - not a flutter expert)

from appflowy.

felipefideli avatar felipefideli commented on May 4, 2024 2

+1

from appflowy.

irfanbacker avatar irfanbacker commented on May 4, 2024 2

I couldn't find the method to run the GUI desktop application build with flutter in Docker, but I'll keep trying. I'm working on the frontend part that enables communication with the backend. Let me know if I'm on the right track to meet your needs.

I don't think there is a straightforward way to do it. Users might have to do some external setup to get GUI applications working on docker. Besides, i don't think there is a usecase here. Users could easily use the release zips to run the frontend. If its for easier building, maybe a docker image with mounted folder could be used and the build could be output in the folder.

from appflowy.

MikeWallaceDev avatar MikeWallaceDev commented on May 4, 2024 2

This thread needs a conclusion. There seems to be bits and pieces, but no clear outcome. Can someone write up a blogpost/wiki that explains what our docker containers can do, how to install them, and how to use them? If a PR is needed, let's get that done too. Then we can close this issue.

Who would like to take the lead on this?

@nicolasdanelon @appflowy @franciscoafonsoo @annieappflowy @adamzhoul @lirc572 @antoineozenne

from appflowy.

annieappflowy avatar annieappflowy commented on May 4, 2024 1

Would you guys be open to a Pull Request for a docker-compose and some Dockerfiles ?

I was thinking that it would help local development in the wild to have a docker-compose that launches the db, the backend and the frontend (never dockerized a flutter app but should be possible).

Edit: i'm checking the database scripts. The idea would be to simplify this logic so that random developers can launch the project in a very simple and straight forward way

We're definitely open to PRs. To understand this better, do you want a docker backend or both the backend and the frontend?

from appflowy.

annieappflowy avatar annieappflowy commented on May 4, 2024 1

Yes, please! The Rust+Flutter stack isn't that common nowadays and having to spend more than 1 hour (my case so far) for installing all the Rust and Flutter dependencies, plus compiling... is discouraging, unless you have been waiting for a Notion open source clone for years!

With Docker it would be super easy and fast to just fetch AppFlowy and run it

Love how you put this all together - I can feel your pain now :(
Let's just keep discussing this topic in this thread until we land on a nice solution :D

from appflowy.

sfkpmr avatar sfkpmr commented on May 4, 2024 1

@annieappflowy An image for both would be awesome!

from appflowy.

appflowy avatar appflowy commented on May 4, 2024 1

@franciscoafonsoo It seems possible to docker the flutter desktop application.
https://hub.docker.com/r/openpriv/flutter-desktop

I use docker to host the backend on my laptop to develop the frontend, but I didn't set up the Dockerfile.

from appflowy.

appflowy avatar appflowy commented on May 4, 2024 1

Guys, PRs for this are welcomed :D

from appflowy.

tborychowski avatar tborychowski commented on May 4, 2024 1

There's a whole community of self-hosters who would love to take this for a spin! :-D

from appflowy.

0xN0x avatar 0xN0x commented on May 4, 2024 1

+1

from appflowy.

antoineozenne avatar antoineozenne commented on May 4, 2024 1

I think a docker-compose to launch all the stack (back, front, db) would be great to promote the application. Today, I wanted to test the application on Ubuntu, but there is no "one-command test". In addition, Rust and Flutter are still fairly new, and not everyone is perfectly comfortable with these technologies. While a docker-compose...

from appflowy.

armin771 avatar armin771 commented on May 4, 2024 1

Would it be possible to make the Docker available on DockerHub? Then it would be easy to set up AppFlowy on Unraid.

from appflowy.

MikeWallaceDev avatar MikeWallaceDev commented on May 4, 2024 1

Hello,
A Docker file was created and documented by @rushic24, thanks!

You can find install information here.

from appflowy.

appflowy avatar appflowy commented on May 4, 2024

@sfkpmr The docker file is used to deploy the AppFlowy backend on the local host.

from appflowy.

annieappflowy avatar annieappflowy commented on May 4, 2024

Please DO create the Docker Image we are also VERY interested.

It has taken more than 3 hours to install all dependencies so far without success.

Please join our Discord channel, and I believe some pro hackers can help you out there

from appflowy.

i-iooi-i avatar i-iooi-i commented on May 4, 2024

Yes, docker is very needed to run it

from appflowy.

franciscoafonsoo avatar franciscoafonsoo commented on May 4, 2024

@franciscoafonsoo It seems possible to docker the flutter desktop application. https://hub.docker.com/r/openpriv/flutter-desktop

I use docker to host the backend on my laptop to develop the frontend, but I didn't set up the Dockerfile.

I will then join discord and discuss some things !

from appflowy.

esturniolo avatar esturniolo commented on May 4, 2024

+1 for this

from appflowy.

appflowy avatar appflowy commented on May 4, 2024

@franciscoafonsoo Wow, it seems ok to me. Have you tried it?

  • The existing Dockerfile does not work anymore.

from appflowy.

HawksRepos avatar HawksRepos commented on May 4, 2024

another +1 for this!! a docker container would make it that much easier to set up and run on any server

from appflowy.

adamzhoul avatar adamzhoul commented on May 4, 2024

+1

little idea, let's volume data to the local.
so we can easily back up.
or, users can volume path to apple iCloud path, so data can sync between the company and home easily.

by the way, don't forget to support M1. 😁

from appflowy.

pramadito avatar pramadito commented on May 4, 2024

+1

i would love to develop full stack with docker

from appflowy.

juangburgos avatar juangburgos commented on May 4, 2024

+1

from appflowy.

polypixeldev avatar polypixeldev commented on May 4, 2024

+1
Is there a PR in progress for this?

from appflowy.

armin771 avatar armin771 commented on May 4, 2024

Yeah we would be keen to do a video on this if we could get a working docker container running on the unraid platform (we can add the template on your behalf if needed) - https://youtube.com/c/IBRACORP

That would be fantastic. Would love to get it running on my end under unraid.

from appflowy.

lirc572 avatar lirc572 commented on May 4, 2024

I think it would be more useful to be able to also run the flutter desktop app itself in a docker container during development and display the GUI on the host machine, because it will allow us to use flutter's hot reload for development.

This link is a good reference on how to run GUI apps in a container. Not sure if it will be easy to apply it to the flutter desktop toolchain though.

A web (PWA) version would of course be much easier to run/develop with docker.

from appflowy.

JoyceBabu avatar JoyceBabu commented on May 4, 2024

Hello, A Docker file was created and documented by @rushic24, thanks!

You can find install information here.

The wiki link is redirecting to the GitHub project home page. Is this no longer supported?

Edit: Found the new link here

from appflowy.

Related Issues (20)

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.