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.
|
|
3 years ago | |
|---|---|---|
| controller | 3 years ago | |
| routers | 3 years ago | |
| service | 3 years ago | |
| static | 3 years ago | |
| util | 3 years ago | |
| .gitignore | 3 years ago | |
| Dockerfile | 3 years ago | |
| Dockerfile-cn | 3 years ago | |
| Makefile | 3 years ago | |
| go.mod | 3 years ago | |
| main.go | 3 years ago | |
| readme.md | 3 years ago | |
readme.md
build arm64 on oracle k8s
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
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 run --name niupicupload --restart always -p 127.0.0.1:8081:8080 -d sre/niupicupload:amd64
usage
http://127.0.0.1:8080/upload.html