Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
easystart
Commits
16cda548
Commit
16cda548
authored
Jun 05, 2025
by
jerrrrry
Browse files
Upload New File
parent
311e1d59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
1_eastart-env_check/Dockerfile
1_eastart-env_check/Dockerfile
+35
-0
No files found.
1_eastart-env_check/Dockerfile
0 → 100644
View file @
16cda548
# 使用官方光源基础镜像
FROM
image.sourcefind.cn:5000/dcu/admin/base/custom:vllm0.8.5-ubuntu22.04-dtk25.04-rc7-das1.5-py3.10-20250521-fixpy-rocblas0521-beta2
# 安装基础工具
RUN
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
\
iproute2
\
dmidecode
\
ipmitool
\
git
\
curl
\
jq
\
lshw
\
iputils-ping
\
pciutils
\
&&
rm
-rf
/var/lib/apt/lists/
*
# 创建目录结构
RUN
mkdir
-p
/workspace/scripts
&&
\
mkdir
-p
/workspace/test/env_check_outputs
# 复制脚本并设置权限
COPY
./scripts/run_envcheck.sh /workspace/scripts/
# 验证脚本可执行性
RUN
ls
-l
/workspace/scripts/
&&
\
file /workspace/scripts/run_envcheck.sh
&&
\
head
-n
1 /workspace/scripts/run_envcheck.sh
# 检查shebang
# 设置工作目录(建议直接设为脚本目录)
WORKDIR
/workspace/scripts/
# 直接执行脚本(无需cd)
CMD
bash -c "\
bash run_envcheck.sh"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment