mirror of https://github.com/docker/docs.git
Add some standalone (does not require MySQL) configuration files for
server and signer, and set these to be the default configuration files when running the images. Compose specifies the configuration with MySQL. Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
parent
a94a47651f
commit
56e8d864ce
|
@ -20,4 +20,4 @@ RUN go install \
|
|||
${NOTARYPKG}/cmd/notary-server
|
||||
|
||||
ENTRYPOINT [ "notary-server" ]
|
||||
CMD [ "-config", "fixtures/server-config.json" ]
|
||||
CMD [ "-config=fixtures/server-config-local.json" ]
|
||||
|
|
|
@ -38,4 +38,4 @@ RUN go install \
|
|||
|
||||
|
||||
ENTRYPOINT [ "notary-signer" ]
|
||||
CMD [ "-config=fixtures/signer-config.json" ]
|
||||
CMD [ "-config=fixtures/signer-config-local.json" ]
|
||||
|
|
|
@ -8,7 +8,8 @@ notaryserver:
|
|||
- "8080"
|
||||
- "4443:4443"
|
||||
environment:
|
||||
SERVICE_NAME: notary
|
||||
- SERVICE_NAME=notary
|
||||
command: -config=fixtures/server-config.json
|
||||
notarysigner:
|
||||
volumes:
|
||||
- /dev/bus/usb/003/010:/dev/bus/usb/002/010
|
||||
|
@ -17,6 +18,7 @@ notarysigner:
|
|||
dockerfile: Dockerfile.signer
|
||||
links:
|
||||
- notarymysql
|
||||
command: -config=fixtures/signer-config.json
|
||||
notarymysql:
|
||||
build: ./notarymysql/
|
||||
ports:
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"server": {
|
||||
"http_addr": ":4443",
|
||||
"tls_key_file": "./notary-server.key",
|
||||
"tls_cert_file": "./notary-server.crt"
|
||||
},
|
||||
"trust_service": {
|
||||
"type": "remote",
|
||||
"hostname": "notarysigner",
|
||||
"port": "7899",
|
||||
"tls_ca_file": "./root-ca.crt",
|
||||
"key_algorithm": "ecdsa",
|
||||
"tls_client_cert": "./notary-server.crt",
|
||||
"tls_client_key": "./notary-server.key"
|
||||
},
|
||||
"logging": {
|
||||
"level": "debug"
|
||||
},
|
||||
"storage": {
|
||||
"backend": "memory"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"server": {
|
||||
"http_addr": ":4444",
|
||||
"grpc_addr": ":7899",
|
||||
"tls_cert_file": "./notary-signer.crt",
|
||||
"tls_key_file": "./notary-signer.key",
|
||||
"client_ca_file": "./notary-server.crt"
|
||||
},
|
||||
"logging": {
|
||||
"level": "debug"
|
||||
},
|
||||
"storage": {
|
||||
"backend": "memory"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue