From 2b4370024b144a1d3d79c4e5e321cdff4dc697ab Mon Sep 17 00:00:00 2001 From: Tha14 Date: Thu, 8 Dec 2022 09:45:28 +0200 Subject: [PATCH] Fix persistance, Readme --- README.md | 8 +++++--- uam/docker-compose.yml | 1 + uam/entrypoint.sh | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5b22205..800d19c 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/uam/docker-compose.yml b/uam/docker-compose.yml index 53b27de..04bacd8 100644 --- a/uam/docker-compose.yml +++ b/uam/docker-compose.yml @@ -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= diff --git a/uam/entrypoint.sh b/uam/entrypoint.sh index 080c25a..7b32d30 100755 --- a/uam/entrypoint.sh +++ b/uam/entrypoint.sh @@ -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/