mirror of https://github.com/docker/docs.git
Added Dockerfiles, changed compose
This commit is contained in:
parent
6ad97259df
commit
0ee61e25c9
|
@ -4,13 +4,9 @@ COPY . /go/src/github.com/docker/vetinari
|
|||
|
||||
RUN chmod 777 /tmp/
|
||||
|
||||
RUN mkdir /tmp/sqlite/
|
||||
|
||||
RUN apt-get update && apt-get install -y libsqlite3-dev
|
||||
|
||||
RUN GOPATH=/go/:/go/src/github.com/docker/vetinari/Godeps/_workspace go install github.com/docker/vetinari/cmd/vetinari-server
|
||||
|
||||
EXPOSE 4444
|
||||
EXPOSE 4443
|
||||
|
||||
WORKDIR /go/src/github.com/docker/vetinari
|
||||
|
||||
|
|
|
@ -27,3 +27,8 @@ separate service and server with highly restricted permissions. Rufus
|
|||
is provided as a reference implementation of a remote signer. An
|
||||
implementation that satisfies the gRPC interface defined in Rufus will
|
||||
satisfy Vetinari's requirements.
|
||||
|
||||
# Running
|
||||
|
||||
`# docker-compose build`
|
||||
`# docker-compose up`
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
{
|
||||
"server": {
|
||||
"addr": ":4444",
|
||||
"addr": ":4443",
|
||||
"tls_key_file": "/go/src/github.com/docker/vetinari/fixtures/vetinari.key",
|
||||
"tls_cert_file": "/go/src/github.com/docker/vetinari/fixtures/vetinari.pem"
|
||||
},
|
||||
"trust_service": {
|
||||
"type": "remote",
|
||||
"hostname": "rufus",
|
||||
"port": "7899",
|
||||
"tls_ca_file": "/go/src/github.com/docker/vetinari/fixtures/ca.cert"
|
||||
"type": "local",
|
||||
"hostname": "",
|
||||
"port": ""
|
||||
},
|
||||
"logging": {
|
||||
"level": 5
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ func main() {
|
|||
trust = signed.NewEd25519()
|
||||
}
|
||||
|
||||
db, err := sql.Open("mysql", "root:@/dockercondemo")
|
||||
db, err := sql.Open("mysql", "dockercondemo:dockercondemo@tcp(mysql:3306)/dockercondemo")
|
||||
if err != nil {
|
||||
logrus.Fatal("Error starting DB driver: ", err.Error())
|
||||
return // not strictly needed but let's be explicit
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
vetinari:
|
||||
build: .
|
||||
links:
|
||||
- rufus
|
||||
- mysql
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "4444:4444"
|
||||
rufus:
|
||||
volumes:
|
||||
- /dev/bus/usb/003/010:/dev/bus/usb/002/010
|
||||
- /var/run/pcscd/pcscd.comm:/var/run/pcscd/pcscd.comm
|
||||
build: ../rufus
|
||||
- "4443:4443"
|
||||
#rufus:
|
||||
# volumes:
|
||||
# - /dev/bus/usb/003/010:/dev/bus/usb/002/010
|
||||
# - /var/run/pcscd/pcscd.comm:/var/run/pcscd/pcscd.comm
|
||||
# build: ../rufus
|
||||
mysql:
|
||||
build: ./mysql/
|
||||
ports:
|
||||
- "7899:7899"
|
||||
|
||||
- "3306:3306"
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 3234be9a899bbb86cbf724901d4cfe3b72789285
|
Loading…
Reference in New Issue