mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
92
tools/python/airmaps/sandbox/README.md
Normal file
92
tools/python/airmaps/sandbox/README.md
Normal file
@@ -0,0 +1,92 @@
|
||||
# Sandbox
|
||||
|
||||
This project can show how airmaps works on your computer.
|
||||
|
||||
## Setup
|
||||
|
||||
You must have [docker](https://docs.docker.com/get-docker/) and [docker-compose](https://docs.docker.com/compose/install/).
|
||||
|
||||
0. Change working directory:
|
||||
|
||||
```sh
|
||||
$ cd omim/tools/python/airmaps/sandbox
|
||||
```
|
||||
|
||||
1. Build airmaps service:
|
||||
|
||||
```sh
|
||||
sandbox$ ./build.sh
|
||||
```
|
||||
|
||||
2. Create storage(sandbox/storage directory):
|
||||
|
||||
```sh
|
||||
sandbox$ ./create_storage.sh
|
||||
```
|
||||
|
||||
Note: May be you need `sudo`, because `./create_storage.sh` to try change an owner of `sandbox/storage/tests` directory.
|
||||
|
||||
## Usage
|
||||
|
||||
### Starting
|
||||
|
||||
0. Change working directory:
|
||||
|
||||
```sh
|
||||
$ cd omim/tools/python/airmaps/sandbox
|
||||
```
|
||||
|
||||
1. Run all services:
|
||||
|
||||
```sh
|
||||
sandbox$ docker-compose up
|
||||
```
|
||||
|
||||
2. Open http://localhost in your browser.
|
||||
|
||||
Note: You can see the results of airmaps working in `sandbox/storage/tests`.
|
||||
|
||||
### Stopping
|
||||
|
||||
0. Change working directory:
|
||||
|
||||
```sh
|
||||
$ cd omim/tools/python/airmaps/sandbox
|
||||
```
|
||||
|
||||
1. Stop all services:
|
||||
Push Ctrl+C and
|
||||
|
||||
```sh
|
||||
sandbox$ docker-compose down
|
||||
```
|
||||
|
||||
### Clean
|
||||
|
||||
#### Clean storage and intermediate files:
|
||||
|
||||
0. Change working directory:
|
||||
|
||||
```sh
|
||||
$ cd omim/tools/python/airmaps/sandbox
|
||||
```
|
||||
|
||||
1. Clean storage and intermediate files:
|
||||
|
||||
```sh
|
||||
sandbox$ ./clean.sh
|
||||
```
|
||||
|
||||
#### Remove images:
|
||||
|
||||
0. Change working directory:
|
||||
|
||||
```sh
|
||||
$ cd omim/tools/python/airmaps/sandbox
|
||||
```
|
||||
|
||||
1. Remove images:
|
||||
|
||||
```sh
|
||||
sandbox$ docker-compose rm
|
||||
```
|
||||
Reference in New Issue
Block a user