How to use files from local machine in the AdminUI application - epam/acuity GitHub Wiki
You might want to supply AdminUI application with source files fetched from local machine, for instance, on local start up
To do that you should:
- Navigate to
acuity-dockerrepository. - Verify
admin-local-storage.ymlconfig file
local-storage:
# Could be changed to the path of a local folder for development purposes
path: /usr/root/local-file-storage
# Could be switched to another, e.g. 'azure-file://' or 'smb://' (to emulate Azure or Samba storage correspondingly);
# in this case 'azure-storage'/'smb-storage' profiles should be disabled to avoid conflict
prefix: local://path - content of folder will be available by AdminUI. In case of docker app start up you should recall that this option maps the directory inside AdminUI Docker container. So we have a binding between machine and container inside docker-compose.yml
files
volumes:
- ./logs/adminui:/var/log
- ./local-file-storage:/usr/root/local-file-storageWhen using this configuration you should put desired files inside path: folder.

When starting an application you should enable local-storage profile. You could do that by adding it in corresponding .env file
of acuity-docker project. By default it is enabled in .env.dev file
# Spring profile defining file storage type. There are `azure-storage`,`local-storage` and `smb-storage` profiles
STORAGE_PROFILE=local-storage
When the project starts, you could navigate to mapping menu of AdminUI and manually enter the direction of your local file

For choosing a path please, use prefix mentioned in admin-local-storage.yml config file.
Example:
this type of mapping will give AdminUI root content of mapped directory