chore: import upstream snapshot with attribution
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/miniconda:0-3
|
||||
|
||||
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
|
||||
ARG NODE_VERSION="none"
|
||||
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
|
||||
|
||||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
# && apt-get -y install libgl1
|
||||
|
||||
# Copy requirements.txt to a temp location for package installation
|
||||
COPY .devcontainer/requirements.txt /tmp/conda-tmp/
|
||||
# Install packages using conda and pip directly to avoid hanging on environment solving
|
||||
RUN umask 0002 \
|
||||
&& /opt/conda/bin/conda install -y -c conda-forge -c pytorch -c defaults \
|
||||
python pip ipykernel ipython ipywidgets jupyter matplotlib=3.9 numpy=1.26 \
|
||||
requests=2.32 scikit-learn scipy=1.13 opencv setuptools \
|
||||
pytorch torchtext torchvision torchdata \
|
||||
&& /opt/conda/bin/pip install --no-cache-dir -r /tmp/conda-tmp/requirements.txt \
|
||||
&& rm -rf /tmp/conda-tmp
|
||||
|
||||
# [Optional] Uncomment to install a different version of Python than the default
|
||||
# RUN conda install -y python=3.6 \
|
||||
# && pip install --no-cache-dir pipx \
|
||||
# && pipx reinstall-all
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
# Display a notice when not running in GitHub Codespaces
|
||||
|
||||
cat << 'EOF' > /usr/local/etc/vscode-dev-containers/conda-notice.txt
|
||||
When using "conda" from outside of GitHub Codespaces, note the Anaconda repository
|
||||
contains restrictions on commercial use that may impact certain organizations. See
|
||||
https://aka.ms/vscode-remote/conda/miniconda
|
||||
|
||||
EOF
|
||||
|
||||
notice_script="$(cat << 'EOF'
|
||||
if [ -t 1 ] && [ "${IGNORE_NOTICE}" != "true" ] && [ "${TERM_PROGRAM}" = "vscode" ] && [ "${CODESPACES}" != "true" ] && [ ! -f "$HOME/.config/vscode-dev-containers/conda-notice-already-displayed" ]; then
|
||||
cat "/usr/local/etc/vscode-dev-containers/conda-notice.txt"
|
||||
mkdir -p "$HOME/.config/vscode-dev-containers"
|
||||
((sleep 10s; touch "$HOME/.config/vscode-dev-containers/conda-notice-already-displayed") &)
|
||||
fi
|
||||
EOF
|
||||
)"
|
||||
|
||||
echo "${notice_script}" | tee -a /etc/bash.bashrc >> /etc/zsh/zshrc
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "Miniconda (Python 3)",
|
||||
"image": "mcr.microsoft.com/devcontainers/miniconda",
|
||||
"hostRequirements": {
|
||||
"cpus": 2
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {
|
||||
"python.defaultInterpreterPath": "/opt/conda/bin/python",
|
||||
"python.linting.enabled": true,
|
||||
"python.linting.pylintEnabled": true,
|
||||
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
|
||||
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
|
||||
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
|
||||
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
|
||||
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
|
||||
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
|
||||
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
|
||||
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
|
||||
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
|
||||
},
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance"
|
||||
]
|
||||
}
|
||||
},
|
||||
"forwardPorts": [],
|
||||
"postCreateCommand": "conda update conda -y && conda env create -f environment.yml",
|
||||
"remoteUser": "vscode"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
name: ai4beg
|
||||
channels:
|
||||
- defaults
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- ipykernel
|
||||
- ipython
|
||||
- ipywidgets
|
||||
- jupyter
|
||||
- matplotlib=3.9
|
||||
- numpy=1.26
|
||||
- python
|
||||
- requests=2.32
|
||||
- scikit-learn
|
||||
- scipy=1.13
|
||||
- pip
|
||||
- conda-forge::opencv
|
||||
- setuptools
|
||||
- pytorch::pytorch
|
||||
- pytorch::torchtext
|
||||
- pytorch::torchvision
|
||||
- pytorch::torchdata
|
||||
- pip:
|
||||
- -r requirements.txt
|
||||
@@ -0,0 +1,21 @@
|
||||
gensim==4.3.3
|
||||
gym==0.26.2
|
||||
huggingface==0.0.1
|
||||
imageio==2.35.0
|
||||
keras==3.13.2
|
||||
nltk==3.9.4
|
||||
pandas==2.2.2
|
||||
pillow==12.2.0
|
||||
pygame==2.6.0
|
||||
scikit-image==0.24.0
|
||||
seaborn==0.13.2
|
||||
smart-open==7.0.4
|
||||
tensorboard-data-server==0.7.2
|
||||
tensorflow-datasets==4.9.6
|
||||
tensorflow-hub==0.16.1
|
||||
tensorflow==2.17.0
|
||||
tensorboard==2.17.1
|
||||
tokenizers==0.20.0
|
||||
torchinfo==1.8.0
|
||||
tqdm==4.66.5
|
||||
|
||||
Reference in New Issue
Block a user