Skip to content

Commit e6087ba

Browse files
feat: install extra tools in dockerfile and fix workflow ignores (#907)
Co-authored-by: Hu Yueh-Wei <[email protected]>
1 parent 1c96277 commit e6087ba

File tree

9 files changed

+16
-21
lines changed

9 files changed

+16
-21
lines changed

.github/workflows/build_docker_for_ai_agents.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- ".vscode/**"
1515
- ".devcontainer/**"
1616
- ".github/**"
17-
- "!.github/workflows/build-docker.yaml"
17+
- "!.github/workflows/build_docker_for_ai_agents.yml"
1818
- ".vscode/**"
1919
- "ai_agents/docs/**"
2020
- "**.md"
@@ -30,7 +30,7 @@ on:
3030
- ".vscode/**"
3131
- ".devcontainer/**"
3232
- ".github/**"
33-
- "!.github/workflows/build-docker.yaml"
33+
- "!.github/workflows/build_docker_for_ai_agents.yml"
3434
- ".vscode/**"
3535
- "ai_agents/docs/**"
3636
- "**.md"

.github/workflows/linux_arm64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- ".vscode/**"
1111
- ".devcontainer/**"
1212
- ".github/**"
13-
- "!.github/workflows/build_linux_arm64.yml"
13+
- "!.github/workflows/linux_arm64.yml"
1414
- "core/src/ten_manager/designer_frontend/**"
1515
- "**.md"
1616
- "ai_agents/**"

.github/workflows/linux_ubuntu2204.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- ".vscode/**"
1111
- ".devcontainer/**"
1212
- ".github/**"
13-
- "!.github/workflows/build_linux_ubuntu2204.yml"
13+
- "!.github/workflows/linux_ubuntu2204.yml"
1414
- "core/src/ten_manager/designer_frontend/**"
1515
- "**.md"
1616
- "ai_agents/**"

.github/workflows/mac_arm64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- ".vscode/**"
1111
- ".devcontainer/**"
1212
- ".github/**"
13-
- "!.github/workflows/build_mac.yml"
13+
- "!.github/workflows/mac_arm64.yml"
1414
- "core/src/ten_manager/designer_frontend/**"
1515
- "**.md"
1616
- "ai_agents/**"

.github/workflows/mac_arm64_without_rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- ".vscode/**"
1111
- ".devcontainer/**"
1212
- ".github/**"
13-
- "!.github/workflows/build_mac.yml"
13+
- "!.github/workflows/mac_arm64_without_rust.yml"
1414
- "core/src/ten_manager/designer_frontend/**"
1515
- "**.md"
1616
- "ai_agents/**"

.github/workflows/mac_x64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- ".vscode/**"
1111
- ".devcontainer/**"
1212
- ".github/**"
13-
- "!.github/workflows/build_mac.yml"
13+
- "!.github/workflows/mac_x64.yml"
1414
- "core/src/ten_manager/designer_frontend/**"
1515
- "**.md"
1616
- "ai_agents/**"

.github/workflows/win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- ".vscode/**"
1111
- ".devcontainer/**"
1212
- ".github/**"
13-
- "!.github/workflows/build_win.yml"
13+
- "!.github/workflows/win.yml"
1414
- "core/src/ten_manager/designer_frontend/**"
1515
- "**.md"
1616
- "ai_agents/**"

.vscode/settings.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,10 @@
33
"C_Cpp.errorSquiggles": "disabled",
44
"C_Cpp.formatting": "disabled",
55
"C_Cpp.intelliSenseEngine": "disabled",
6-
"[c]": {
7-
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
8-
},
9-
"[cpp]": {
10-
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
11-
},
126
"[markdown]": {
137
"editor.wordWrap": "bounded",
148
"editor.wordWrapColumn": 80
159
},
16-
"[python]": {
17-
"editor.defaultFormatter": "ms-python.black-formatter",
18-
"editor.tabSize": 4
19-
},
2010
"black-formatter.args": [
2111
"--line-length",
2212
"80",
@@ -108,8 +98,5 @@
10898
"**/node_modules/*/**": true,
10999
"**/out/*/**": true,
110100
"**/third_party/*/**": true
111-
},
112-
"[yaml]": {
113-
"editor.defaultFormatter": "redhat.vscode-yaml"
114101
}
115102
}

tools/docker_for_building/ubuntu/22.04/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ RUN export ARCH=$(dpkg --print-architecture) && \
6767
RUN pip3 install --upgrade setuptools pip && \
6868
pip3 install requests oss2 && \
6969
pip3 install --use-pep517 python-dotenv jinja2 && \
70+
pip3 install debugpy pytest pytest-cov pytest-mock cython pylint pylint-exit black && \
7071
ln -sf /usr/bin/python3.10-config /usr/bin/python3-config && \
7172
ln -sf /usr/bin/python3 /usr/bin/python
7273

@@ -115,6 +116,13 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
115116

116117
ENV PATH="/root/.cargo/bin:$PATH"
117118

119+
# =======================================
120+
# Install extra tools, e.g., uv and task.
121+
122+
RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh
123+
124+
RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
125+
118126
# =======================================
119127
# Cleanup
120128

0 commit comments

Comments
 (0)