Comments (12)
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.
So this is good? Want me to merge the PR?
from fivem.
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.
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.
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.
@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.
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.
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.
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.
Simply awesome :)
from fivem.
It's perfecly fine, I also tried without NO_DEFAULT_CONFIG
, it's still working as usual :)
from fivem.
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)
- I am trying restart script in fivem start.bat HOT 1
- I am trying restart script in fivem start.bat but i seen couldn't find resource script HOT 1
- Building resource webpack failed. Error data: yarn failed. HOT 2
- Entrypoint doesn't pass on SIGKILL to FiveM
- No archive resource in Dockerfile HOT 1
- Outdated version HOT 1
- [QUESTION] Could the webUI be added back to this? HOT 2
- Latest FiveM Version isn't working at container runtime HOT 1
- Fivem problem HOT 2
- README needs txAdmin volume information
- [ citizen-server-impl] Couldn't find resource category [vehicles]. HOT 1
- Change TX admin port HOT 1
- Server keeps restarting for yarn install HOT 1
- Timezone HOT 2
- Yarn in Server Fivem HOT 1
- Adding Scripts to FxServer HOT 1
- Tutorial how to setup DB and resources? HOT 1
- Webpack is busy HOT 1
- This server does not have a license key specified HOT 3
- POLICE / BODYGUARD PEDS don't shoot when onesync off HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fivem.