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
参考:https://github.com/fcwu/docker-ubuntu-vnc-desktop | |
docker run -p 6080:80 -p 5900:5900 -v /dev/shm:/dev/shm -v /tmp:/tmp release-ci.daocloud.io/docker.m.daocloud.io/dorowu/ubuntu-desktop-lxde-vnc |
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
export KUBE_VERSION="1.28.0" | |
export FILE_MIRROR="https://files.m.daocloud.io" | |
cd /tmp | |
curl -LO "$FILE_MIRROR/dl.k8s.io/release/v$KUBE_VERSION/bin/linux/amd64/kubectl" | |
chmod +x kubectl | |
mv kubectl /usr/local/bin | |
curl -LO "$FILE_MIRROR/dl.k8s.io/release/v$KUBE_VERSION/bin/linux/amd64/kubeadm" |
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
cd /tmp | |
export LAZYGIT_VERSION=$(curl -s https://api.github.com/repos/jesseduffield/lazygit/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' ) | |
export LAZYGIT_VERSION=${LAZYGIT_VERSION:1:100} | |
wget https://files.m.daocloud.io/github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz | |
tar -zxvf lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz | |
chmod +x lazygit | |
mv lazygit /usr/local/bin/lazygit | |
lazygit -v |
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
cd /tmp | |
export NERDCTL_VERSION=$(curl -s https://api.github.com/repos/containerd/nerdctl/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' ) | |
export NERDCTL_VERSION=${NERDCTL_VERSION:1:100} | |
wget https://files.m.daocloud.io/github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz | |
tar -zxvf nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz | |
chmod +x nerdctl | |
mv nerdctl /usr/local/bin/nerdctl | |
nerdctl version |
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
export http_proxy="http://xxxx:10809" | |
export https_proxy="http://xxxx:10809" | |
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | 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
curl -LO https://files.m.daocloud.io/github.com/kvaps/kubectl-node-shell/raw/v1.7.0/kubectl-node_shell | |
chmod +x ./kubectl-node_shell | |
mv ./kubectl-node_shell /usr/local/bin/kubectl-node_shell |
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
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
import os | |
import gzip | |
import numpy as np | |
import tensorflow as tf | |
from tensorflow import keras | |
print('TensorFlow version: {}'.format(tf.__version__)) | |
dataset_path = "/root/data/" |
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
wget "https://ghproxy.com/raw.githubusercontent.com/aquasecurity/kube-bench/main/job-master.yaml" | |
kubectl apply -f job-master.yaml | |
kubectl get pods | |
kubectl logs kube-bench-master-zvplg |
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
export ISTIO_VERSION="1.17.1" | |
wget "https://files.m.daocloud.io/github.com/istio/istio/releases/download/${ISTIO_VERSION}/istio-${ISTIO_VERSION}-linux-amd64.tar.gz" | |
tar -zxvf istio-${ISTIO_VERSION}-linux-amd64.tar.gz | |
cd istio-${ISTIO_VERSION}/ |
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
修改配置 `vi /etc/containerd/config.toml` | |
``` | |
[plugins."io.containerd.grpc.v1.cri".registry.mirrors] | |
# docker | |
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"] | |
endpoint = ["https://release-ci.daocloud.io/v2/docker.m.daocloud.io"] | |
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.m.daocloud.io"] | |
endpoint = ["https://release-ci.daocloud.io/v2/docker.m.daocloud.io"] |
NewerOlder