Skip to content

Commit

Permalink
diff start scripts for Notary and signy
Browse files Browse the repository at this point in the history
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
  • Loading branch information
trishankatdatadog committed Feb 10, 2020
1 parent 8bc90a4 commit 29abec5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start.sh → scripts/notary-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ docker run -d \
-e REGISTRY_HTTP_TLS_KEY=/certs/notary-server.key \
registry:2

docker ps
docker ps
18 changes: 18 additions & 0 deletions scripts/signy-start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

NOTARY=$GOPATH/src/github.com/theupdateframework/notary

(cd $NOTARY; docker-compose up -d)

# NOTE: Notary (see scripts/notary-start.sh) seems to require TLS for both the
# Registry and itself. However, that setup breaks cnab-to-oci (required for
# signy), most likely because we use a self-signed root here. Until we fix
# this, it is easiest to use two different scripts to initalize the Registry
# for Notary and signy.
docker run -d \
--name registry \
-p 5000:5000 \
-e REGISTRY_HTTP_ADDR=0.0.0.0:5000 \
registry:2

docker ps

0 comments on commit 29abec5

Please sign in to comment.