Code Monkey home page Code Monkey logo

Comments (5)

sebastianhutter avatar sebastianhutter commented on August 17, 2024 1

@noinput the build works flawlessly ;-) the issue is how the docker container is spun up afterwards. the docker-compose file would need fixing.

the docker-compose file seems to have been written with local development in mind.

the process is the following:

  1. the image gets build - during the build, the keypair.json is generated and stored in the image (/app/src/keypair.json)

  2. a container is created from the image and uses the hosts app directory to overwrite the images app directory via a bind mount (https://github.com/gladiusio/gladius-node-client/blob/master/docker-compose.yml#L16)

  3. the application fails because there is no keypair.json available.

for a quick test, the easiest approach is to remove the bind mount from the docker-compose file (delete line 16) and run the docker-compose command again.

from gladius-archive-node.

sebastianhutter avatar sebastianhutter commented on August 17, 2024

The problem is in the docker-compose file.

During the image build the Dockerfile creates the keypair.json but the docker-compose overwrites the app directory with the hosts app dir where we do not have a keypair.json

https://github.com/gladiusio/gladius-node-client/blob/master/docker-compose.yml#L16

Either remove the host volume mount or execute npm run setup during container start

from gladius-archive-node.

sebastianhutter avatar sebastianhutter commented on August 17, 2024

can you post the error message or a more detailed description of the issue ? I think the best approach is that you create a new issue and we discuss the details there :-)

from gladius-archive-node.

causehacker avatar causehacker commented on August 17, 2024

I got the same error on a fresh install, nothing in the build logs. is there a way to build this with debug output that would help? @sebastianhutter

from gladius-archive-node.

ditrone avatar ditrone commented on August 17, 2024

@sebastianhutter

That resolved my issue, thanks!

from gladius-archive-node.

Related Issues (10)

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.