Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.41 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.41 KB

ansible-ipfs

pipeline status Ansible collection for IPFS.

Testing

This collection uses molecule for testing.

Install testing dependencies

  1. Install Docker
  2. Install packages for dependencies: a) Ubuntu: sudo apt-get install python3-pip libssl-dev b) CentOS: sudo dnf install -y gcc python3-pip python3-devel openssl-devel python3-libselinux
  3. Install pipenv: pip install pipenv (or manually install dependencies with pip install molecule[ansible,lint,docker])
  4. Install Python dependencies: pipenv install

Running tests

  1. Start Docker
  2. Activate pipenv: pipenv shell
  3. Run tests: molecule test

Optionally, run a local gateway to speed up IPFS downloads by setting IPFS_GATEWAY. This prevents IPFS from being downloaded again and again.

For example: IPFS_GATEWAY=http://192.168.1.23:8080 molecule test

License

ansible-ipfs is dual-licensed under Apache 2.0 and MIT terms: