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
chenpangpang
kolors
Commits
98ca21b7
"git@developer.sourcefind.cn:gaoqiong/yaml-cpp.git" did not exist on "75f3a36547993e1b9e16fa7e4a84c2aa5055b6a7"
Commit
98ca21b7
authored
Jul 15, 2024
by
chenpangpang
Browse files
feat: 修改Dockerfile,run.sh保证在dcu上能运行
parent
8a92b74a
Pipeline
#1363
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
Dockerfile
Dockerfile
+4
-5
run.sh
run.sh
+0
-1
No files found.
Dockerfile
View file @
98ca21b7
FROM
image.sourcefind.cn:5000/
gp
u/admin/base/jupyterlab-pytorch:2.
2.0-python3.10-cuda12.1-ubuntu22.04
as base
FROM
image.sourcefind.cn:5000/
dc
u/admin/base/jupyterlab-pytorch:2.
1.0-ubuntu20.04-dtk24.04.1-py3.10
as base
RUN
cd
/root
&&
git clone
-b
d
ev
http://developer.hpccube.com/codes/chenpangpang/kolors.git
RUN
cd
/root
&&
git clone
-b
d
cu
http://developer.hpccube.com/codes/chenpangpang/kolors.git
WORKDIR
/root/kolors/Kolors
WORKDIR
/root/kolors/Kolors
RUN
conda create
--name
kolors
-y
python
=
3.8
&&
source
activate kolors
&&
pip
install
-r
requirements.txt
&&
python3 setup.py
install
RUN
pip
install
-r
requirements.txt
&&
python3 setup.py
install
RUN
rm
-r
build dist kolors.egg-info
RUN
rm
-r
build dist kolors.egg-info
#########
#########
# Prod #
# Prod #
#########
#########
FROM
image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-python3.10-cuda12.1-ubuntu22.04
FROM
image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-python3.10-cuda12.1-ubuntu22.04
RUN
conda create
--name
kolors
python
=
3.8
COPY
--from=base /opt/conda/lib/python3.10/site-packages /opt/conda/lib/python3.10/site-packages
COPY
--from=base /opt/conda/envs/kolors/lib/python3.8/site-packages /opt/conda/envs/kolors/lib/python3.8/site-packages
COPY
--from=base /root/kolors/Kolors /root/Kolors
COPY
--from=base /root/kolors/Kolors /root/Kolors
COPY
--from=base /root/kolors/启动器.ipynb /root/kolors/run.sh /root/
COPY
--from=base /root/kolors/启动器.ipynb /root/kolors/run.sh /root/
RUN
mkdir
/root/Kolors/weight
RUN
mkdir
/root/Kolors/weight
...
...
run.sh
View file @
98ca21b7
#!/bin/bash
#!/bin/bash
cd
/root/Kolors
cd
/root/Kolors
source
activate kolors
python3 scripts/sampleui.py
python3 scripts/sampleui.py
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