File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,8 @@ RUN az config set core.login_experience_v2=off 2>/dev/null || true && \
4141 az extension add --name containerapp --only-show-errors 2>/dev/null || true && \
4242 az extension add --name front-door --only-show-errors 2>/dev/null || true
4343
44- # Configure shell to auto-activate virtual environment
45- RUN echo "# Auto-activate APIM Samples virtual environment" >> ~/.bashrc && \
46- echo "if [ -f /workspaces/Apim-Samples/.venv/bin/activate ]; then" >> ~/.bashrc && \
47- echo " source /workspaces/Apim-Samples/.venv/bin/activate" >> ~/.bashrc && \
48- echo "fi" >> ~/.bashrc && \
49- echo "# Auto-activate APIM Samples virtual environment" >> ~/.zshrc && \
50- echo "if [ -f /workspaces/Apim-Samples/.venv/bin/activate ]; then" >> ~/.zshrc && \
51- echo " source /workspaces/Apim-Samples/.venv/bin/activate" >> ~/.zshrc && \
52- echo "fi" >> ~/.zshrc && \
53- # Add helpful aliases
44+ # Configure shell aliases and helpful commands (no auto venv activation)
45+ RUN echo "# APIM Samples helpful aliases" >> ~/.bashrc && \
5446 echo "alias ll='ls -alF'" >> ~/.bashrc && \
5547 echo "alias la='ls -A'" >> ~/.bashrc && \
5648 echo "alias l='ls -CF'" >> ~/.bashrc && \
Original file line number Diff line number Diff line change 107107 }
108108 },
109109 "containerEnv" : {
110- "PYTHONPATH" : " /workspaces/Apim-Samples/shared/python:/workspaces/Apim-Samples"
110+ "PATH" : " /workspaces/Apim-Samples/.venv/bin:${PATH}" ,
111+ "PYTHONPATH" : " /workspaces/Apim-Samples/shared/python:/workspaces/Apim-Samples" ,
112+ "VIRTUAL_ENV" : " /workspaces/Apim-Samples/.venv"
111113 }
112114 },
113115 "onCreateCommand" : [
You can’t perform that action at this time.
0 commit comments