remove gpt-pilot from dir structure

This commit is contained in:
Leon Rotim
2025-01-10 19:42:37 +01:00
parent a29031cd6e
commit 76d999af15
4 changed files with 9 additions and 8 deletions

View File

@@ -67,8 +67,10 @@ RUN mkdir -p /run/sshd \
&& sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config \
&& sed -i 's/#ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/' /etc/ssh/sshd_config
ENV PYTH_INSTALL_DIR=/pythagora
# Set up work directory
WORKDIR /pythagora/gpt-pilot/pythagora-core
WORKDIR ${PYTH_INSTALL_DIR}/pythagora-core
# Add Python requirements
ADD requirements.txt .
@@ -84,10 +86,10 @@ ADD core core
ADD config-docker.json config.json
# Set the virtual environment to be automatically activated
ENV VIRTUAL_ENV=/pythagora/gpt-pilot/pythagora-core/venv
ENV VIRTUAL_ENV=${PYTH_INSTALL_DIR}/pythagora-core/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
ENV PYTHAGORA_DATA_DIR=/pythagora/gpt-pilot/pythagora-core/data/
ENV PYTHAGORA_DATA_DIR=${PYTH_INSTALL_DIR}/pythagora-core/data/
RUN mkdir -p data
# Expose MongoDB and application ports
@@ -153,7 +155,7 @@ RUN mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authoriz
ADD on-event-extension-install.sh /var/init_data/on-event-extension-install.sh
# Create a workspace directory
RUN mkdir -p /pythagora/gpt-pilot/pythagora-core/workspace
RUN mkdir -p ${PYTH_INSTALL_DIR}/pythagora-core/workspace
RUN mkdir -p /home/$USERNAME/.vscode-server/cli/servers

View File

@@ -83,7 +83,7 @@
}
},
"prompt": {
"paths": ["/pythagora/gpt-pilot/pythagora-core/core/prompts"]
"paths": ["/pythagora/pythagora-core/core/prompts"]
},
"log": {
"level": "DEBUG",
@@ -99,7 +99,7 @@
},
"fs": {
"type": "local",
"workspace_root": "/pythagora/gpt-pilot/pythagora-core/workspace",
"workspace_root": "/pythagora/pythagora-core/workspace",
"ignore_paths": [
".git",
".gpt-pilot",

View File

@@ -28,8 +28,7 @@ inotifywait -m -e create -e moved_to --format '%f' "$MONITOR_DIR" | while read -
while [ ! -f "$HOME/.vscode-server/cli/servers/$NEW_ITEM/server/bin/code-server" ]; do
sleep 1
done
mkdir -p /pythagora/gpt-pilot/pythagora-core/workspace/.vscode && printf '{\n "gptPilot.isRemoteWs": true,\n "gptPilot.useRemoteWs": false\n}' > /pythagora/gpt-pilot/pythagora-core/workspace/.vscode/settings.json
mkdir -p /pythagora/pythagora-core/workspace/.vscode && printf '{\n "gptPilot.isRemoteWs": true,\n "gptPilot.useRemoteWs": false\n}' > /pythagora/pythagora-core/workspace/.vscode/settings.json
$HOME/.vscode-server/cli/servers/$NEW_ITEM/server/bin/code-server --install-extension /var/init_data/pythagora-vs-code.vsix
# echo "ok" > /pythagora/gpt-pilot/pythagora-core/workspace/pythagora-installed.txt
fi
done

Binary file not shown.