Skip to content

Commit 7d58f8b

Browse files
committed
Add more tests, .devcontainer, mac global searches
1 parent c14af66 commit 7d58f8b

123 files changed

Lines changed: 3992 additions & 885 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/.p10k.zsh

Lines changed: 1716 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM arm64v8/python:3.11-alpine
2+
RUN apk add gcc libc-dev linux-headers musl-dev zlib zlib-dev python3-dev curl
3+
RUN python3 -m pip install ipykernel
4+
RUN sh -c "$(curl -fsSL https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
5+
-t powerlevel10k/powerlevel10k \
6+
-p git \
7+
-p git-extras \
8+
-p https://github.com/zsh-users/zsh-completions
9+
RUN git clone https://github.com/romkatv/powerlevel10k $HOME/.oh-my-zsh/custom/themes/powerlevel10k
10+
RUN curl https://raw.githubusercontent.com/DonJayamanne/vscode-jupyter/containerChanges/.devcontainer/.p10k.zsh > ~/.p10k.zsh
11+
RUN echo "# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh." >> ~/.zshrc
12+
RUN echo "[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh" >> ~/.zshrc
13+
# Install Rust
14+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
15+
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
16+
ENV PATH="/root/.cargo/bin:${PATH}"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "alpine-arm64",
3+
"build": {
4+
"context": "../..",
5+
"dockerfile": "./Dockerfile"
6+
},
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"ms-python.python@prerelease",
11+
"esbenp.prettier-vscode",
12+
"rust-lang.rust-analyzer",
13+
"EditorConfig.EditorConfig"
14+
]
15+
}
16+
},
17+
"workspaceFolder": "/workspaces/python-environment-tools"
18+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM amd64/python:3.11-alpine
2+
RUN apk add gcc libc-dev linux-headers musl-dev zlib zlib-dev python3-dev curl
3+
RUN python -m pip install ipykernel
4+
RUN sh -c "$(curl -fsSL https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
5+
-t powerlevel10k/powerlevel10k \
6+
-p git \
7+
-p git-extras \
8+
-p https://github.com/zsh-users/zsh-completions
9+
RUN git clone https://github.com/romkatv/powerlevel10k $HOME/.oh-my-zsh/custom/themes/powerlevel10k
10+
RUN curl https://raw.githubusercontent.com/DonJayamanne/vscode-jupyter/containerChanges/.devcontainer/.p10k.zsh > ~/.p10k.zsh
11+
RUN echo "# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh." >> ~/.zshrc
12+
RUN echo "[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh" >> ~/.zshrc
13+
# Install Rust
14+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
15+
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
16+
ENV PATH="/root/.cargo/bin:${PATH}"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "alpine-x64",
3+
"build": {
4+
"context": "../..",
5+
"dockerfile": "./Dockerfile"
6+
},
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"ms-python.python@prerelease",
11+
"esbenp.prettier-vscode",
12+
"rust-lang.rust-analyzer",
13+
"EditorConfig.EditorConfig"
14+
]
15+
}
16+
},
17+
"workspaceFolder": "/workspaces/python-environment-tools"
18+
}

.devcontainer/fedora/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM fedora
2+
3+
# Setup Python
4+
# https://developer.fedoraproject.org/tech/languages/python/multiple-pythons.html
5+
RUN sudo dnf install python3.9 python3.11 -y
6+
# zsh
7+
RUN sudo dnf install zsh git -y
8+
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -y
9+
# Install Homebrew
10+
# Not supported on arm64
11+
# Install pyenv
12+
# Install Rust
13+
# https://developer.fedoraproject.org/tech/languages/rust/rust-installation.html
14+
RUN sudo dnf install rust cargo rustup -y
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "fedora",
3+
"build": {
4+
"context": "../..",
5+
"dockerfile": "./Dockerfile"
6+
},
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"ms-python.python@prerelease",
11+
"esbenp.prettier-vscode",
12+
"rust-lang.rust-analyzer",
13+
"EditorConfig.EditorConfig"
14+
]
15+
}
16+
},
17+
"workspaceFolder": "/workspaces/python-environment-tools"
18+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM arm64v8/ubuntu
2+
3+
RUN apt-get update
4+
# zsh
5+
RUN apt-get install wget -y
6+
RUN sh -c "$(wget -qO- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
7+
-t powerlevel10k/powerlevel10k \
8+
-p git \
9+
-p git-extras \
10+
-p https://github.com/zsh-users/zsh-completions
11+
RUN git clone https://github.com/romkatv/powerlevel10k $HOME/.oh-my-zsh/custom/themes/powerlevel10k
12+
RUN wget -O ~/.p10k.zsh https://raw.githubusercontent.com/DonJayamanne/vscode-jupyter/containerChanges/.devcontainer/.p10k.zsh
13+
RUN echo "# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh." >> ~/.zshrc
14+
RUN echo "[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh" >> ~/.zshrc
15+
# Install Rust
16+
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
17+
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
18+
ENV PATH="/root/.cargo/bin:${PATH}"
19+
# Install Python
20+
RUN apt-get install -y build-essential
21+
RUN apt-get install -y --no-install-recommends software-properties-common build-essential
22+
RUN add-apt-repository -y ppa:deadsnakes/ppa
23+
RUN apt-get install python3.9 python3.10 python3-pip -y
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "linux-arm64",
3+
"build": {
4+
"context": "../..",
5+
"dockerfile": "./Dockerfile"
6+
},
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"ms-python.python@prerelease",
11+
"esbenp.prettier-vscode",
12+
"rust-lang.rust-analyzer",
13+
"EditorConfig.EditorConfig"
14+
]
15+
}
16+
},
17+
"workspaceFolder": "/workspaces/python-environment-tools"
18+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# FROM arm32v7/ubuntu
2+
FROM arm32v7/python
3+
RUN apt-get update
4+
RUN apt-get install libatomic1
5+
# Install Rust
6+
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
7+
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
8+
ENV PATH="/root/.cargo/bin:${PATH}"
9+
# Install Python
10+
# This image seems to come with Python 3.11 and 3.12

0 commit comments

Comments
 (0)