国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
#/bin/bash | |
set -ex | |
rm -rf isofiles | |
xorriso -osirrox on -indev debian-12.1.0-amd64-netinst.iso -extract / isofiles | |
chmod +w -R isofiles/install.amd/ | |
gunzip isofiles/install.amd/initrd.gz |
var requestBody = $request.body; | |
var responseBody = $response.body; | |
if (requestBody) { | |
requestBody = JSON.parse(requestBody); | |
console.log(requestBody); | |
if (requestBody.params && requestBody.params.includes("uni-id-users") && (requestBody.params.includes("is_vip,status,register_date") || requestBody.params.includes("sync_date,is_vip"))) { | |
// 修改返回结果中的字段 | |
responseBody = JSON.parse(responseBody); | |
console.log(responseBody); | |
if (responseBody.success){ |
FROM alpine:latest | |
RUN apk update \ | |
&& apk add \ | |
openssh-client \ | |
sshpass \ | |
ca-certificates \ | |
expect \ | |
bash |