Giter Site home page Giter Site logo

Comments (12)

frebib avatar frebib commented on July 29, 2024 2

I pushed an updated build for you to try

Running with this config, I think it does what you want

services:
  fivem-monitor:
    image: spritsail/fivem:optional-options
    stdin_open: true
    tty: true
    environment:
      DEBUG: '1'
      NO_DEFAULT_CONFIG: '1'
      LICENCE_KEY: <snip>

Let me know if not. You can drop the DEBUG` envvar too, it's useful for seeing what commands are run in the entrypoint.

...
fivem-monitor_1  | + exec /opt/cfx-server/FXServer +set citizen_dir /opt/cfx-server/citizen/ +set sv_licenseKey <snip>
fivem-monitor_1  |   _______  ______
fivem-monitor_1  |  |  ___\ \/ / ___|  ___ _ ____   _____ _ __
fivem-monitor_1  |  | |_   \  /\___ \ / _ \ '__\ \ / / _ \ '__|
fivem-monitor_1  |  |  _|  /  \ ___) |  __/ |   \ V /  __/ |
fivem-monitor_1  |  |_|   /_/\_\____/ \___|_|    \_/ \___|_|
fivem-monitor_1  | -------------------------------- monitor ---
fivem-monitor_1  |
fivem-monitor_1  | Creating script environments for _cfx_internal
fivem-monitor_1  | Creating script environments for monitor
fivem-monitor_1  | [txAdmin] This version of txAdmin is too much outdated.
fivem-monitor_1  | [txAdmin] Please update as soon as possible.
fivem-monitor_1  | [txAdmin] Version 2.5.1 using data path '/txData'
fivem-monitor_1  | [txAdmin] >> Starting profile default
fivem-monitor_1  | [txAdmin:SetupProfile] =========================================================
fivem-monitor_1  | [txAdmin:SetupProfile] Creating new profile folder...
fivem-monitor_1  | [txAdmin:SetupProfile] Server profile was saved in '/txData/default'
fivem-monitor_1  | [txAdmin:SetupProfile] =========================================================
fivem-monitor_1  | [txAdmin:ConfigVault] Started
fivem-monitor_1  | [txAdmin:Authenticator] Started
fivem-monitor_1  | [txAdmin:Authenticator] ==========================================
fivem-monitor_1  | [txAdmin:Authenticator] ==> Admins file not found.
fivem-monitor_1  | [txAdmin:Authenticator] ==> PIN to add a master account:  0000
fivem-monitor_1  | [txAdmin:Authenticator] ==========================================
fivem-monitor_1  | [txAdmin:DiscordBot] Disabled by the config file.
fivem-monitor_1  | [txAdmin:FXRunner] Started
fivem-monitor_1  | [txAdmin:Logger] Started
fivem-monitor_1  | [txAdmin:Translator] Started
fivem-monitor_1  | [txAdmin:Monitor] Started
fivem-monitor_1  | [txAdmin:PlayerController] Started
fivem-monitor_1  | [txAdmin:WebServer] Listening at  http://localhost:40120/
fivem-monitor_1  | [txAdmin:WebServer] Listening at  https://<snip>.users.cfx.re/

from fivem.

frebib avatar frebib commented on July 29, 2024 1

So this is good? Want me to merge the PR?

from fivem.

Adam-Ant avatar Adam-Ant commented on July 29, 2024

That panel looks interesting, it's certainly something we can look at supporting. Instead of a separate image, I'd probably prefer an env var that disables the +exec statement. Is txAdmin happy with the +set citizen_dir argument - eg, would the below work?

FXServer +set citizen_dir /opt/cfx-server/citizen/ +set sv_licenseKey ${LICENCE_KEY} <user provided args for txAdmin>

from fivem.

frebib avatar frebib commented on July 29, 2024

I've made a PR to allow disabling the default options (#18). If you want to try it out I pushed it to Docker Hub under spritsail/fivem:optional-option

from fivem.

IzioDev avatar IzioDev commented on July 29, 2024

That panel looks interesting, it's certainly something we can look at supporting. Instead of a separate image, I'd probably prefer an env var that disables the +exec statement. Is txAdmin happy with the +set citizen_dir argument - eg, would the below work?

FXServer +set citizen_dir /opt/cfx-server/citizen/ +set sv_licenseKey ${LICENCE_KEY} <user provided args for txAdmin>

I think so.

I've made a PR to allow disabling the default options (#18). If you want to try it out I pushed it to Docker Hub under spritsail/fivem:optional-option

I'm testing it right now.

from fivem.

IzioDev avatar IzioDev commented on July 29, 2024

@frebib I have this log : fivem | /usr/bin/entrypoint: line 26: CONFIG_ARGS+=+set sv_licenseKey xxxxxxxxxxxxxxxxxx: not found

The server is launching but not in monitor mode (aka : txAdmin requires to be launched from inside FXServer in monitor mode, to do that, just execute the run.sh or FXServer.exe without any +exec arguments.)

from fivem.

frebib avatar frebib commented on July 29, 2024

Ah right of course, that's because I didn't put any spaces in the script, oops. I'll push another fixup and you can give that a go. If that doesn't work, I'll switch it to bash arrays which will definitely work

from fivem.

IzioDev avatar IzioDev commented on July 29, 2024

Alright, let me know when the push is done, I'll test it, if you want to try it out yourself, I use this docker-compose file :

  fivem-monitor:
    image: spritsail/fivem:optional-options
    container_name: fivem-monitor
    restart: always
    stdin_open: true
    tty: true
    volumes:
      - ./config:/config
    ports:
      - "30120:30120"
      - "30120:30120/udp"
    environment:
      LICENCE_KEY: xxxxxxxxxxxxxxxxxxxxxx

from fivem.

frebib avatar frebib commented on July 29, 2024

Oh, the CI never ran 🤔
Lemme poke it, then it should be up in a minute or two.
Oh, derp. I need to push it manually

from fivem.

IzioDev avatar IzioDev commented on July 29, 2024

image

Simply awesome :)

from fivem.

IzioDev avatar IzioDev commented on July 29, 2024

It's perfecly fine, I also tried without NO_DEFAULT_CONFIG, it's still working as usual :)

from fivem.

frebib avatar frebib commented on July 29, 2024

Without NO_DEFAULT_CONFIG is the behaviour before, so it should not be any different.
I've merged the PR into master so I'll delete the other Docker image

from fivem.

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.