This file contains hidden or 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
# Calico | |
#### 拉取镜像 | |
```shell | |
nerdctl image pull --namespace=k8s.io quay.io/tigera/operator:v1.30.3 | |
nerdctl image pull --namespace=k8s.io m.daocloud.io/docker.io/calico/cni:v3.26.0 | |
nerdctl image pull --namespace=k8s.io m.daocloud.io/docker.io/calico/node:v3.26.0 | |
nerdctl image pull --namespace=k8s.io m.daocloud.io/docker.io/calico/kube-controllers:v3.26.0 | |
nerdctl image pull --namespace=k8s.io m.daocloud.io/docker.io/calico/csi:v3.26.0 |
This file contains hidden or 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
# syntax=docker/dockerfile:1 | |
FROM --platform=$TARGETPLATFORM php:8.0-fpm | |
WORKDIR /app | |
COPY index.php /app |
This file contains hidden or 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
.PHONY: proto | |
proto: | |
@ if ! which protoc > /dev/null; then \ | |
echo "error: protoc not installed" >&2; \ | |
exit 1; \ | |
fi | |
@ if ! which protoc-gen-go > /dev/null; then \ | |
echo "error: protoc-gen-go not installed" >&2; \ | |
exit 1; \ | |
fi |
This file contains hidden or 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
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Laravel-admin upload setting | |
|-------------------------------------------------------------------------- | |
| | |
| File system configuration for form upload files and images, including | |
| disk and upload path. | |
| |
This file contains hidden or 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
<?php | |
protected function form() | |
{ | |
$form = new Form(new ModelName); | |
$form->row(function ($row) { | |
$row->width(4)->text('email'); | |
$row->width(4)->text('password'); | |
$row->width(4)->text('password_confirmation'); | |
}); |
This file contains hidden or 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
<?php | |
$form->select('user_id')->options(function ($id) { | |
$user = User::find($id); | |
if ($user) { | |
return [$user->id => $user->name]; | |
} | |
})->ajax(admin_url('api/users')); # Best practice | |
# })->ajax('/admin/api/users'); # Strongly not recommended |
This file contains hidden or 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
<?php | |
protected function form() | |
{ | |
$form = new Form(new ModelName); | |
$form->text('title')->rules('required')->required()->help('This field must be required'); | |
$form->text('number')->rules('required|regex:/\d{3}/')->pattern('\d{3}')->help('This field must be three digits'); | |
return $form; | |
} |