Update gettingstarted.rst

Adding instructions to build docker image
This commit is contained in:
ブドウの鳥 2015-01-01 20:59:56 -07:00
parent 329c5915fe
commit b51282ae95

View file

@ -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. 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 .. code-block:: bash
docker run --name weed cydev/weed server docker run --name weed cydev/weed server
@ -98,6 +101,29 @@ And in another terminal
} }
# use $IP as host for api queries # 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 In production
************************************************************** **************************************************************