Coder Social home page Coder Social logo

Docker instructions out of date about i2p.i2p HOT 7 CLOSED

i2p avatar i2p commented on May 1, 2024
Docker instructions out of date

from i2p.i2p.

Comments (7)

Aarkon avatar Aarkon commented on May 1, 2024

The general idea was that you would store your config directories on a docker mount and just update the entire image.

Thanks for tuning in! Updating the entire image is just what I did. My compose file is pretty much identical to the one from the docs, but for the sake of completeness (just adapted the paths I mount into the container slightly for public display), let me clarify:

version: "3.5"
services:
  i2p:
    container_name: i2p
    restart: unless-stopped
    image: geti2p/i2p:i2p-i2p-2.1.0
    volumes:
      - "config/i2p:/i2p/.i2p"
      - "torrents:/i2psnark"
    ports:
      - 54321:12345
      - 54321:12345/udp
      - 4444:4444
      - 4445:4445
      - 7657:7657

With that Image, the onlyrouter.config lives in /i2p/.i2p like it used to be. When unpinning the version by changing the image tag to just image: geti2p/i2p and updating with docker-compose pull, I get the above issue where the service in the container expects to find the router.config directly under /i2p and gives me a file with merely three lines of content, listing only a few default port configurations.

from i2p.i2p.

TheGreatestJannet avatar TheGreatestJannet commented on May 1, 2024

Can we reopen this? It looks like that commit didn't solve the issue. If I use anything newer that geti2p/i2p:i2p-i2p-2.1.0 the webui is not available on 7657. Rolling back to 2.1.0 without changing anything in the config fixes the issue.

version: "3.5"
services:
    i2p:
        image: geti2p/i2p:i2p-i2p-2.1.0
        ports:
            - 4444:4444
            - 7657:7657
            - 4445:4445
            - 6668:6668
            - 54321:12345
            - 54321:12345/udp
        volumes:
            - ./i2pconfig:/i2p/.i2p
            - ./i2ptorrents:/i2psnark
        environment:
            - IP_ADDR=0.0.0.0
        restart: unless-stopped

from i2p.i2p.

eyedeekay avatar eyedeekay commented on May 1, 2024

Reopening because people are still reporting it, not sure what's going on yet as it is working for me at the moment.

from i2p.i2p.

eyedeekay avatar eyedeekay commented on May 1, 2024

Please test using the latest checkin:

git clone https://github.com/i2p/i2p.i2p
cd i2p.i2p
docker build -t geti2p/i2p .

and run with:

version: "3.5"
services:
    i2p:
        image: geti2p/i2p
        ports:
            - 4444:4444
            - 7657:7657
            - 4445:4445
            - 6668:6668
            - 54321:12345
            - 54321:12345/udp
        volumes:
            - ./i2pconfig:/i2p/.i2p
            - ./i2ptorrents:/i2psnark
        environment:
            - IP_ADDR=0.0.0.0
        restart: unless-stopped

from i2p.i2p.

bedaro avatar bedaro commented on May 1, 2024

I think the problem is in startapp.sh. Near the bottom, the variable JAVAOPTS is defined but then JAVA_OPTS is referenced. This causes the jar to be started without a i2p.dir.config set, and a bunch of configuration gets created at /root/.i2p instead of at /i2p/.i2p. A router.config gets created there instead, while other stuff still gets referenced in /i2p/.i2p.

When I go into the docker image and remove the underscore from JAVA_OPTS it works as expected.

from i2p.i2p.

eyedeekay avatar eyedeekay commented on May 1, 2024

Oops, here I am with the fix not checked in. That doesn't do anybody any good. Sorry guys about that, thanks @bedaro for calling my attention to it.

from i2p.i2p.

bedaro avatar bedaro commented on May 1, 2024

The latest image worked on my existing config without modification. I haven't tested with a clean slate though

from i2p.i2p.

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.