Trying to run docker locally

Do I miss something for local testing?
No description
23 Replies
Nathan
Nathan2y ago
ah, looks like the arm image didn't get pushed for apple silicon the Rivet CLI will automatically run this for the correct platform instead of having you run docker build, are you following one of our guides?
Pandelicious
PandeliciousOP2y ago
what should I do then? I do not have rivet.yaml even rivet init inside of bomber folder says I have one already Config file already exists at rivet.yaml
Nathan
Nathan2y ago
did you run rivet init in a parent folder by any chance? it'll look for rivet.yaml in every parent directory
Pandelicious
PandeliciousOP2y ago
I did run at parent by mistake, but manually deleted after. so there is no rivet.yaml at parent level as well
Nathan
Nathan2y ago
hmm, that's odd can you run ls or send a screenshot of the folder?
Pandelicious
PandeliciousOP2y ago
No description
Nathan
Nathan2y ago
ah you're set up correctly, you have a rivet.json. the cli doesn't print out the correct extension. are you getting stuck at a further step?
Pandelicious
PandeliciousOP2y ago
ok, so its rivet.json or rivet.yaml? need to update docs and cli :)) but how to run then?
Nathan
Nathan2y ago
yes haha. where did you see "rivet.yaml" in regards to godot?
Pandelicious
PandeliciousOP2y ago
i tried rivet run ./rivet.json, no success
Nathan
Nathan2y ago
are you trying to deploy to rivet or run the game locally?
Pandelicious
PandeliciousOP2y ago
and ofc when i run rivet init when there is the rivet.json already
No description
Pandelicious
PandeliciousOP2y ago
yes, i want to start with totally local testing without cloud and etc. so no deployment
Nathan
Nathan2y ago
got it. at the moment, you need to add some logic in your code to decide wether to connect to localhost or rivet servers, the tutorial assumes you're deploying to our servers. we have an example of this floating around somewhere, @AngelOnFira thoughts?
Pandelicious
PandeliciousOP2y ago
but before that, i suppose that should run container locally?
Nathan
Nathan2y ago
you can run the server locally without using docker with:
/Applications/Godot.app/Contents/MacOS/Godot --path /path/to/project --headless -- --server
/Applications/Godot.app/Contents/MacOS/Godot --path /path/to/project --headless -- --server
Pandelicious
PandeliciousOP2y ago
ehhh...ok, but it will not have rivet then? I probably miss something here, still trying to figure out how everything is interconnected and working. was sure that container is pretty much the only thing I need to run as single server without scaling and other "cloud/high load" features
Nathan
Nathan2y ago
it's possible to run it with rivet locally, but it's not documented for godot yet. it's something we're working on very soon. you only need a container if running in the cloud, it's slow to build the container every time you test changes when devving locally. what you're saying sounds correct.
Pandelicious
PandeliciousOP2y ago
ok, let me try manually run godot as headless ok, its working. what is the purpose of play test/this machine buttons in rivet panel then?
Nathan
Nathan2y ago
it's meant for exactly what you're trying to d, as in connecting to localhost. i need to check with @AngelOnFira, i don't think the "start local server" button was ever enabled. i think you can do rivet run "/Applications/Godot.app/Contents/MacOS/Godot --path /path/to/project --headless -- --server" then connect to localhost.
Pandelicious
PandeliciousOP2y ago
yeah, if start regular godot headless then its working. was confused by these buttons and lack of info about local testing rivet run expects something different btw CLI_SCRIPT_NOT_FOUND The given script was not found.
Nathan
Nathan2y ago
ah mv rivet exec "/Applications/Godot.app/Contents/MacOS/Godot --path /path/to/project --headless -- --server"
AngelOnFira
AngelOnFira2y ago
Ya, the "this machine" button very much make the assumption that you're running a headless server locally. The "play test" option means that when you press play in Godot, it will connect to Rivet servers instead of local. The idea is that it makes it easier to "play test" your game with other devs or players remotely

Did you find this page helpful?