Skip to content

Commit

Permalink
Added install docs to bumpversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Littman committed Apr 5, 2017
1 parent c369637 commit d97c448
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ current_version = 1.7.0

[bumpversion:file:requirements/release.txt]

[bumpversion:file:docs/install.rst]

20 changes: 10 additions & 10 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ Installing locally requires Docker and Docker-Compose. See :ref:`docker-installi

git clone https://github.com/gwu-libraries/sfm-docker.git
cd sfm-docker
# Replace 1.6.0 with the correct version.
git checkout 1.6.0
# Replace 1.7.0 with the correct version.
git checkout 1.7.0
cp example.prod.docker-compose.yml docker-compose.yml
cp example.env .env

or just download ``example.prod.docker-compose.yml`` and ``example.env`` (replacing 1.6.0 with the correct version)::
or just download ``example.prod.docker-compose.yml`` and ``example.env`` (replacing 1.7.0 with the correct version)::

curl -L https://github.com/gwu-libraries/sfm-docker/raw/1.6.0/example.prod.docker-compose.yml > docker-compose.yml
curl -L https://github.com/gwu-libraries/sfm-docker/raw/1.6.0/example.env > .env
curl -L https://github.com/gwu-libraries/sfm-docker/raw/1.7.0/example.prod.docker-compose.yml > docker-compose.yml
curl -L https://github.com/gwu-libraries/sfm-docker/raw/1.7.0/example.env > .env

2. Update configuration in ``.env`` as described in :ref:`install-configuration`.

Expand All @@ -68,7 +68,7 @@ Notes:
To launch an Amazon EC2 instance running SFM, follow the normal procedure for launching an instance.
In *Step 3: Configure Instance Details*, under *Advanced Details* paste the following in
user details and modify as appropriate as described in :ref:`install-configuration`. Also, in the curl
statements change *master* to the correct version, e.g., *1.6.0*::
statements change *master* to the correct version, e.g., *1.7.0*::

#cloud-config
repo_update: true
Expand Down Expand Up @@ -223,13 +223,13 @@ This may take several minutes.
3. Get the latest ``example.prod.docker-compose.yml``. If you previously cloned the sfm-docker repository then::

git pull
# Replace 1.6.0 with the correct version.
git checkout 1.6.0
# Replace 1.7.0 with the correct version.
git checkout 1.7.0
cp example.prod.docker-compose.yml docker-compose.yml

otherwise, replacing 1.6.0 with the correct version::
otherwise, replacing 1.7.0 with the correct version::

curl -L https://github.com/gwu-libraries/sfm-docker/1.6.0/master/example.prod.docker-compose.yml > docker-compose.yml
curl -L https://github.com/gwu-libraries/sfm-docker/1.7.0/master/example.prod.docker-compose.yml > docker-compose.yml

4. If you customized your previous ``docker-compose.yml`` file (e.g., for SFM ELK containers), make the same changes
in your new ``docker-compose.yml``.
Expand Down

0 comments on commit d97c448

Please sign in to comment.