apt cacher for debian
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Giles Bradshaw e8b61d5992 ci: copy drone to docker secrets 1年前
.drone ci: copy drone to docker secrets 1年前
docker-dind ci: copy drone to docker secrets 1年前
git-hooks ci: better hook 1年前
.gitignore ci: jsonnet-drone@0.1.0 1年前
.versionrc ci: compare message format 1年前
CHANGELOG.md chore(release): 0.0.8 1年前
LICENSE Initial commit 1年前
README.md ci: jsonnet-drone@0.1.0 1年前
docker-compose.yml ci: jsonnet-drone@0.1.0 1年前
openssl.cnf . 1年前
package.json chore(release): 0.0.8 1年前
squid.conf Merge branch 'home-deploy' of https://sigyl.com/git/stack/squid into home-deploy 1年前
yarn.lock ci: yarn.lock 1年前



apt cacher for debian

inspired by https://github.com/salrashid123/squid_proxy

making a CA

openssl genrsa -out CA_key.pem 2048
openssl req -x509 -days 600 -new -nodes -key CA_key.pem -out CA_crt.pem -extensions v3_ca -config openssl.cnf    -subj "/C=UK/ST=Devon/L=Rose Ash/O=Google/OU=SiGyl/CN=Proxy-ca"

then set drone secrets ca-crt and ca-key to the created files

making dockerconfigjson

the drone secret dockerconfigjson allows images to be pulled from the local docker repository

if you login to this repository with:

docker login $LOCAL_DOCKER_REGISTRY --username client --password $REGISTRY_PASSWORD

then you will find the required content with:

cat ~/.docker/config.json


see here