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=sia-env /root/venvs/sia /root/venvs/sia
|
||||||
COPY --from=web-build /app/dist /root/static/
|
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
|
WORKDIR /root/desktop
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "-c"]
|
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
|
# Add venvs to path in current shell
|
||||||
source /root/sia/scripts/add_venvs_to_path.sh
|
source /root/sia/scripts/add_venvs_to_path.sh
|
||||||
|
|
||||||
## Finetune model
|
# Finetune model
|
||||||
#echo "Finetuning model..."
|
echo "Finetuning model..."
|
||||||
#train
|
train
|
||||||
#
|
|
||||||
## Start SIA using restart script
|
# Start SIA using restart script
|
||||||
#echo "Run restart script..."
|
echo "Run restart script..."
|
||||||
#"/root/sia/scripts/restart.sh"
|
"/root/sia/scripts/restart.sh"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
container_id=$(docker ps -q)
|
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