mirror of
https://github.com/run-llama/llamaindex.net.git
synced 2026-07-01 20:36:58 -04:00
Add devcontainer config
This commit is contained in:
committed by
Diego Colombo
parent
59f203ea98
commit
a02d8b26eb
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install .NET Aspire Workload
|
||||
# See documentation for more details
|
||||
# https://learn.microsoft.com/dotnet/aspire/fundamentals/setup-tooling?tabs=linux&pivots=vscode
|
||||
if command -v dotnet &> /dev/null
|
||||
then
|
||||
echo "dotnet is installed."
|
||||
|
||||
# Specify the workload you want to install
|
||||
WORKLOAD="aspire"
|
||||
|
||||
# Update workloads
|
||||
sudo dotnet workload update
|
||||
|
||||
# Install the workload
|
||||
sudo dotnet workload install $WORKLOAD
|
||||
|
||||
echo "Workload '$WORKLOAD' has been installed."
|
||||
else
|
||||
echo "dotnet is not installed. Please install dotnet first."
|
||||
fi
|
||||
|
||||
# Download data files for examples
|
||||
#!/bin/bash
|
||||
|
||||
# URL of the file to download
|
||||
FILE_URL="https://arxiv.org/pdf/1706.03762"
|
||||
|
||||
# Directory where you want to place the downloaded file
|
||||
TARGET_DIR="./samples/data"
|
||||
|
||||
# Name of the file after downloading
|
||||
FILE_NAME="attention-is-all-you-need.pdf"
|
||||
|
||||
# Create the target directory if it doesn't exist
|
||||
mkdir -p $TARGET_DIR
|
||||
|
||||
# Download the file and place it in the target directory
|
||||
curl -o $TARGET_DIR/$FILE_NAME $FILE_URL
|
||||
|
||||
echo "File downloaded to $TARGET_DIR/$FILE_NAME"
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "LlamaParse .NET DevContainer",
|
||||
"image": "mcr.microsoft.com/devcontainers/base:debian",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/git:1": {},
|
||||
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
|
||||
"ghcr.io/devcontainers/features/dotnet:2": {
|
||||
"version": "8.0"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-vscode-remote.vscode-remote-extensionpack",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"ms-dotnettools.csharp",
|
||||
"ms-dotnettools.dotnet-interactive-vscode"
|
||||
]
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "./.devcontainer/base/configure.sh"
|
||||
}
|
||||
@@ -396,3 +396,6 @@ FodyWeavers.xsd
|
||||
|
||||
# JetBrains Rider
|
||||
*.sln.iml
|
||||
|
||||
# Don't commit samples data files
|
||||
/samples/data/*
|
||||
|
||||
Reference in New Issue
Block a user