Compare commits

...

2 Commits

Author SHA1 Message Date
Nicolas Arenas 05bf455d8e Updates .gitignore
oginstaller/pipeline/head There was a failure building this commit Details
2024-12-23 13:30:43 +01:00
Nicolas Arenas 38efb88ee2 refs #1303 and refs #1313
- Disable composer install at install time
- Load Defaults commands
- Load defult user groups
2024-12-23 13:30:34 +01:00
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ create_end_squashfs.sh
ogCore_config.json
ogGui_config.json
test.sh
__azurite_db_table__.json

View File

@ -24,11 +24,15 @@ done
adminuser=$(jq -r '.username' /opt/opengnsys/ogCore/installer/config.json)
adminpass=$(jq -r '.password' /opt/opengnsys/ogCore/installer/config.json)
docker compose -f $CONF_DIR/docker-compose-deploy.yml exec php composer install
#docker compose -f $CONF_DIR/docker-compose-deploy.yml exec php composer install
docker compose -f $CONF_DIR/docker-compose-deploy.yml exec php php bin/console lexik:jwt:generate-keypair --overwrite
docker compose -f $CONF_DIR/docker-compose-deploy.yml exec php php bin/console doctrine:migrations:migrate --no-interaction
## TODO we need to feed $adminuser and $adminpass to doctrine:fixtures:load somehow
docker compose -f $CONF_DIR/docker-compose-deploy.yml exec php php bin/console doctrine:fixtures:load --no-interaction
docker compose -f CONF_DIR/docker-compose-deploy.yml exec php php bin/console app:load-default-user-groups
docker compose -f CONF_DIR/docker-compose-deploy.yml exec php php bin/console app:load-default-commands
# Provision user admin