Applied add_venvs_to_path.sh script to local runs

This commit is contained in:
Niels Geens
2025-04-02 18:05:48 +02:00
parent ed37792b62
commit b4c08586ee
3 changed files with 12 additions and 9 deletions

View File

@@ -70,7 +70,10 @@ COPY --from=train-env /root/venvs/train /root/venvs/train
COPY --from=sia-env /root/venvs/sia /root/venvs/sia
COPY --from=web-build /app/dist /root/static/
RUN echo 'source /root/sia/scripts/add_venvs_to_path.sh' >> /root/.bashrc
RUN echo 'source /root/sia/scripts/add_venvs_to_path.sh' >> /etc/profile
WORKDIR /root/desktop
ENTRYPOINT ["/bin/bash", "-c"]
CMD ["/root/sia/scripts/install.sh; /bin/bash -lc /root/sia/scripts/restart.sh"]
CMD ["/root/sia/scripts/install.sh; /bin/bash -c /root/sia/scripts/restart.sh"]

View File

@@ -71,10 +71,10 @@ fi
# Add venvs to path in current shell
source /root/sia/scripts/add_venvs_to_path.sh
## Finetune model
#echo "Finetuning model..."
#train
#
## Start SIA using restart script
#echo "Run restart script..."
#"/root/sia/scripts/restart.sh"
# Finetune model
echo "Finetuning model..."
train
# Start SIA using restart script
echo "Run restart script..."
"/root/sia/scripts/restart.sh"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
container_id=$(docker ps -q)
docker exec -it $container_id bash -l
docker exec -it $container_id bash