commit b7f4289b8a8d93caeaf10e8c3d6b40e86ecdf31f Author: Tha14 Date: Thu Dec 1 19:32:20 2022 +0200 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..5b22205 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Run UAM in a Docker container + +## How to use +1. Make sure you have docker and docker-compose installed on your host. +2. Clone this repository. +3. Add your Public Key by editing the docker-compose.yml file. +4. Execute the following command in terminal while being in the root of this repository: +```docker-compose -d``` + +## Information +This container will download the latest version of uam every time it is started. diff --git a/uam/docker-compose.yml b/uam/docker-compose.yml new file mode 100644 index 0000000..53b27de --- /dev/null +++ b/uam/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.3' + +services: + uam: + image: debian:bullseye-slim + container_name: uam + restart: unless-stopped + stop_grace_period: 20s + network_mode: host + ulimits: + rtprio: 95 + memlock: -1 + volumes: + - "./entrypoint.sh:/opt/entrypoint.sh" + command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY}" + environment: + - PBKEY= diff --git a/uam/entrypoint.sh b/uam/entrypoint.sh new file mode 100755 index 0000000..080c25a --- /dev/null +++ b/uam/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/sh +cd /tmp +apt update && apt -yq install wget libglib2.0-0 +wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb +dpkg -i uam-latest_amd64.deb +cd /opt/uam/ +./uam --pk $1 --http [127.0.0.1]:17099 --no-ui