Skip to content

Commit fbb0f59

Browse files
Clean up
1 parent 0c16e63 commit fbb0f59

File tree

8 files changed

+88
-400
lines changed

8 files changed

+88
-400
lines changed

.devcontainer/configure-azure-mount.py

Lines changed: 0 additions & 261 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,17 @@
9191
// Auto-show terminal output during codespace startup
9292
"terminal.integrated.showExitAlert": false,
9393
"terminal.integrated.focusAfterRun": "terminal",
94+
"terminal.integrated.defaultProfile.linux": "bash",
95+
"terminal.integrated.tabs.enabled": true,
9496
"workbench.panel.defaultLocation": "bottom",
9597
"workbench.panel.opensMaximized": "preserve",
9698
"workbench.startupEditor": "none",
97-
"workbench.panel.defaultPanelHeight": 300,
99+
"workbench.panel.defaultPanelHeight": 400,
100+
"workbench.view.alwaysShowHeaderActions": true,
101+
// Auto-open terminal panel on startup
102+
"workbench.action.terminal.focus": true,
103+
"workbench.action.togglePanel": true,
104+
"terminal.integrated.defaultLocation": "view",
98105
// Auto-allow clipboard operations in Codespaces
99106
"security.workspace.trust.enabled": false,
100107
"editor.experimental.pasteActions.enabled": true,
@@ -105,10 +112,10 @@
105112
"containerEnv": {
106113
"PYTHONPATH": "/workspaces/Apim-Samples/shared/python:/workspaces/Apim-Samples"
107114
},
108-
// Container lifecycle commands for optimal Codespaces prebuild performance:
109-
// 1. onCreateCommand: Runs during prebuild - creates venv
110-
// 2. updateContentCommand: Runs when content changes - installs/updates packages
111-
// 3. postStartCommand: Runs every startup - verifies and configures
115+
// Container lifecycle commands for optimal Codespaces prebuild performance: https://containers.dev/implementors/features/#lifecycle-hooks
116+
// 1. onCreateCommand: Runs only once during initial prebuild - creates venv
117+
// 2. updateContentCommand: Runs during any prebuild when content changes - installs/updates packages
118+
// 3. postStartCommand: Runs on every startup - verifies and configures
112119
"onCreateCommand": [
113120
"bash", "-c",
114121
"echo '🚀 Creating Python virtual environment in workspace...' && /usr/local/bin/python3.12 -m venv /workspaces/Apim-Samples/.venv --copies && source /workspaces/Apim-Samples/.venv/bin/activate && pip install --upgrade pip setuptools wheel && echo '✅ Virtual environment created'"
@@ -119,7 +126,7 @@
119126
],
120127
"postStartCommand": [
121128
"bash", "-c",
122-
"echo '🔧 Running post-start setup - terminal will remain visible...' && bash .devcontainer/post-start-setup.sh && echo '✅ Post-start setup completed! Check the terminal output above.'"
129+
"echo '� APIM Samples Codespace Starting - Keep this terminal open to see progress!' && echo '============================================================' && bash .devcontainer/post-start-setup.sh && echo '============================================================' && echo '✅ Setup completed! This terminal will remain open for your reference.' && echo '💡 Tip: You can minimize this panel if needed, but the setup logs above show your environment status.' && sleep 2"
123130
],
124131
"forwardPorts": [
125132
8000,

.devcontainer/post-start-setup.sh

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66

77
start=$(date +%s.%N)
88

9+
# Make terminal output more prominent
10+
clear
11+
echo "============================================================================"
12+
echo " 🚀 APIM SAMPLES CODESPACE SETUP "
13+
echo "============================================================================"
14+
echo ""
15+
echo "🔧 This terminal shows the Codespace setup progress."
16+
echo "📋 Keep this panel open to monitor the environment configuration."
917
echo ""
1018
echo -e "🚀 APIM Samples environment starting...\n"
1119

@@ -138,6 +146,25 @@ except ImportError as e:
138146
end=$(date +%s.%N)
139147
duration=$(python3 -c "print(f'{float('$end') - float('$start'):.2f}')")
140148

141-
echo -e "\n🎉 Environment ready!"
142-
printf "⏱️ Total setup time: %s seconds\n" "$duration"
143-
echo "💡 All requirements are ready to use for virtual environment $VENV_PATH.\n\n"
149+
echo ""
150+
echo "============================================================================"
151+
echo " 🎉 SETUP COMPLETED! "
152+
echo "============================================================================"
153+
echo ""
154+
printf "⏱️ Total setup time: %s seconds\n" "$duration"
155+
echo "💡 All requirements are ready to use for virtual environment $VENV_PATH"
156+
echo ""
157+
echo "🔍 This terminal shows your Codespace setup progress and logs."
158+
echo "📋 You can minimize this panel or open a new terminal for your work."
159+
echo ""
160+
echo "🚀 Your APIM Samples environment is ready to use!"
161+
echo ""
162+
echo ""
163+
echo " NEXT STEPS:"
164+
echo " -----------"
165+
echo ""
166+
echo " 1. Log in via the Azure CLI: az login"
167+
echo " 2. Start using the infrastructures and samples!"
168+
echo ""
169+
echo "============================================================================"
170+
echo -e "\n\n\n"

0 commit comments

Comments
 (0)