diff --git a/AI/caffe/README.md b/AI/caffe/README.md new file mode 100644 index 0000000000000000000000000000000000000000..44b252baef4ae5d91cff57214fa2fb312523ccc7 --- /dev/null +++ b/AI/caffe/README.md @@ -0,0 +1,94 @@ +# Quick reference + +- The official Caffe docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative). + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community). + +# Caffe | openEuler +Current Caffe docker images are built on the [openEuler](https://repo.openeuler.org/). This repository is free to use and exempted from per-user rate limits. + +Caffe is a deep learning framework made with expression, speed, and modularity in mind. + +Learn more about on [Caffe Website](https://caffe.berkeleyvision.org/). + +# Supported tags and respective Dockerfile links +The tag of each `caffe` docker image is consist of the complete software stack version. The details are as follows + +| Tag | Currently | Architectures | +|------------------------------------------------------------------------------------------------------------------------|--------------------------------------|---------------| +| [1.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/AI/caffe/1.0/24.03-lts-sp1/Dockerfile) | Caffe 1.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | + +# Usage +In this usage, users can select the corresponding `{Tag}` and `container startup options` based on their requirements. + +- Pull the `openeuler/caffe` image from docker + + ``` + docker pull openeuler/caffe:{Tag} + ``` + +- Run with an interactive shell + + You can also start the container with an interactive shell to use caffe. + ``` + docker run -it --rm openeuler/caffe:{Tag} bash + ``` + +- How to train LeNet on MNIST with BVLC Caffe (CPU/GPU) + + - Download the MNIST dataset manually(mirror) + + In your container, go to mnist directory: + ``` + cd /opt/caffe/data/mnist + ``` + + Download the files from a reliable public mirror: + ``` + wget https://ossci-datasets.s3.amazonaws.com/mnist/train-images-idx3-ubyte.gz + wget https://ossci-datasets.s3.amazonaws.com/mnist/train-labels-idx1-ubyte.gz + wget https://ossci-datasets.s3.amazonaws.com/mnist/t10k-images-idx3-ubyte.gz + wget https://ossci-datasets.s3.amazonaws.com/mnist/t10k-labels-idx1-ubyte.gz + ``` + + Uncompress the files: + ``` + gzip -d *.gz + ``` + + - Convert the dataset to LMDB + + Switch to the Caffe root directory and run: + ``` + cd /opt/caffe + ./examples/mnist/create_mnist.sh + ``` + This script converts the raw MNIST files to LMDB format which Caffe uses for training. + + - Check the solver configuration + + Open the solver prototxt file: + ``` + vi ./examples/mnist/lenet_solver.prototxt + ``` + Make sure the last line matches your build: + ``` + solver_mode: CPU # For CPU-only Caffe builds + ``` + or + ``` + solver_mode: GPU # For Caffe built with CUDA/cuDNN + ``` + + - Train the model + + Finally, run the training command: + ``` + ./build/tools/caffe train --solver=examples/mnist/lenet_solver.prototxt + ``` + Caffe will start training the LeNet model on the MNIST dataset. + +# Question and answering +If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). diff --git a/AI/caffe/doc/image-info.yml b/AI/caffe/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..8cf7a7ca0a3f06eb086c77a3917e8f18b29787d8 --- /dev/null +++ b/AI/caffe/doc/image-info.yml @@ -0,0 +1,100 @@ +name: caffe +category: ai +description: Caffe(Convolutional Architecture for Fast Feature Embedding)是由伯克利视觉与学习中心(BVLC)和社区开发维护的一个 深度学习框架。 +environment: | + 本应用在Docker环境中运行,安装Docker执行如下命令 + ``` + yum install -y docker + ``` +tags: | + caffe镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + + | Tag | Currently | Architectures | + |------------------------------------------------------------------------------------------------------------------------|--------------------------------------|---------------| + | [1.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/AI/caffe/1.0/24.03-lts-sp1/Dockerfile) | Caffe 1.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | + +download: | + 拉取镜像到本地 + ``` + docker pull openeuler/caffe:{Tag} + ``` + +usage: | + - 交互式shell启动进入容器中 + + 交互式 shell 启动容器来操作 caffe: + ``` + docker run -it --rm openeuler/caffe:{Tag} bash + ``` + + - 使用 BVLC Caffe(CPU/GPU)训练 MNIST 上的 LeNet + + - 手动下载 MNIST 数据集(镜像源) + + 进入mnist目录: + ``` + cd /opt/caffe/data/mnist + ``` + + 从可靠的公开镜像下载文件: + ``` + wget https://ossci-datasets.s3.amazonaws.com/mnist/train-images-idx3-ubyte.gz + wget https://ossci-datasets.s3.amazonaws.com/mnist/train-labels-idx1-ubyte.gz + wget https://ossci-datasets.s3.amazonaws.com/mnist/t10k-images-idx3-ubyte.gz + wget https://ossci-datasets.s3.amazonaws.com/mnist/t10k-labels-idx1-ubyte.gz + ``` + + 解压文件: + ``` + gzip -d *.gz + ``` + + - 转换数据集为 LMDB + + 切换到 Caffe 根目录,然后运行 + ``` + cd /opt/caffe + ./examples/mnist/create_mnist.sh + ``` + 这个脚本会把原始的 MNIST 文件转换为 Caffe 训练所需的 LMDB 格式。 + + - 检查 solver 配置 + + 打开 solver 配置文件: + ``` + vi ./examples/mnist/lenet_solver.prototxt + ``` + + 确保最后一行与你的构建模式匹配: + ``` + solver_mode: CPU # For CPU-only Caffe builds + ``` + 或者: + ``` + solver_mode: GPU # For Caffe built with CUDA/cuDNN + ``` + + - 训练模型 + + 执行训练命令: + ``` + ./build/tools/caffe train --solver=examples/mnist/lenet_solver.prototxt + ``` + Caffe 将开始在 MNIST 数据集上训练 LeNet 模型。 + +license: BSD 2-Clause license +similar_packages: + - TensorFlow: TensorFlow是一个基于数据流编程(dataflow programming)的符号数学系统,被广泛应用于各类机器学习(machine learning)算法的编程实现,其前身是谷歌的神经网络算法库DistBelief。 + - MindSpore: 昇思MindSpore是由华为于2019年8月推出的新一代全场景AI框架,2020年3月28日,华为宣布昇思MindSpore正式开源。昇思MindSpore是一个全场景AI框架,旨在实现易开发、高效执行、全场景统一部署三大目标。 +dependency: + - ghostscript + - doxygen + - openblas + - opencv + - boost + - python + - protobuf + - snappy + - lmdb + - hdf5 + - gflags \ No newline at end of file diff --git a/AI/caffe/doc/picture/logo.png b/AI/caffe/doc/picture/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..1660323c73f0e29181582a911e9d693bb6c5f40e Binary files /dev/null and b/AI/caffe/doc/picture/logo.png differ diff --git a/Cloud/calico/README.md b/Cloud/calico/README.md index 4849b69419bf5847b3a18211f58f98adb9c7308d..0fecd4391ee4a27caad3a6b90c2447f9e9236d03 100644 --- a/Cloud/calico/README.md +++ b/Cloud/calico/README.md @@ -1,33 +1,41 @@ -# Calico - # Quick reference -- The Calico images based on openEuler for building Calico based Kubernetes pod netwrok. -- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) +- The official Calico docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative). + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community). + +# Calico | openEuler +Current Calico images are built on the [openEuler](https://repo.openeuler.org/). This repository is free to use and exempted from per-user rate limits. -- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community) +Calico is a single platform for networking, network security, and observability for any Kubernetes distribution in the cloud, on-premises, or at the edge. Whether you're just starting with Kubernetes or operating at scale, Calico's open source, enterprise, and cloud editions provide the networking, security, and observability you need. -# Build reference +Read more on [Calico Website](https://docs.tigera.io/calico/latest/about/). -1. Build all images and push: -```shell -./build.sh -``` +# Supported tags and respective dockerfile links +The tag of each `calico` docker image is consist of the version of `calico` and the version of basic image. The details are as follows -~~We are using `buildx` in here to generate multi-arch images, see more in [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/)~~ buildx is not supported in openEuler for now +| Tag | Currently | Architectures | +|----------------------------------------------------------------------------------------------------------------------------------|------------------------------------------|---------------| +| [3.29.3-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/calico/3.29.3/24.03-lts-sp1/Dockerfile) | Calico 3.29.3 on openEuler 24.03-LTS-SP1 | amd64, arm64 | -2. Deploy: -```shell -kubectl apply -f calico-3.22.0-openEuler-21.09.yaml -``` +# Usage +In this usage, users can select the corresponding `{Tag}` based on their requirements. -# Supported tags +- Pull the `openeuler/calico` image from docker -- 3.22.0-21.09: calico v3.22.0, openEuler 21.09 -- 3.22.0-21.09-amd64: calico v3.22.0, openEuler 21.09 for x86_64 -- 3.22.0-21.09-arm64: calico v3.22.0, openEuler 21.09 for aarch64 + ``` + docker pull openeuler/calico:{Tag} + ``` +- Start a calico instance -## Operating System -Linux/Unix, ARM64 or x86-64 architecture. + ``` + docker run -it --rm openeuler/calico:{Tag} + ``` + The `openeuler/calico` image is used to verify the integration between the upstream calico version and openEuler. + +# Question and answering +If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). \ No newline at end of file diff --git a/Cloud/calico/doc/image-info.yml b/Cloud/calico/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..73f26b1579999503448d8cddfa62fbed1f1ccff1 --- /dev/null +++ b/Cloud/calico/doc/image-info.yml @@ -0,0 +1,34 @@ +name: calico +category: cloud +description: Calico 是一个开源的网络和网络安全解决方案,专为 Kubernetes、OpenShift 和裸机/虚拟机工作负载设计。 +environment: | + 本应用在Docker环境中运行,安装Docker执行如下命令 + ``` + yum install -y docker + ``` +tags: | + docker镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + + | Tag | Currently | Architectures | + |----------|-------------|------------------| + |[3.29.3-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/calico/3.29.3/24.03-lts-sp1/Dockerfile)| Calico 3.29.3 on openEuler 24.03-LTS-SP1 | amd64, arm64 | + +download: | + 拉取镜像到本地 + ``` + docker pull openeuler/calico:{Tag} + ``` + +usage: | + - 启动calico实例 + + ``` + docker run -it --name calico openeuler/calico:{Tag} + ``` + `openeuler/calico`镜像用于验证上游calico版本和openEuler的集成。 + +license: Apache-2.0 license +similar_packages: + - N/A +dependency: + - openjdk \ No newline at end of file diff --git a/Cloud/calico/doc/picture/logo.png b/Cloud/calico/doc/picture/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..a0e411b56cd788011606e68571849ea28f495aa9 Binary files /dev/null and b/Cloud/calico/doc/picture/logo.png differ