Skip to content

Commit 33ba8cf

Browse files
committed
Sync with dev (new)
Former-commit-id: d0d09aeb1e298e778f0f66252db735001d3fb22c
1 parent 47e7c3e commit 33ba8cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1449
-0
lines changed

LICENSE.third-party.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This CM repository may contain CM scripts with third-party files licensed under Apache2, BSD or MIT license.

automation/cfg/README-extra.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Examples:
2+
3+
```bash
4+
cm set cfg default
5+
cm set cfg default --key.script.silent
6+
cm set cfg default --key.script.silent-
7+
8+
```
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM ubuntu:23.04
2+
3+
# Automatically generated by the CM workflow automation meta-framework
4+
# https://github.com/mlcommons/ck
5+
6+
LABEL github=""
7+
LABEL maintainer=""
8+
LABEL license=""
9+
10+
SHELL ["/bin/bash", "-c"]
11+
12+
ARG CM_GH_TOKEN
13+
ARG CM_ADD_DOCKER_GROUP_ID=""
14+
15+
# Notes: https://runnable.com/blog/9-common-dockerfile-mistakes
16+
# Install system dependencies
17+
RUN apt-get update -y
18+
RUN apt-get install -y python3 python3-pip git sudo wget
19+
20+
# Setup docker environment
21+
ENTRYPOINT ["/bin/bash", "-c"]
22+
ENV TZ="US/Pacific"
23+
ENV PATH="${PATH}:/home/cmuser/.local/bin"
24+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone
25+
26+
# Setup docker user
27+
RUN groupadd ${CM_ADD_DOCKER_GROUP_ID} cm
28+
RUN useradd -g cm --create-home --shell /bin/bash cmuser
29+
RUN echo "cmuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
30+
USER cmuser:cm
31+
WORKDIR /home/cmuser
32+
33+
# Install python packages
34+
RUN python3 -m pip install --user cmind requests giturlparse tabulate --break-system-packages
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker build -f "ubuntu-23.04.Dockerfile" -t "cknowledge/test-cm-script:ubuntu-23.04-cm-dev" .
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker build -f "ubuntu-23.04.Dockerfile" -t "cknowledge/test-cm-script:ubuntu-23.04-cm-dev" .
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker run -it --entrypoint "" cknowledge/test-cm-script:ubuntu-23.04-cm-dev bash
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker run -it --entrypoint "" cknowledge/test-cm-script:ubuntu-23.04-cm-dev bash
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
alias: docker-basic-configurations
2+
uid: d2a0c5bb17664c93
3+
4+
automation_alias: cfg
5+
automation_uid: 88dce9c160324c5d
6+
7+
tags:
8+
- docker
9+
- basic
10+
- configurations
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
uid: 9960e9fb3cb24cb3
2+
3+
name: "Basic ArchLinux"
4+
5+
input:
6+
docker_base_image: 'archlinux'
7+
docker_os: arch
8+
docker_os_version: 'latest'
9+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
uid: 27b4afcdd8e042e8
2+
3+
name: "Basic RHEL 9"
4+
5+
input:
6+
docker_base_image: 'registry.access.redhat.com/ubi9'
7+
docker_os: 'rhel'
8+
docker_os_version: '9'
9+

0 commit comments

Comments
 (0)