From 7f79c78c2394547c4734c776efb3e72f545e9f9e Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 3 Apr 2025 17:14:56 +0200 Subject: [PATCH] Update README.md --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cdc6fcad5..a049fcb76 100644 --- a/README.md +++ b/README.md @@ -29,20 +29,30 @@ One can quickly test docker by running: docker run hello-world ``` +Clone this repo using the command git clone and the url of this repo. + This repo contains a git submodule sintonia_webapp, it refers to this [repo](https://git.congegni.net/Congegni/sintonia_webapp). -To pull the repo, open a terminal in the root of this project and run this command: +Right now the submodule is not set up properly, so open a terminal in the root of this project and run this command: ``` - git submodule update --init --recursive --remote && cd sintonia_webapp && git checkout dev && cd .. + git clone ssh://gitea@git.congegni.net:4022/Congegni/sintonia_webapp.git && cd sintonia_webapp && git checkout dev && cp .env.dev .env && cd .. ``` The folder sintonia_webapp now it's synced with the dev branch (the currently active branch). -In the sintonia folder, edit the file docker/config.yml by adding to the public url variable the local url (for dev add http://127.0.0.1:9876) +Return to the sintonia project folder, run this commands: -Add a string to the api_key and secret_key field, for dev it can be any random string +``` +# Clean and build +make clean +cp .env.dev .env +DOCKER_BUILDKIT=1 docker-compose build -Copy or rename the file .env.dev to .env +# Setup +make dev-certs +docker-compose run --rm legacy make build +docker-compose run --rm api libretime-api migrate +``` Run the following command: ```