1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bonfire_ynh.git synced 2024-09-03 18:16:01 +02:00

don't use docker for real…

This commit is contained in:
lapineige 2023-08-13 12:11:01 +02:00 committed by GitHub
parent c535aba287
commit 63ebd1ab97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ ynh_replace_string --match_string="UPLOAD_LIMIT=MEDIA_UPLOAD_SIZE" --replace_str
#=================================================
source $install_dir/.env
export WITH_DOCKER="no" # or source .env ? # Using this for now
export WITH_DOCKER=no # or source .env ? # Using this for now
# TODO Debug
ynh_exec_warn echo 'Debug install dir ENV file'
@ -63,9 +63,9 @@ ynh_exec_warn cat $install_dir/.env
ynh_script_progression --message="Configuring Bonfire release..." --weight=1
cd $install_dir
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "mix local.hex --force" # install Hex in non-interractive way
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just config"
#ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just mix bonfire.deps .update"
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no mix local.hex --force" # install Hex in non-interractive way
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no just config"
#ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no just mix bonfire.deps .update"
# TODO Debug
ynh_exec_warn echo 'Debug install dir ENV file'
@ -77,7 +77,7 @@ ynh_exec_warn cat $install_dir/.env
ynh_script_progression --message="Building Bonfire release..." --weight=1
export TERM=linux # why is that not defined ?
export TERMINFO=/etc/terminfo
ynh_exec_warn ynh_exec_as $app $ynh_node_load_PATH -s $SHELL -lc "just rel-build"
ynh_exec_warn ynh_exec_as $app $ynh_node_load_PATH -s $SHELL -lc "WITH_DOCKER=no just rel-build"
#ynh_exec_warn just rel-build # node needs (root) access to /usr/local/lib/node_modules
ynh_exec_warn ls -a
@ -90,14 +90,14 @@ release_folder="_build/prod/rel/bonfire"
ynh_script_progression --message="Running database migrations..." --weight=1
# Database created before, let's run the migrations
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just cmd $release_folder/bin/bonfire eval 'EctoSparkles.Migrator.migrate()'"
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no just cmd $release_folder/bin/bonfire eval 'EctoSparkles.Migrator.migrate()'"
ynh_script_progression --message="Starting Bonfire..." --weight=1
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just cmd $release_folder/bin/bonfire start"
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no just cmd $release_folder/bin/bonfire start"
# start bonfire as a daemon
ynh_script_progression --message="Starting Bonfire daemon..." --weight=1
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just cmd $release_folder/bin/bonfire start daemon"
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no just cmd $release_folder/bin/bonfire start daemon"
#=================================================
# END OF SCRIPT