Skip to content
MarcPonsen edited this page Dec 12, 2022 · 2 revisions

[Prerequisites]

Docker

Docker compose

For GPU support: NVIDIA Container Toolkit (linux) or NVIDIA Container Toolkit (WSL2)

[Local installation]

  1. On your host make a folder and give it a name to your liking.
  2. Select the development branch on this repository.
  3. Navigate to /src/web-app/ and download the folder container_conf.\

chrome_fscWbBRAUB

  1. Navigate to /src/ and download the files .env.example and docker-compose.yml. These two files are specifically made for a local installation.
  2. Put the downloaded container_conf directory and the files .env.example and compose.yml inside your created folder.
    Your directory structure should look something like this: \

dir_tree

  1. Rename your .env.example to .env
  2. Open the .env file with a text editor of your liking.
  3. Write the location to your grid cell folder in the EXTERNAL_DIRECTORY variable. For example EXTERNAL_DIRECTORY=/mnt/d/fotos/LR/. The directory you specify should at least contain the directory “grid_500m”: \

dir_fotos

  1. Also, configure the variables ENV_LOCATION, PHP_CONF_LOCATION and NGINX_CONF_LOCATION, the examples listed in the .env file work with the setup described here.
  2. When GPUs are used, it is possible to define the amount of GPUs or the GPU id's. So in the .env file one of the two variables has to be removed, for example, \[GPU_IDS/GPU_AMOUNT\]= will be GPU_IDS=.
    1. If no GPUs are used altogether the variable \[GPU_IDS/GPU_AMOUNT\]= can be removed completely
  3. It is recommended to change the “DB_USERNAME” and “DB_PASSWORD” to something stronger. NOTE: changing any of the Database variables after the database has been created will not work. You will either have to delete the database volume or change the username and password manually.
  4. Save the .env file when you are done.
  5. Change the owner and group of the container_conf directory and .env file to www-data: \

chown

  1. You can now start the application with docker compose up -d
  2. Now we will have to seed the database this is accomplished by running the command:
    docker exec web-app php artisan migrate:fresh --seed --force
  3. When the seeding is done you can generate an app key and after that cache parts of the application: \

config

  1. If everything is done correctly you can now access the website with localhost
Clone this wiki locally