systemd-service and updated testing modpack to 02102023 #1

Merged
quentinlegot merged 7 commits from systemd-service into master 2023-10-02 16:58:43 +02:00
3 changed files with 51 additions and 3 deletions

33
README.md Normal file
View File

@ -0,0 +1,33 @@
# Launcher_json
Location of the launcher json needed for the launcher
Contains the file itself and an application which retrieve the latest version of the file on the master branch at each request
## The application
The application retrieve the latest version of the file on the git server at each user request
### Building the app
To build the app, simply type in yout terminal:
`docker build -t launcher_json .`
To run it, type:
`docker run -p PORT:8080 -d --rm --name launcher_json`
Replace `PORT` by the value you want to expose your app
### Systemd service
The repository contain a systemd service file launcher_json.service to place in `/etc/systemd/system` folder, then create the `launcher` user:
`adduser launcher --disabled-password --disabled-login --no-create-home` and `usermod -a -G docker launcher`
Then activate the service using:
`systemctl enable --now launcher_json`
Remember to build the application first !

View File

@ -0,0 +1,15 @@
# systemd service, to start the app at the launch of the system and restart it if it crash
[Unit]
Description=Launcher_json Service
[Service]
# Non-root user, create a new user first and it to docker group
User=launcher
# Workspace directory
# Path to Reposilite executable/script and its configuration.
ExecStart=/usr/bin/docker run -p 8090:8080 --restart unless-stopped -d launcher_json
# Policy
Type=oneshot
[Install]
WantedBy=multi-user.target

View File

@ -2,16 +2,16 @@
"chapters": [
{
"title": "Testing 1.19.3",
"description": "Animals - 29092023",
"description": "Animals - 02102023",
"minecraftVersion": "1.19.3",
"type": "snapshot",
"customVersion": "fabric-loader-0.14.22-1.19.3",
"modspack": {
"mods": [
"https://www.dropbox.com/scl/fi/oa8zdftqkp2qjrs5ba9fm/29092023.zip?rlkey=82a807t9bc5mpes6noypb36m0&dl=1"
"https://www.dropbox.com/scl/fi/varyttpbg8tkwtqfq7172/02102023.zip?rlkey=ud4u4yezctbsnpv4g8rf40v7o&dl=1"
],
"sha1sum": [
"04446885775A370E1A5AF2D9FD0A3DCEC0BAB91E"
"C32E603329977BA094692C020F066E029996979A"
]
},
"java": {