[MISC] Adding Docker Instructions to README (#3366)

pull/3379/head
Johannes Batzill 2023-09-21 14:02:58 -07:00 committed by GitHub
parent 890a22bc13
commit ea0bac5164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View File

@ -6,6 +6,19 @@ Gitness is building on top of Drone to create a new, open source developer platf
For more information on Gitness, please visit [gitness.com](https://gitness.com/).
For more information on Drone, please visit [drone.io](https://www.drone.io/)
# Using Docker
The latest publicly released docker image can be found on [harness/gitness](https://hub.docker.com/r/harness/gitness).
To try it out, run the command below. Once the container is running, you can visit localhost:3000 in your browser.
``` bash
docker run \
-p 3000:3000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp/gitness:/data \
harness/gitness:latest
```
> The Gitness image uses a volume to store the database and repositories. It is highly recommended to use a bind mount or named volume as otherwise all data will be lost once the contaner is stopped.
# Pre-Requisites
Install the latest stable version of Node and Go version 1.19 or higher, and then install the below Go programs. Ensure the GOPATH [bin directory](https://go.dev/doc/gopath_code#GOPATH) is added to your PATH.

View File

@ -234,7 +234,7 @@ export function MarkdownEditorWithPreview({
if (autoFocusAndPosition && !dirty) {
scrollToAndSetCursorToEnd(containerRef, viewRef, value, true)
}
}, [autoFocusAndPosition, value])
}, [autoFocusAndPosition, viewRef, containerRef, scrollToAndSetCursorToEnd, value, dirty])
return (
<Container ref={containerRef} className={cx(css.container, { [css.noBorder]: noBorder }, className)}>