-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from mlcommons/dev
Added Docker container generation and debug script to run without CM
- Loading branch information
Showing
13 changed files
with
221 additions
and
59 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
34 changes: 34 additions & 0 deletions
34
automation/script/docker_repro_example/ubuntu-23.04.Dockerfile
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,34 @@ | ||
FROM ubuntu:23.04 | ||
|
||
# Automatically generated by the CM workflow automation meta-framework | ||
# https://github.com/mlcommons/ck | ||
|
||
LABEL github="" | ||
LABEL maintainer="" | ||
LABEL license="" | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
ARG CM_GH_TOKEN | ||
ARG CM_ADD_DOCKER_GROUP_ID="" | ||
|
||
# Notes: https://runnable.com/blog/9-common-dockerfile-mistakes | ||
# Install system dependencies | ||
RUN apt-get update -y | ||
RUN apt-get install -y python3 python3-pip git sudo wget | ||
|
||
# Setup docker environment | ||
ENTRYPOINT ["/bin/bash", "-c"] | ||
ENV TZ="US/Pacific" | ||
ENV PATH="${PATH}:/home/cmuser/.local/bin" | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone | ||
|
||
# Setup docker user | ||
RUN groupadd ${CM_ADD_DOCKER_GROUP_ID} cm | ||
RUN useradd -g cm --create-home --shell /bin/bash cmuser | ||
RUN echo "cmuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
USER cmuser:cm | ||
WORKDIR /home/cmuser | ||
|
||
# Install python packages | ||
RUN python3 -m pip install --user cmind requests giturlparse tabulate --break-system-packages |
1 change: 1 addition & 0 deletions
1
automation/script/docker_repro_example/ubuntu-23.04.Dockerfile.build.bat
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 @@ | ||
docker build -f "ubuntu-23.04.Dockerfile" -t "cknowledge/test-cm-script:ubuntu-23.04-cm-dev" . |
3 changes: 3 additions & 0 deletions
3
automation/script/docker_repro_example/ubuntu-23.04.Dockerfile.build.sh
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,3 @@ | ||
#!/bin/bash | ||
|
||
docker build -f "ubuntu-23.04.Dockerfile" -t "cknowledge/test-cm-script:ubuntu-23.04-cm-dev" . |
1 change: 1 addition & 0 deletions
1
automation/script/docker_repro_example/ubuntu-23.04.Dockerfile.run.bat
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 @@ | ||
docker run -it --entrypoint "" cknowledge/test-cm-script:ubuntu-23.04-cm-dev bash |
3 changes: 3 additions & 0 deletions
3
automation/script/docker_repro_example/ubuntu-23.04.Dockerfile.run.sh
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,3 @@ | ||
#!/bin/bash | ||
|
||
docker run -it --entrypoint "" cknowledge/test-cm-script:ubuntu-23.04-cm-dev 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
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 was deleted.
Oops, something went wrong.
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,32 @@ | ||
alias: app-image-corner-detection | ||
uid: 998ffee0bc534d0a | ||
|
||
automation_alias: script | ||
automation_uid: 5b4e0237da074764 | ||
|
||
category: Modular application pipeline | ||
|
||
deps: | ||
- tags: detect,os | ||
|
||
- tags: detect,cpu | ||
|
||
- tags: download,file,_url.https://cKnowledge.org/ai/data/data.pgm | ||
md5sum: 0af279e557a8de252d7ff0751a999379 | ||
force_cache: false | ||
|
||
|
||
posthook_deps: | ||
- skip_if_env: | ||
CM_SKIP_COMPILE: | ||
- 'on' | ||
tags: compile,cpp-program | ||
- skip_if_env: | ||
CM_SKIP_RUN: | ||
- 'on' | ||
tags: benchmark-program | ||
|
||
tags: | ||
- app | ||
- image | ||
- corner-detection |
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 was deleted.
Oops, something went wrong.
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