mirror of
https://github.com/Tha14/uam-docker.git
synced 2024-11-24 19:33:01 +01:00
Initial commit
This commit is contained in:
commit
b7f4289b8a
11
README.md
Normal file
11
README.md
Normal 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
17
uam/docker-compose.yml
Normal 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
7
uam/entrypoint.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user