Skip to content

Commit acb36cc

Browse files
authored
Merge pull request #3600 from microsoft/staging
New AutoGen Architecture Preview
2 parents 180c17c + 4084a9f commit acb36cc

File tree

1,649 files changed

+49494
-172131
lines changed

Some content is hidden

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

1,649 files changed

+49494
-172131
lines changed

.coveragerc

-6
This file was deleted.

.devcontainer/Dockerfile

+5-31
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,6 @@
1-
#-------------------------------------------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See LICENSE file in the project root for license information.
4-
#-------------------------------------------------------------------------------------------------------------
1+
# Note: You can use any Debian/Ubuntu based image you want.
2+
FROM mcr.microsoft.com/devcontainers/universal:2
53

6-
FROM mcr.microsoft.com/vscode/devcontainers/python:3.10
7-
8-
#
9-
# Update the OS and maybe install packages
10-
#
11-
ENV DEBIAN_FRONTEND=noninteractive
12-
13-
# add git lhs to apt
14-
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
15-
16-
RUN apt-get update \
17-
&& apt-get upgrade -y \
18-
&& apt-get -y install --no-install-recommends build-essential npm git-lfs \
19-
&& apt-get autoremove -y \
20-
&& apt-get clean -y \
21-
&& arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
22-
&& wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.5.23/quarto-1.5.23-linux-${arch}.deb \
23-
&& dpkg -i quarto-1.5.23-linux-${arch}.deb \
24-
&& rm -rf /var/lib/apt/lists/* quarto-1.5.23-linux-${arch}.deb
25-
ENV DEBIAN_FRONTEND=dialog
26-
27-
# For docs
28-
RUN npm install --global yarn
29-
RUN pip install --upgrade pip
30-
RUN pip install pydoc-markdown
31-
RUN pip install pyyaml
32-
RUN pip install colored
4+
# [Optional] Uncomment this section to install additional OS packages.
5+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
6+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/README.md

-96
This file was deleted.

.devcontainer/dev/Dockerfile

-54
This file was deleted.

.devcontainer/dev/devcontainer.json

-3
This file was deleted.

.devcontainer/devcontainer.json

+44-21
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,45 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker-compose
13
{
2-
"customizations": {
3-
"vscode": {
4-
"extensions": [
5-
"ms-python.python",
6-
"ms-toolsai.jupyter",
7-
"visualstudioexptteam.vscodeintellicode",
8-
"GitHub.copilot"
9-
],
10-
"settings": {
11-
"terminal.integrated.profiles.linux": {
12-
"bash": {
13-
"path": "/bin/bash"
14-
}
15-
},
16-
"terminal.integrated.defaultProfile.linux": "bash"
17-
}
18-
}
19-
},
20-
"dockerFile": "Dockerfile",
21-
"updateContentCommand": "pip install -e . pre-commit && pre-commit install"
22-
}
4+
"name": "AutoGen devcontainer",
5+
"dockerComposeFile": "docker-compose.yml",
6+
"service": "devcontainer",
7+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
8+
9+
// Use this environment variable if you need to bind mount your local source code into a new container.
10+
"remoteEnv": {
11+
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
12+
},
13+
14+
"features": {
15+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
16+
"moby": true,
17+
"installDockerBuildx": true,
18+
"version": "latest",
19+
"dockerDashComposeVersion": "none"
20+
},
21+
"ghcr.io/elanhasson/devcontainer-features/dotnet-aspire-daily:1": {},
22+
"ghcr.io/devcontainers/features/azure-cli:1": {},
23+
"ghcr.io/azure/azure-dev/azd:0": {}
24+
},
25+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
26+
// "forwardPorts": [],
27+
28+
// Use 'postCreateCommand' to run commands after the container is created.
29+
"postCreateCommand": "bash .devcontainer/startup.sh",
30+
31+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
32+
"remoteUser": "root",
33+
"customizations": {
34+
"vscode": {
35+
"extensions": [
36+
"ms-python.python",
37+
"ms-python.debugpy",
38+
"GitHub.copilot",
39+
"ms-dotnettools.csdevkit",
40+
"ms-dotnettools.vscodeintellicode-csharp",
41+
"github.vscode-github-actions"
42+
]
43+
}
44+
}
45+
}

.devcontainer/docker-compose.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: '3'
2+
3+
services:
4+
devcontainer:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
9+
volumes:
10+
# Forwards the local Docker socket to the container.
11+
- /var/run/docker.sock:/var/run/docker-host.sock
12+
# Update this to wherever you want VS Code to mount the folder of your project
13+
- ../..:/workspaces:cached
14+
15+
# Overrides default command so things don't shut down after the process ends.
16+
entrypoint: /usr/local/share/docker-init.sh
17+
command: sleep infinity
18+
19+
# Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
20+
# cap_add:
21+
# - SYS_PTRACE
22+
# security_opt:
23+
# - seccomp:unconfined
24+
25+
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
26+
# (Adding the "ports" property to this file will not forward from a Codespace.)

.devcontainer/full/Dockerfile

-32
This file was deleted.

.devcontainer/full/devcontainer.json

-3
This file was deleted.

.devcontainer/startup.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# dotnet setup
4+
dotnet workload update
5+
dotnet dev-certs https --trust
6+
7+
# python setup
8+
pushd python
9+
pip install uv
10+
uv sync
11+
source .venv/bin/activate
12+
echo "export PATH=$PATH" >> ~/.bashrc
13+
popd

.devcontainer/studio/Dockerfile

-27
This file was deleted.

.devcontainer/studio/devcontainer.json

-21
This file was deleted.

0 commit comments

Comments
 (0)