Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Containerization #391

Open
1 task done
rohansen856 opened this issue Dec 2, 2024 · 0 comments · May be fixed by #407
Open
1 task done

feat: Containerization #391

rohansen856 opened this issue Dec 2, 2024 · 0 comments · May be fixed by #407
Assignees
Labels
enhancement New feature or request

Comments

@rohansen856
Copy link
Contributor

Describe your improvement idea or feature request

The repository is not currently containerized. Containerizing the repo would not not only help the developers to run it in different environments effortlessly, but also would help in testing the application. I would like to containerize the repo using docker for different emulators.

How would you like to see it implemented?

  1. use different dockerfile for different emulator devices ex.:
  • Dockerfile.linux for linux emulator
  • Dockerfile.windows for windows emulator
  1. use docker compose for effortlessly setting up the environments with just 1 command

attaching a demo of linux emulator for reference:
docker-compose.yaml

version: "3.9"
 services:
   flutter_linux:
     build:
       context: .
       dockerfile: Dockerfile.linux
     environment:
       - DISPLAY=${DISPLAY}
     volumes:
       - .:/app
     network_mode: "host" # Use host networking
     command: ["bash", "-c", "flutter clean && flutter run -d linux"]

Dockerfile:

 FROM ghcr.io/cirruslabs/flutter:3.24.5
 
 WORKDIR /app
 
 COPY . /app
 
 # Install dependencies for Flutter Linux desktop development
 RUN apt-get update && apt-get install -y \
     libgtk-3-dev \
     libblkid-dev \
     liblzma-dev \
     liblzma5 \
     libnss3 \
     libx11-dev \
     libxkbfile-dev \
     libcurl4-openssl-dev \
     xdg-utils \
     cmake \
     ninja-build \
     clang \
     && apt-get clean
 
 RUN flutter config --enable-linux-desktop
 
 RUN flutter clean
 
 RUN flutter pub get

Put here any screenshots or videos (optional)

No response

How can we contact you (optional)

No response

Would you like to work on this issue?

Yes

By submitting this issue, I have confirmed that:

  • I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.
@rohansen856 rohansen856 added the enhancement New feature or request label Dec 2, 2024
@rohansen856 rohansen856 linked a pull request Dec 18, 2024 that will close this issue
4 tasks
@Pavel401 Pavel401 moved this to Todo in TaskWarrior Dec 26, 2024
@Pavel401 Pavel401 moved this from Todo to In Progress in TaskWarrior Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant