plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: Windows Development Docker-Entrypoint

Open mihkuno opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

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 avatar Aug 24 '24 10:08 mihkuno

Possible duplicate of #834 and #3198

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

mihkuno avatar Aug 25 '24 02:08 mihkuno

@mihkuno

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

RStha0 avatar Sep 05 '24 06:09 RStha0

@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.

RStha0 avatar Sep 05 '24 06:09 RStha0

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

akshat5302 avatar Sep 05 '24 07:09 akshat5302