Giter Club home page Giter Club logo

Comments (8)

Adafede avatar Adafede commented on July 30, 2024

Hi @stuchalk!

It is difficult to understand what you are looking for following your previous issue.

Maybe you could reach out for more details about your motivations

Anyway, to be able to "see" your local LOTUS instance, if everything went well, you should be able to add a port of your choice to docker-compose.yml and you should be able to access a local version.

services:
  lotus-online:
    build: '.'
    restart: always
    image: nponline/lotusweb:latest
    container_name: lotus-online
    volumes:
    - ./data:/data
    ports:
      - '8092:8092' // This is the port you want to add

And then, after running

docker-compose up -d --no-deps --build lotus-online

If you run

docker ps -a

You should see

CONTAINER ID   IMAGE                      COMMAND                  CREATED          STATUS          PORTS                                 NAMES
c43eaf307982   nponline/lotusweb:latest   "java -Xmx10000m -Dj…"   3 seconds ago    Up 1 second     0.0.0.0:8092->8092/tcp                lotus-online
84f068ba15fe   mongo:4.0.6                "docker-entrypoint.s…"   10 minutes ago   Up 10 minutes   27017/tcp, 0.0.0.0:27019->27019/tcp   npoc-mongo-db

And opening 0.0.0.0:8092in your browser should show you your local LOTUS.

Hope this helps and sorry if your question was misunderstood.

from lotus-web.

stuchalk avatar stuchalk commented on July 30, 2024

from lotus-web.

Adafede avatar Adafede commented on July 30, 2024

Sadly, I am not able to reproduce your issue. It might be some platform/network/version specific one we did not encounter yet.

Anyway, I still did not understand your use case entirely so do not hesitate if there is something we can help with!

from lotus-web.

stuchalk avatar stuchalk commented on July 30, 2024

from lotus-web.

Adafede avatar Adafede commented on July 30, 2024

Rebuilding the website is probably not the way to go then.

There are multiple ways to access the data locally:

I have difficulties understanding your question about the indices of the DB. Those are to speed up the website later. If you built the MongoDB correctly, you shall be able to "visualize" it through any app of your choice to do so (DataGrip as an example). This is independent from Docker or indices

from lotus-web.

stuchalk avatar stuchalk commented on July 30, 2024

I have looked at each of these resources and I do not see another copy of the database in MongoDB, which is what I would like to use the data. If I am missing something please let me know...

from lotus-web.

Adafede avatar Adafede commented on July 30, 2024

You did not miss anything, this is because the mongoDB is only used by the website.

You should be able to fill the DB with the last Zenodo version using https://github.com/Adafede/LOTUSfiller. There is a small R helper to get the huge csv in the correct format to get into the DB. Hope this helps...

from lotus-web.

stuchalk avatar stuchalk commented on July 30, 2024

OK, I try this. Thanks for the help!

from lotus-web.

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.