Skip to content

Commit

Permalink
update: all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Mar 29, 2024
1 parent 50160f2 commit f870eb5
Show file tree
Hide file tree
Showing 14 changed files with 595 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-s2i-cuda-11.8.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-udi-cuda-11.8.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-udi-cuda-12.x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

Expand Down
22 changes: 22 additions & 0 deletions .spellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
matrix:
- name: Markdown
aspell:
lang: en
# ignore-case: true
dictionary:
encoding: utf-8
wordlists:
- .wordlist-md
pipeline:
- pyspelling.filters.markdown:
- pyspelling.filters.html:
comments: false
attributes:
- title
- alt
ignores:
- code
- pre
sources:
- '**/*.md|!venv/**'
default_encoding: utf-8
180 changes: 180 additions & 0 deletions .wordlist-md
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
acac
Acyclic
allocatable
amd
api
APIs
apiVersion
arg
ArgoCD
artifactory
ARTIFACTORY
autoscaler
autoscaling
Autoscaling
aws
bd
bde
beaecd
bfa
bkoz
buildkit
Buildkit
cd
centos
cff
che
CheCluster
ci
CICD
config
CONFIG
CRD
cuda
Cuda
CUDA
CudaGL
CUDAGL
cudart
cudgl
cudnn
cuDNN
CUDNN
CVE
CVEs
dacaea
DCGM
debian
dev
Dev
devel
devfile
Devfile
devspaces
DevSpaces
devworkspace
dfea
distro
distros
DL
dn
Dockerfile
Dockerfiles
DockerHub
efa
Entrypoint
EOL
eustace
forseable
gb
ghcr
Gi
github
gitlab
Gitlab
gitops
GitOps
Globals
goto
GPL
gpu
GPUs
html
https
Infiniband
init
Init
io
jq
jsonpath
jupyter
Kitmaker
kubernetes
kustomization
Kustomization
kustomize
Kustomize
LD
le
libcudnn
libnccl
linux
md
mig
mins
MLOps
na
nccl
NCCL
nfd
NFD
ngc
NGC
NICs
nodeFeatureDiscovery
NodeResourceTopology
NUMA
nvcr
nvidia
OAuth
oc
ocp
OCP
OPENGL
openshift
Openshift
OpenShift
OpenSource
os
overidden
packagin
PCI
podman
ppc
py
pyenv
pytest
pytorch
Quickstart
rc
readme
Readme
README
readmes
redhat
redist
repo
Repo
repos
Repos
RHDP
rhel
rockylinux
runtimes
scalable
sclorg
sepecified
sha
ssa
subkeys
sunsetted
svc
sw
tensorflow
th
TLS
TODO
tolerations
traefik
txz
ubi
ubuntu
udi
UDI
unselect
urm
vCPU
vscode
WIP
workspaces
yaml
24 changes: 24 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
extends: default

rules:
document-start: disable
line-length: disable
comments-indentation: disable
new-line-at-end-of-file: disable
indentation:
indent-sequences: whatever
ignore: kludgeops/
braces:
min-spaces-inside: 0
max-spaces-inside: 1
truthy:
ignore: .github/workflows/
trailing-spaces:
ignore: |
# components/operators/openshift-gitops-operator/instance/overlays/default/patch-resource-customizations.yaml
empty-lines:
ignore: |
components/operators/ack-controllers/base/adoptedresources-crd.yaml

ignore:
- "scratch/*"
84 changes: 84 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# see https://github.com/mvanholsteijn/docker-makefile/blob/master/Makefile

CONTAINER_CMD=podman
CONTAINER_BUILD_CONTEXT=.
CONTAINER_FILE_PATH=Dockerfile

RUSER=redhat-na-ssa
REGISTRY=ghcr.io
VERSION=latest

SHELL=/bin/bash


.PHONY: build


build: lint pre-build build-s2i-cuda-11 build-udi-cuda-11 build-udi-cuda-12 post-build


lint: venv lint-yaml lint-spellcheck


pre-build:


post-build:


main-build:


build-s2i-cuda-11:
cd containers/s2i-cuda/core; \
$(CONTAINER_CMD) build \
-t $(REGISTRY)/$(RUSER)/udi-cuda:11.8.0-cudnn8-runtime-ubi8 \
--build-arg IMAGE_NAME=docker.io/nvidia/cuda:11.8.0-cudnn8-runtime-ubi8 \
$(CONTAINER_BUILD_CONTEXT) -f $(CONTAINER_FILE_PATH).rhel8

build-udi-cuda-11:
cd containers/udi-cuda/ubi8; \
$(CONTAINER_CMD) build \
-t $(REGISTRY)/$(RUSER)/udi-cuda:11.8.0-cudnn8-runtime-ubi8 \
--build-arg IMAGE_NAME=docker.io/nvidia/cuda:11.8.0-cudnn8-runtime-ubi8 \
$(CONTAINER_BUILD_CONTEXT) -f $(CONTAINER_FILE_PATH)

cd containers/udi-cuda/ubi8; \
$(CONTAINER_CMD) build \
-t $(REGISTRY)/$(RUSER)/udi-cuda:11.8.0-cudnn8-devel-ubi8 \
--build-arg IMAGE_NAME=docker.io/nvidia/cuda:11.8.0-cudnn8-devel-ubi8 \
$(CONTAINER_BUILD_CONTEXT) -f $(CONTAINER_FILE_PATH)

build-udi-cuda-12:
cd containers/udi-cuda/ubi8; \
$(CONTAINER_CMD) build \
-t $(REGISTRY)/$(RUSER)/udi-cuda:12.3.2-cudnn9-runtime-ubi8 \
--build-arg IMAGE_NAME=docker.io/nvidia/cuda:12.3.2-cudnn9-runtime-ubi8 \
$(CONTAINER_BUILD_CONTEXT) -f $(CONTAINER_FILE_PATH)

cd containers/udi-cuda/ubi8; \
$(CONTAINER_CMD) build \
-t $(REGISTRY)/$(RUSER)/udi-cuda:12.3.2-cudnn9-devel-ubi8 \
--build-arg IMAGE_NAME=docker.io/nvidia/cuda:12.3.2-cudnn9-devel-ubi8 \
$(CONTAINER_BUILD_CONTEXT) -f $(CONTAINER_FILE_PATH)


push:
$(CONTAINER_CMD) push $(REGISTRY)/$(RUSER)/udi-cuda:$(VERSION)
$(CONTAINER_CMD) push $(REGISTRY)/$(RUSER)/udi-cuda:$(VERSION)
$(CONTAINER_CMD) push $(REGISTRY)/$(RUSER)/s2i-cuda:$(VERSION)

lint-yaml:
$(VENV)/yamllint -c .yamllint .

lint-spellcheck:
$(VENV)/pyspelling -c .spellcheck.yaml

include Makefile.venv
Makefile.venv:
curl \
-o Makefile.fetched \
-L "https://github.com/sio/Makefile.venv/raw/v2022.07.20/Makefile.venv"
echo "147b164f0cbbbe4a2740dcca6c9adb6e9d8d15b895be3998697aa6a821a277d8 *Makefile.fetched" \
| sha256sum --check - \
&& mv Makefile.fetched Makefile.venv
Loading

0 comments on commit f870eb5

Please sign in to comment.