You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,9 @@
8
8
9
9
## Usage Guidelines
10
10
11
-
### Base Repo
11
+
TLDR: Search for `todo` and update all occurrences to your desired name
12
+
13
+
### Base Repository
12
14
13
15
1. Change [LICENSE](LICENSE) if necessary
14
16
@@ -18,19 +20,37 @@
18
20
19
21
### Docker Config
20
22
21
-
1. Modify **DOCKER_USER**, **IMAGE_NAME** in [.env](.env)
23
+
1. Modify `todo-docker-user`, `todo-base-image`, `todo-image-name`, `todo-image-user` in [.env](.env)
24
+
25
+
-[.env](.env) will be loaded when you use docker compose for build/run/push
26
+
-`todo-docker-user` refers to your docker hub account username
27
+
-`todo-base-image` is the image dockerfile is based on, such as `nvidia/cuda:13.0.0-cudnn-devel-ubuntu24.04`
28
+
-`todo-image-user` refers to the default user inside the image, which is used to determine home folder
22
29
23
-
1. Modify the service name from **default** to your service name in [docker-compose.yml](docker-compose.yml)
30
+
1. Modify the service name from `todo-service-name` to your service name in [docker-compose.yml](docker-compose.yml), add additional volume mounting options such as dataset directories
24
31
25
-
1. Update [Dockerfile](docker/latest/Dockerfile)
32
+
1. Update [Dockerfile](docker/latest/Dockerfile) and [.dockerignore](.dockerignore)
33
+
34
+
- Existing dockerfile has screen & tmux config, oh-my-zsh, cmake, and other basic goodies
35
+
- Add any additional dependency installations at appropriate locations
26
36
27
37
1.[build.sh](scripts/build.sh) to build and test the image locally in your machine's architecture
28
38
29
-
1.[push.sh](scripts/push.sh) to push the multi-arch image to the registry
39
+
- The scripts uses buildx to build multi-arch image, you can disable this by removing redundant archs in [docker-compose.yml](docker-compose.yml)
40
+
- Building stage does not have GPU access, if some of your dependencies need GPU, build them inside a running container and commit to the final image
41
+
42
+
1.[run_container.sh](scripts/run_container.sh) or `docker compose up -d` to run and test a built image
43
+
44
+
- The service by default will mount the whole repository onto `CODE_FOLDER` inside the container so any modification inside also takes effect outside, which is useful when you use vscode remote extension to develop inside a running container with remote docker context
45
+
- You should be able to run and see GUI applications inside the container if `DISPLAY` is set correctly when you run the script
46
+
47
+
1.[push.sh](scripts/push.sh) to push the multi-arch image to docker hub
48
+
49
+
- You should have the docker hub repository set up before pushing
30
50
31
51
## Developer Quick Start
32
52
33
-
- Run [scripts/dev-setup.sh](scripts/dev-setup.sh) to setup the development environment
53
+
- Run [scripts/dev_setup.sh](scripts/dev_setup.sh) to setup the development environment
# follow the error information,replace all the “ipcp-unit-growth” with “ipa-cp-unit-growth” in 3rdparty/carotene/CMakeLists.txt and 3rdparty/carotene/hal/CMakeLists.txt
# # follow the error information,replace all the “ipcp-unit-growth” with “ipa-cp-unit-growth” in 3rdparty/carotene/CMakeLists.txt and 3rdparty/carotene/hal/CMakeLists.txt
0 commit comments