diff --git a/README.md b/README.md new file mode 100644 index 0000000..abd3390 --- /dev/null +++ b/README.md @@ -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 ! \ No newline at end of file diff --git a/application/launcher_json.service b/application/launcher_json.service new file mode 100644 index 0000000..ee5d434 --- /dev/null +++ b/application/launcher_json.service @@ -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 diff --git a/launcher.json b/launcher.json index b3dbf66..eb8954b 100644 --- a/launcher.json +++ b/launcher.json @@ -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": {