Skip to content

Commit

Permalink
Cleanup macOS prerequisites and instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
  • Loading branch information
sykesm authored and Brett Logan committed May 13, 2020
1 parent 027cab2 commit f7dc712
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions docs/source/dev-setup/devenv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,38 @@ Setting up the development environment
Prerequisites
~~~~~~~~~~~~~

- Git client
- `Git client <https://git-scm.com/downloads>`__
- `Go <https://golang.org/dl/>`__ version 1.14.x
- `Docker <https://docs.docker.com/get-docker/>`__ version 18.03 or later
- (macOS)
`Xcode <https://itunes.apple.com/us/app/xcode/id497799835?mt=12>`__
must be installed
- (macOS) GNU tar. You can use `Homebrew <https://brew.sh/>`__ to install
it as follows:
- (macOS) `Xcode Command Line Tools <https://developer.apple.com/downloads/>`__
- `SoftHSM <https://github.com/opendnssec/SoftHSMv2>`__
- `jq <https://stedolan.github.io/jq/download/>`__

::

brew install gnu-tar

- (macOS) If you've installed GNU tar, you should prepend the "gnubin"
directory to your $PATH with something like:
Steps
~~~~~

::
Install the Prerequisites
^^^^^^^^^^^^^^^^^^^^^^^^^

export PATH=/usr/local/opt/gnu-tar/libexec/gnubin:$PATH
For development on macOS, we recommend using `Homebrew <https://brew.sh>`__ to
install the development prereqs. The Xcode command line tools will be installed as
part of the Homebrew installation.

- `SoftHSM <https://github.com/opendnssec/SoftHSMv2>`__. You can use
Homebrew or apt to install it as follows:
Once Homebrew is ready, installing the necessary prerequisites is very easy:

::

brew install softhsm # macOS
sudo apt-get install libsofthsm2 # Ubuntu
brew install git go jq softhsm
brew cask install --appdir="/Applications" docker

- `jq <https://stedolan.github.io/jq/download/>`__. You can use
Homebrew to install it as follows:
Docker Desktop must be launched after to complete it setup so be sure to open
the application after installing it:

::

brew install jq
open /Applications/Docker.app

Steps
~~~~~

Clone the Hyperledger Fabric source
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -70,6 +65,7 @@ the repository.

git config --global core.autocrlf false


Configure SoftHSM
^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit f7dc712

Please sign in to comment.