Skip to content

Commit 7998f8d

Browse files
meysholdtona-agent
andcommitted
Add devcontainer config and update install script
Co-authored-by: Ona <[email protected]>
1 parent c179077 commit 7998f8d

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
2+
3+
# use this Dockerfile to install additional tools you might need, e.g.
4+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// The Dev Container format allows you to configure your environment. At the heart of it
2+
// is a Docker image or Dockerfile which controls the tools available in your environment.
3+
//
4+
// See https://aka.ms/devcontainer.json for more information.
5+
{
6+
"name": "Ona",
7+
// Use "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
8+
// instead of the build to use a pre-built image.
9+
"build": {
10+
"context": ".",
11+
"dockerfile": "Dockerfile"
12+
}
13+
// Features add additional features to your environment. See https://containers.dev/features
14+
// Beware: features are not supported on all platforms and may have unintended side-effects.
15+
// "features": {
16+
// "ghcr.io/devcontainers/features/docker-in-docker": {
17+
// "moby": false
18+
// }
19+
// }
20+
}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# devcontainer-feature
1+
# devcontainer-feature
2+
3+
used by https://github.com/gitpod-samples/multirepo-template

src/my-team-setup/install.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,4 @@ apt-get install -y python3 python3-pip python3-venv
1010
echo "Installing Python packages: $PACKAGES"
1111
pip3 install --break-system-packages $PACKAGES
1212

13-
echo "Configuring terminal prompt with 'Hello World!'..."
14-
15-
# Add prompt customization to /etc/bash.bashrc for all users
16-
cat >> /etc/bash.bashrc << 'EOF'
17-
18-
# Added by my-team-setup devcontainer feature
19-
export PS1="Hello World! \$PS1"
20-
EOF
21-
22-
# Also add to /etc/zsh/zshrc if zsh is available
23-
if [ -d /etc/zsh ]; then
24-
cat >> /etc/zsh/zshrc << 'EOF'
25-
26-
# Added by my-team-setup devcontainer feature
27-
export PS1="Hello World! $PS1"
28-
EOF
29-
fi
30-
3113
echo "my-team-setup feature installed successfully!"

0 commit comments

Comments
 (0)