This page list various operations that can be automated via Docker.
This will run a new instance of CouchDB in single
mode (no cluster) and in
admin-party-mode
(no user). This command exposes couchdb on the port 5984
.
$ docker run -d \
--name cozy-stack-couch \
-p 5984:5984 \
-v $HOME/.cozy-stack-couch:/opt/couchdb/data \
apache/couchdb:2.2
$ curl -X PUT http://127.0.0.1:5984/{_users,_replicator,_global_changes}
Verify your installation at: http://127.0.0.1:5984/_utils/#verifyinstall.
Warning, this command will build a linux binary. Use
GOOS
and GOARCH
to
adapt to your own system.
# From your cozy-stack developement folder
docker run -it --rm --name cozy-stack \
-v $(pwd):/go/src/github.com/cozy/cozy-stack \
-v $(pwd):/go/bin \
golang:1.10 \
go get -v github.com/cozy/cozy-stack
We publish the cozy-app-dev image when we release a new version of the stack.
See scripts/release.sh
for details.
A precision for the app name :
docker run --rm -it -p 8080:8080 -v "$(pwd)/build":/data/cozy-app/my-app cozy/cozy-app-dev
my-app will be the first part of : my-app.cozy.tools:8080