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:
Ying Li 2015-11-24 17:57:43 -05:00
parent a94a47651f
commit 56e8d864ce
5 changed files with 42 additions and 3 deletions

View File

@ -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" ]

View File

@ -38,4 +38,4 @@ RUN go install \
ENTRYPOINT [ "notary-signer" ]
CMD [ "-config=fixtures/signer-config.json" ]
CMD [ "-config=fixtures/signer-config-local.json" ]

View File

@ -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:

View File

@ -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"
}
}

View File

@ -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"
}
}