NOTE: In case of JBossAS process *** received KILL signal
error on container, increase a memory limits for a docker containers.
For running as example with provided docker-compose.
- Open Gitea (http://localhost:3000) and login
- Create an empty Git repository.
- In repository administration, add SSH key (docker/business-central-workbench/ssh_keys/id_rsa.pub) and enable write permissions.
- Login into workbench (http://localhost:8080/business-central/) with predefined user (admin:admin)
- Create new Space and New project (If you have basic project generated by Maven, you can import it if you pushed that into created repository).
- Connect to running workbench container (
docker exec -it business-central-workbench /bin/bash
) - Go to git folder of created project
cd $JBOSS_HOME/bin/.niogit/SPACE_NAME/PROJECT_NAME.git/
- Setup remote git repository
git remote add origin git@gitea:MY/REPO.git
-> This can be copied in Gitea web UI on repository, please use a SSH option. In case of existing remote, usegit remote set-url origin git@gitea:MY/REPO.git
command - Validate git remote
git remote -v
- Create a post-commit hook to push all saved changes in this git repository to remote by creating
post-commit
file in hooks folder of project repository. - Insert content of post-commit.
- Make that file executable by
chmod +x hooks/post-commit
.