Git Product home page Git Product logo

Comments (7)

JairajGaur avatar JairajGaur commented on June 13, 2024 1

I just did a rebuild using docker-compose up -d --build vector-admin and did not crash. Im not sure how the document-processor folder is missing on your build, since that is typically the case of a COPY not working. The folder is there for sure?

Yes, the folder is there for sure. The other way of running the docker for vector-admin and Postgres are working fine. Just one more extra point to add regarding my local setup. I'm using windows OS for my setup.

from vector-admin.

timothycarambat avatar timothycarambat commented on June 13, 2024

Can you try running docker build from within the docker/ folder instead of outside of it? The Docker context is not root of the repo and is instead from within the docker folder.

from vector-admin.

JairajGaur avatar JairajGaur commented on June 13, 2024

It's working if I run below commands within the docker/.
docker-compose up -d --build postgres
docker-compose up -d --build vector-admin

But issue wasn't an issue few days back as I was able to build using Dockerfile directly. This started happening since yesterday.

from vector-admin.

timothycarambat avatar timothycarambat commented on June 13, 2024

I just did a rebuild using docker-compose up -d --build vector-admin and did not crash. Im not sure how the document-processor folder is missing on your build, since that is typically the case of a COPY not working. The folder is there for sure?

from vector-admin.

timothycarambat avatar timothycarambat commented on June 13, 2024

To add onto this, we also have automated docker builds that are pushed to Docker Hub which are also not failing

from vector-admin.

rawpixel-vincent avatar rawpixel-vincent commented on June 13, 2024

I had the same issue to build the image from the Dockerfile
you need to run with the context at the root of the repo

From the root of the repository:

C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command docker build . --pull --rm -f "docker\Dockerfile" -t vectoradmin:latest "docker"

was running on linux so not entirely sure about the powershell syntax above

what worked for me

docker build . -f ./docker/Dockerfile

full script

git clone https://github.com/Mintplex-Labs/vector-admin.git
cd vector-admin
cp frontend/.env.example frontend/.env.production
# edit frontend/.env.production as needed for your environment
docker build . -f ./docker/Dockerfile --tag vectoradmin:build-xx

from vector-admin.

timothycarambat avatar timothycarambat commented on June 13, 2024

Correct, referring to the docker-compose you can see the context is ../ when inside of the docker folder. So if not using the docker-compose in the repo you need to target the DockerFile from the root directory. Apologies for the confusion but then the paths during copying will be correct in the DockerFile.

from vector-admin.

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.