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 ## How to use
1. Make sure you have docker and docker-compose installed on your host. 1. Make sure you have docker and docker-compose installed on your host.
2. Clone this repository. 2. Clone this repository.
3. Add your Public Key by editing the docker-compose.yml file. 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 root of this repository: 4. Execute the following command in terminal while being in the `uam` directory of this repository:
```docker-compose -d```
```docker-compose up -d```
## Information ## Information
This container will download the latest version of uam every time it is started. 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 memlock: -1
volumes: volumes:
- "./entrypoint.sh:/opt/entrypoint.sh" - "./entrypoint.sh:/opt/entrypoint.sh"
- "/opt/uam_data:/root/.uam"
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY}" command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY}"
environment: environment:
- PBKEY= - PBKEY=

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
cd /tmp 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 wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb
dpkg -i uam-latest_amd64.deb dpkg -i uam-latest_amd64.deb
cd /opt/uam/ cd /opt/uam/