diff options
| author | ブドウの鳥 <OGrape@users.noreply.github.com> | 2015-01-01 20:59:56 -0700 |
|---|---|---|
| committer | ブドウの鳥 <OGrape@users.noreply.github.com> | 2015-01-01 20:59:56 -0700 |
| commit | b51282ae95ade0e77eecb38b3f18246a7800d014 (patch) | |
| tree | 5f533a198ed32c080c97bcded0b44a33fb00022c /docs/gettingstarted.rst | |
| parent | 329c5915fe18a2fd48de5512a51cec31d029ad64 (diff) | |
| download | seaweedfs-b51282ae95ade0e77eecb38b3f18246a7800d014.tar.xz seaweedfs-b51282ae95ade0e77eecb38b3f18246a7800d014.zip | |
Update gettingstarted.rst
Adding instructions to build docker image
Diffstat (limited to 'docs/gettingstarted.rst')
| -rw-r--r-- | docs/gettingstarted.rst | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/docs/gettingstarted.rst b/docs/gettingstarted.rst index ad28319fe..21672b811 100644 --- a/docs/gettingstarted.rst +++ b/docs/gettingstarted.rst @@ -82,6 +82,9 @@ Using Seaweed-FS in docker You can use image "cydev/weed" or build your own with `dockerfile <https://github.com/chrislusf/weed-fs/blob/master/Dockerfile>`_ in the root of repo. +Using pre-built Docker image +************************************************************** + .. code-block:: bash docker run --name weed cydev/weed server @@ -98,6 +101,29 @@ And in another terminal } # use $IP as host for api queries +Building image from dockerfile +************************************************************** + +Make a local copy of weed-fs from github + +.. code-block:: bash + + git clone https://github.com/chrislusf/weed-fs.git + +Minimal Image (~19.6 MB) + +.. code-block:: bash + + docker build --no-cache --rm -t 'cydev/weed' . + +Go-Build Docker Image (~764 MB) + +.. code-block:: bash + + mv Dockerfile Dockerfile.minimal + mv Dockerfile.go_build Dockerfile + docker build --no-cache --rm -t 'cydev/weed' . + In production ************************************************************** @@ -111,4 +137,4 @@ To gain persistency you can use docker volumes. -publicIp="$(curl -s cydev.ru/ip)" Now our weed-fs server will be persistent and accessible by localhost:9333 and :8080 on host machine. -Dont forget to specify "-publicIp" for correct connectivity.
\ No newline at end of file +Dont forget to specify "-publicIp" for correct connectivity. |
