Initial commit

This commit is contained in:
Tha14 2022-12-01 19:32:20 +02:00
commit b7f4289b8a
No known key found for this signature in database
GPG Key ID: C2B875C3A9D53CFC
3 changed files with 35 additions and 0 deletions

11
README.md Normal file
View File

@ -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.

17
uam/docker-compose.yml Normal file
View File

@ -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=

7
uam/entrypoint.sh Executable file
View File

@ -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