Fix persistance, Readme

This commit is contained in:
Tha14 2022-12-08 09:45:28 +02:00
parent b7f4289b8a
commit 2b4370024b
No known key found for this signature in database
GPG Key ID: C2B875C3A9D53CFC
3 changed files with 8 additions and 4 deletions

View File

@ -3,9 +3,11 @@
## 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```
3. Add your Public Key by editing the docker-compose.yml file. Add it to the variable named `PBKEY` without spaces.
4. Execute the following command in terminal while being in the `uam` directory of this repository:
```docker-compose up -d```
## Information
This container will download the latest version of uam every time it is started.
The http service is enabled for 127.0.0.1:17099.

View File

@ -12,6 +12,7 @@ services:
memlock: -1
volumes:
- "./entrypoint.sh:/opt/entrypoint.sh"
- "/opt/uam_data:/root/.uam"
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY}"
environment:
- PBKEY=

View File

@ -1,6 +1,7 @@
#!/bin/sh
cd /tmp
apt update && apt -yq install wget libglib2.0-0
apt update && apt -yq install wget libglib2.0-0 ca-certificates
update-ca-certificates
wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb
dpkg -i uam-latest_amd64.deb
cd /opt/uam/