This is docker based, pre-configured client-server setup to demonstrate drs
features.
The server is a simple SSH server with drs
user added. The client is just a shell to play with drs
commands. SSH has pre-configured keys and will work out-of-box.
Networking is private to these containers. For demonstration purposes only.
- Start the server container in the background
docker-compose up -d drs-server
- Start the interactive shell within the client container
docker-compose run --rm drs-client
- Verifing the connection the client shell
ssh drs-server
- Clone and setup
drs
repositorygit clone drs-server:drs-demo cd drs-demo $DRS_HOME/install.sh
- Create the first revision with some sample content and put it to
drs
mkdir myproject echo "Hello World" >> myproject/file1 git drs-put
- Create a second revision with some sample content on a branch and put it to
drs
git drs-create myfeature echo "Hello World" >> myproject/file2 git drs-put
- Go back to
master
branch and get the latest revisionIf you check the files ingit drs-select master git drs-get --latest
myproject
directory, you will notice onlyfile1
is present. Directorymyproject
is syncronized with the last revision on this branch.
To stop all services use
docker-compose down