Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
c1c08b1ced | |||
8f3b79d7f0 | |||
ee0c6f7de0 | |||
d7c25b6ce5 | |||
9f430fa6d2 | |||
05a04ac832 | |||
2dfbc073ed | |||
e2c00c2afb | |||
|
b3b03a9744 | ||
|
d845e3443a | ||
|
ae5a27d100 | ||
|
200552d1b7 | ||
|
856b48d015 | ||
|
9fd88a7da3 | ||
|
2552847d7e | ||
|
b6028ffff8 | ||
|
f25802a6ce | ||
5c31191ff8 | |||
|
7dc20eea12 | ||
|
1d09c15108 |
@ -13,12 +13,10 @@ provisioner:
|
||||
|
||||
verifier:
|
||||
name: inspec
|
||||
root_path: '/opt/verifier' # Needed for the specs to be detected in Docker
|
||||
chef_license: accept
|
||||
|
||||
platforms:
|
||||
- name: ubuntu-16.04
|
||||
driver:
|
||||
image: dokken/ubuntu-16.04
|
||||
pid_one_command: /bin/systemd
|
||||
- name: ubuntu-18.04
|
||||
driver:
|
||||
image: dokken/ubuntu-18.04
|
||||
@ -33,8 +31,3 @@ suites:
|
||||
run_list:
|
||||
- recipe[ipfs::default]
|
||||
attributes:
|
||||
- name: cluster
|
||||
run_list:
|
||||
- recipe[ipfs::cluster]
|
||||
- recipe[ipfs::cluster_service]
|
||||
attributes:
|
||||
|
@ -6,17 +6,14 @@ provisioner:
|
||||
name: chef_zero
|
||||
|
||||
platforms:
|
||||
- name: ubuntu-16.04
|
||||
- name: ubuntu-18.04
|
||||
- name: debian-9
|
||||
|
||||
verifier:
|
||||
chef_license: accept
|
||||
|
||||
suites:
|
||||
- name: default
|
||||
run_list:
|
||||
- recipe[ipfs::default]
|
||||
attributes:
|
||||
- name: cluster
|
||||
run_list:
|
||||
- recipe[ipfs::cluster]
|
||||
- recipe[ipfs::cluster_service]
|
||||
attributes:
|
||||
|
@ -20,7 +20,6 @@ services: docker
|
||||
env:
|
||||
matrix:
|
||||
- INSTANCE=default-debian-9
|
||||
- INSTANCE=default-ubuntu-1604
|
||||
- INSTANCE=default-ubuntu-1804
|
||||
|
||||
before_script:
|
||||
@ -30,7 +29,7 @@ before_script:
|
||||
- cookstyle --version
|
||||
- foodcritic --version
|
||||
|
||||
script: CHEF_LICENSE=accept-no-persist KITCHEN_LOCAL_YAML=.kitchen.dokken.yml CHEF_VERSION=13.10.4 kitchen verify ${INSTANCE}
|
||||
script: CHEF_LICENSE=accept-no-persist KITCHEN_LOCAL_YAML=.kitchen.dokken.yml kitchen test ${INSTANCE}
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
@ -10,7 +10,7 @@ GRAPH
|
||||
build-essential (8.1.1)
|
||||
mingw (>= 1.1)
|
||||
seven_zip (>= 0.0.0)
|
||||
ipfs (0.4.0)
|
||||
ipfs (0.4.2)
|
||||
ark (>= 0.0.0)
|
||||
mingw (2.1.0)
|
||||
seven_zip (>= 0.0.0)
|
||||
|
@ -64,7 +64,7 @@ kitchen verify # Run the integration tests for Ubuntu 16.04, 18.06 and Debian 9
|
||||
|
||||
## License and Authors
|
||||
|
||||
Authors: Kosmos Developers mail@kosmos.org
|
||||
Authors: Kosmos Developers mail@kosmos.org
|
||||
Copyright: 2018-2019, [Kosmos Developers](https://kredits.kosmos.org/)
|
||||
|
||||
```
|
||||
|
@ -1,5 +1,5 @@
|
||||
node.default['ipfs']['version'] = '0.4.21'
|
||||
node.default['ipfs']['checksum'] = 'a7ec5ddc4d52f818cbf3853a80f7ec17f9fde9128f039485dbe1889cf673d562'
|
||||
node.default['ipfs']['version'] = '0.12.2'
|
||||
node.default['ipfs']['checksum'] = 'd1b376fe1fb081631af773ea05632090dd79ae5a0057f8b8a0202c28b64a966d14bbfde768ce5a993745761ce56ceed6323a6bd1714f9ae71fa4d68fcbeb1dbb'
|
||||
|
||||
node.default['ipfs']['ulimit'] = 64000
|
||||
node.default['ipfs']['memory_max'] = '512M'
|
||||
|
@ -2,9 +2,9 @@ name 'ipfs'
|
||||
maintainer 'Kosmos Developers'
|
||||
maintainer_email 'mail@kosmos.org'
|
||||
license 'MIT'
|
||||
description 'Installs/Configures ipfs'
|
||||
description 'Installs/Configures go-ipfs'
|
||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||
version '0.4.0'
|
||||
version '0.8.0'
|
||||
|
||||
supports %w(ubuntu debian)
|
||||
|
||||
|
@ -2,27 +2,6 @@
|
||||
# Cookbook Name:: ipfs
|
||||
# Recipe:: _user
|
||||
#
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright:: 2018, Kosmos Developers
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
|
||||
group 'ipfs' do
|
||||
gid 4737
|
||||
|
@ -2,27 +2,6 @@
|
||||
# Cookbook Name:: ipfs
|
||||
# Recipe:: default
|
||||
#
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright:: 2018, Kosmos Developers
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
|
||||
include_recipe 'ipfs::_user'
|
||||
|
||||
@ -32,6 +11,7 @@ ark 'ipfs' do
|
||||
url "https://dist.ipfs.io/go-ipfs/v#{version}/go-ipfs_v#{version}_linux-amd64.tar.gz"
|
||||
checksum node['ipfs']['checksum']
|
||||
has_binaries ['ipfs']
|
||||
notifies :restart, 'service[ipfs]', :delayed
|
||||
end
|
||||
|
||||
execute 'ipfs init --empty-repo' do
|
||||
|
@ -45,10 +45,7 @@ describe 'IPFS' do
|
||||
|
||||
{
|
||||
'Swarm.AddrFilters' => addr_filters.rstrip,
|
||||
'Swarm.DisableBandwidthMetrics' => true,
|
||||
'Swarm.DisableRelay' => true,
|
||||
'Swarm.ConnMgr.HighWater' => 10,
|
||||
'Swarm.ConnMgr.LowWater' => 1,
|
||||
'Gateway.Writable' => true,
|
||||
}.each do |k, v|
|
||||
describe command("IPFS_PATH=/home/ipfs/.ipfs ipfs config '#{k}'") do
|
||||
let(:sudo_options) { '-u ipfs -i' }
|
||||
|
Loading…
x
Reference in New Issue
Block a user