Full credit to @Dzsek for the VS Code DCS-Lua-Injector - if you use that Lua Injector for DCS, and manage/work on multiple DCS servers, the Multi-Injector was written for you!
The Multi-Injector will allow you to inject Lua code into remote DCS instances, and let you choose which instance you inject to.
- Lua injection into a locally running DCS instance
- Lua injection into a remotely running DCS instance
- Docker image push and CI/CD pipelines
- DCS Server Information Editor (to configure Multi-Injector easier)
- OAuth2 (Discord) to allow RBAC and server grouping, then allowing the Multi-Injector to be web-based
- OAuth2 (Google) - as above
- Fork this project and use for secret squirrel stuff & things (won't be open sourced).
- The localhost installation of the injector must have the default password, provided by the upstream project.
- Editor exists but is non-functional at the moment - WIP.
- See the docker-compose.yml
- Realise that you don't have access to my private Docker Registry - don't ask - won't be given.
- Refer to How To Build.
- Create a .env file next to the
docker-compose.ymlwith something along the lines of:
POSTGRES_USER=some-user
POSTGRES_PASSWORD=a-better-password-than-this
- Start the dcs-injector-ui container.
- Navigate to http://localhost:8080/injector.
- Copy/pasta some Lua code in.
- Hit play.
- Profit.
This will be needed until I have the Editor up and running:
- You just noticed that there's only ever one server in the list, Localhost, and are wondering how to manage multiple.
- Connect to the Postgres database (see docker-compose.yml and "How to run" for authentication)
- Execute the following SQL in the database
INSERT INTO injector.dcs_server (name, hostname, port, password) VALUES
('Server1', 'server.domain-name.com', 18080, 'ThisIsNotARealServerOrPassword')
;- If you're not a Java developer - apologies, find one and give them this document.
- See the pom.xml - change the property
project-docker-image.nameto reflect a Container Registry where you have permissions to pull/push. - Run
mvn clean package -Pproduction - Manually push the Docker Image (if desired) to your chosen repository.
None - feel free to do as you wish (so long as it's legal where you live).
I'm not particularly looking for contributors, but if you want to fork it, I can be bribed into helping you out along the way in return for the cost of a coffee. If you know how to fork it and how to write the Java/SQL for it, you can work out how to contact me about buying coffee too. ;)