From 714d4748a27ef71d25c35846a552958eda9256ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Fri, 12 Feb 2016 16:12:49 +0100 Subject: [PATCH] Fix paths in tutorial Change-Id: I58814196e8e0c8be15cc96fdd8fb4a1eb9555ee5 --- doc/source/tutorials/wordpress.rst | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/doc/source/tutorials/wordpress.rst b/doc/source/tutorials/wordpress.rst index 3faa89b3..07eeeee0 100644 --- a/doc/source/tutorials/wordpress.rst +++ b/doc/source/tutorials/wordpress.rst @@ -23,10 +23,6 @@ will install Wordpress and all components: cd solar vagrant up solar-dev solar-dev1 vagrant ssh solar-dev - cd /vagrant - -.. note:: - For now please assume that all `solar` commands are run from dir `/vagrant` 3. Config resource ------------------ @@ -36,11 +32,10 @@ handler nor actions. Let's create base structure: .. code-block:: bash - mkdir /tmp/wp_repo - mkdir /tmp/wp_repo/1.0.0/wp_config - touch /tmp/wp_repo/1.0.0/wp_config/meta.yaml + mkdir -p wp_repo/wp_config/1.0.0 + touch wp_repo/wp_config/1.0.0/meta.yaml -Open meta file `/vagrant/tmp/wp_repo/wp_config/meta.yaml` with your favorite +Open meta file `wp_repo/wp_config/1.0.0/meta.yaml` with your favorite text editor and paste the following data: .. code-block:: yaml @@ -91,9 +86,13 @@ All other required resources are already available in solar repositores: There are three ways to create resources in Solar: Python API, CLI and Composer files. We will use the last option. Composer file is just a simple yaml file -where we define all needed resources and connections. +where we define all needed resources and connections. Run: -Create new file `/vagrant/tmp/wp_repo/docker.yaml`, open it and past the +.. code-block:: bash + + mkdir -p wp_repo/docker/1.0.0 + +Create new file `wp_repo/docker/1.0.0/docker.yaml`, open it and past the following data: .. code-block:: yaml @@ -209,7 +208,7 @@ When all files are ready we need add created resources to solar repository: .. code-block:: bash - solar repo import tmp/wp_repo + solar repo import wp_repo This command created new solar resource repository. To list resources in this repository run: