You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
697 B
31 lines
697 B
1004 sre-branch-start
|
|
## build arm64 on oracle k8s
|
|
```bash
|
|
cd /root
|
|
rm -rf niupicUpload
|
|
git clone https://git.sre.ink/go/niupicUpload.git
|
|
cd niupicUpload
|
|
make build-linux-arm64
|
|
docker build -t sre/niupicupload:arm64 .
|
|
kubectl -n sre rollout restart deployment niupicupload
|
|
```
|
|
|
|
## build amd64 on tx
|
|
```bash
|
|
cd /root
|
|
rm -rf niupicUpload
|
|
git clone https://git.sre.ink/go/niupicUpload.git
|
|
cd niupicUpload
|
|
make build-linux-amd64
|
|
docker build -f Dockerfile-cn -t sre/niupicupload:amd64 .
|
|
docker rm -f niupicupload
|
|
docker run --name niupicupload --restart always -p 127.0.0.1:8081:8080 -d sre/niupicupload:amd64
|
|
docker logs -f niupicupload
|
|
```
|
|
|
|
|
|
|
|
## usage
|
|
```bash
|
|
http://127.0.0.1:8080/upload.html
|
|
``` |