makeplane / plane

🔥 🔥 🔥 Open Source JIRA, Linear, Monday, and Asana Alternative. Plane helps you track your issues, epics, and product roadmaps in the simplest way possible.
http://plane.so
GNU Affero General Public License v3.0
29.01k stars 1.59k forks source link

[bug]: Windows Development Docker-Entrypoint #5420

Open mihkuno opened 2 weeks ago

mihkuno commented 2 weeks ago

Is there an existing issue for this?

Current behavior

First of all, I tested running the self-hosted script and it worked just fine.

But then, I decided to clone the repo and tried running it.

./bin/docker-entrypoint-*.sh: no such file or directory

It looks like the Dockerfile didn't copy it or its on a different directory since I'm on windows.

image

image

image

image

image

image

Steps to reproduce

1.1. Using windows 11 with the latest docker desktop 1.2. Clone the code locally using:

   git clone https://github.com/makeplane/plane.git
  1. Switch to the code folder:
    cd plane
  2. Create your feature or fix branch you plan to work on using:
    git checkout -b <feature-branch-name>
  3. Open terminal and run:
    ./setup.sh
  4. Open the code on VSCode or similar equivalent IDE.
  5. Review the .env files available in various folders. Visit Environment Setup to know about various environment variables used in system.
  6. Run the docker command to initiate services:
    docker compose -f docker-compose-local.yml up -d

Environment

Production

Browser

None

Variant

Local

Version

v0.22.0-dev

mihkuno commented 2 weeks ago

Possible duplicate of #834 and #3198

However, after setting CRLF to LF, localhost is stuck to nginx timeout

RStha0 commented 1 week ago

@mihkuno

Update the Line Feed of nginx\env.sh from CRLF to LF as well. It worked for me.

RStha0 commented 1 week ago

@akshat5302

may be we should tru adding a .gitattribute file mentioning to update all the *.sh file line endings. If no one's testing this out yet. I can try and create a PR. Please let me know.

akshat5302 commented 1 week ago

Sure @RStha0, please go ahead and create a PR for this