-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into hod/unicode
- Loading branch information
Showing
11 changed files
with
130 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM python:3.9-slim-bullseye AS base | ||
|
||
RUN set -x | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install curl \ | ||
&& apt-get -y install net-tools \ | ||
&& apt-get -y install procps \ | ||
&& apt-get -y install build-essential \ | ||
&& apt-get -y install docker.io | ||
|
||
# specific pip version to workaround: https://github.com/conda/conda/issues/10178 | ||
RUN pip install --upgrade pip==20.1.1 | ||
RUN pip install ipython ipykernel | ||
RUN ipython kernel install --user --name aml | ||
|
||
# FROM base AS promptflow | ||
COPY default_requirements.txt . | ||
RUN pip install -r default_requirements.txt | ||
|
||
RUN set +x | ||
|
||
CMD bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Devcontainer for promptflow | ||
To facilitate your promptflow project development and empower you to work on LLM projects using promptflow more effectively, | ||
we've configured the necessary environment for developing promptflow projects and utilizing flows through the dev container feature. | ||
You can seamlessly initiate your promptflow project development and start leveraging flows by simply using the dev container feature via VS Code or Codespaces. | ||
|
||
# Use devcontainer | ||
1. Use vscode to open promptflow repo, and install vscode extension: Dev Containers and then open promptflow with dev containers. | ||
![devcontainer](./devcontainers.png) | ||
**About dev containers please refer to: [dev containers](https://code.visualstudio.com/docs/devcontainers/containers)** | ||
2. Use codespaces to open promptflow repo, it will automatically build the dev containers environment and open promptflow with dev containers. | ||
![codespaces](./codespaces.png) | ||
|
||
### Notes | ||
1. If you only want to try out promptflow without developing promptflow, you can simply install Docker and use promptflow within Docker without the need for using DevContainers functionality. | ||
1. `docker build -t promptflow_container` | ||
2. `docker run -it promptflow_container` | ||
2. When using the dev containers function, the promptflow and promptflow-tools installed in the container are the code of the current repo. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
azure-cli | ||
azure-identity | ||
opencensus-ext-azure | ||
promptflow[azure] | ||
promptflow-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "Promptflow-Python39", | ||
// "context" is the path that the Codespaces docker build command should be run from, relative to devcontainer.json | ||
"context": ".", | ||
"dockerFile": "Dockerfile", | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-toolsai.vscode-ai", | ||
"ms-toolsai.jupyter", | ||
"redhat.vscode-yaml", | ||
"prompt-flow.prompt-flow" | ||
], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "pip install -r ${containerWorkspaceFolder}/src/promptflow-tools/requirements.txt --force-reinstall;pip install -r ${containerWorkspaceFolder}/src/promptflow/dev_requirements.txt --force-reinstall;pip install -e ${containerWorkspaceFolder}/src/promptflow-tools;pip install -e ${containerWorkspaceFolder}/src/promptflow", | ||
|
||
"runArgs": ["-v", "/var/run/docker.sock:/var/run/docker.sock"] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters