Skip to content

Commit

Permalink
better readme
Browse files Browse the repository at this point in the history
  • Loading branch information
noha committed May 14, 2019
1 parent c48a2e5 commit 3aff146
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
SnapDump
========

A software to create, manage and review snapshot dumps in pharo
SnapDump is a software for pharo to create and manage runtime snapshots. When developing software in pharo and an exception occurs we get a debugger window openend. This is not possible if the application is deployed in a server environment. Usually activity of a server is written in logfiles but logfiles are a very poor way of getting error feedback from your application. In pharo we can snapshot the state of the application when an exception occurs. This snapshot can be serialized using the fuel graph serializer and uploaded to a server. By uploading the snapshot to a server we can use SnapDump in a distributed scenario where multiple servers give feedback.

Quick start
-----------

SnapDump is available as docker application for easy deployment. To keep the snapshots on server restart we need to create a volume where snapshots can be stored. You do this by invoking

$ docker volume create SnapDump

SnapDump uses internally the port 5555 for the server. This can be mapped to a local port on the host by specifying on the docker commandline. To start the server with that port and the former created volume invoke

$ docker run -p 8888:5555 -v SnapDump:/snapshots zweidenker/snap-dump

Download a pharo image and install the SnapDump client

$ curl get.pharo.org/64/70+vm | bash
$ ./pharo-ui Pharo.image

Open a playground and type

"configure the SnapDump client to access the docker container"
SnapDump uri: 'http://localhost:8888/api'.
"Uploaded a few snapshots to see something in the client"
SDHandler fillExamples.
"open the ui"
SnapDump ui

You should see this

![SnapDump UI](https://raw.githubusercontent.com/zweidenker/SnapDump/master/images/ui.png)
Binary file added images/ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3aff146

Please sign in to comment.