Giter Site home page Giter Site logo

Comments (7)

Pugmatt avatar Pugmatt commented on May 30, 2024 2

Yes, I could do this. Only reason why I didn't add this at first is because the local IP can occasionally change, but I'll add the option for people who know what they're doing.

from bedrockconnect.

MarcProe avatar MarcProe commented on May 30, 2024

My use case is that I want to run it in docker on a rasbpi... This was the first issue I ran into.

from bedrockconnect.

MarcProe avatar MarcProe commented on May 30, 2024

I just realized that there is no ip input if you omit generatedns. I don't need that, since I have my own DNS, so I have it now running on my Raspberry Pi in Docker.

Here's the Dockerfile, for anyone interessted.

FROM hypriot/rpi-java
RUN mkdir /brc
COPY BedrockConnect-1.0-SNAPSHOT.jar /brc
WORKDIR /brc
EXPOSE 19132/udp
CMD ["java", "-Xms1G", "-Xmx1G", "-jar", "BedrockConnect-1.0-SNAPSHOT.jar", "nodb=true"]

Build it:

docker build -t bedrock-connect .

Docker command line:

docker run --name "bedrock-c" -d --restart always -p 19132:19132/udp bedrock-connect

from bedrockconnect.

Pugmatt avatar Pugmatt commented on May 30, 2024

Ah okay, I didn't realize you were trying to do a solution outside of the video tutorial. The generatedns is done specifically for the DNS software used in the video tutorial I have for setting BedrockConnect locally, so in cases like yours where you already have a different DNS software, it would not be required. Glad to see you got it working!

from bedrockconnect.

cjr222 avatar cjr222 commented on May 30, 2024

@MarcProe I was working on the same container setup today today. If you set it to nodb, it's supposed to save the serverlist to a file. Have you figured out a way to make that persistent in the container with a volume?

from bedrockconnect.

MarcProe avatar MarcProe commented on May 30, 2024

@cjr222 yes.

Change the mkdir command in the Dockerfile above to
RUN mkdir -p /brc/players

and mount that directory as volume:

docker run --name "bedrock-c" -d --restart always -v /opt/bedrockconnect/:/brc/players -p 19132:19132/udp bedrock-connect

This will store the "nodb" files in /opt/bedrockconnect (create it first)

from bedrockconnect.

MarcProe avatar MarcProe commented on May 30, 2024

Ah okay, I didn't realize you were trying to do a solution outside of the video tutorial.

Yes, sorry for the confusion.
This issue is a little bit derailed now, feel free to just close it unless you intend to implement the static ip swich nevertheless (I don't think it is needed).

Thanks for your great work! Now my son, his friend and the dads can play on one server using a Switch, a PS4 and two Laptops.

from bedrockconnect.

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.