Hawk mono repository for development needs
- How to use hawk.mono to run local Hawk
- How to send testing events to the local hawk
- How to view Registry queues
- Run
git submodule init && git submodule update
. - Create
.env
file in those repositories where there is.env.sample
file. - Run
docker-compose up
to run all hawk services or list only the necessary services in the command above.
If something went wrong, check this items.
git submodule update --remote --merge
There can be a problems if docker has an outdated image or volume. You can try rebuild it.
Try this commands:
docker-compose build --no-cache <service>
service are garage
or api
etc (see docker-compose.yml -> services)
If it does not help, remove docker image and build again:
- List all images:
docker ps | grep hawk
-
Copy image name
-
Remove an image
docker image rm <name>
- Rebuild
docker-compose up <service>
- List all volumes:
docker volume ls
-
Find a volume you want to remove. For example,
hawkmono_api-deps
-
Remove volume
docker volume rm hawkmono_api-deps
- Build
docker-compose build api
To use Powershell scripts, you need to change the script execution policy in the system. Execute next command in Powershell terminal as administrator:
Set-ExecutionPolicy RemoteSigned
Run pull-all-submodules.ps1
script:
.\pull-all-submodules.ps1
Add your dump to dump\
folder and run mongorestore.ps1
script with collection name as parameter:
# Restore accounts data:
.\mongorestore.ps1 accounts
# Restore events data:
.\mongorestore.ps1 events