Applied add_venvs_to_path.sh script to local runs
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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"
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
container_id=$(docker ps -q)
|
||||
docker exec -it $container_id bash -l
|
||||
docker exec -it $container_id bash
|
||||
Reference in New Issue
Block a user