# Deploy with Capistrano
# gem 'capistrano'
-# To use debugger
-#gem 'byebug'
-
gem 'passenger', :group => :production
gem 'andand'
gem 'RedCloth'
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
- addressable (2.6.0)
- public_suffix (>= 2.0.2, < 4.0)
+ addressable (2.7.0)
+ public_suffix (>= 2.0.2, < 5.0)
andand (1.3.3)
angularjs-rails (1.3.15)
arel (7.1.4)
- arvados (1.3.1.20190320201707)
+ arvados (1.3.3.20190320201707)
activesupport (>= 3)
andand (~> 1.3, >= 1.3.3)
arvados-google-api-client (>= 0.7, < 0.8.9)
flamegraph (0.9.5)
globalid (0.4.2)
activesupport (>= 4.2.0)
- googleauth (0.8.1)
+ googleauth (0.9.0)
faraday (~> 0.12)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
actionpack (>= 4)
less (~> 2.6.0)
sprockets (>= 2)
- libv8 (3.16.14.19)
+ libv8 (3.16.14.19-x86_64-linux)
lograge (0.10.0)
actionpack (>= 4)
activesupport (>= 4)
morrisjs-rails (0.5.1.2)
railties (> 3.1, < 6)
multi_json (1.13.1)
- multipart-post (2.0.0)
+ multipart-post (2.1.1)
net-scp (2.0.0)
net-ssh (>= 2.6.5, < 6.0.0)
net-sftp (2.1.2)
mini_portile2 (~> 2.4.0)
npm-rails (0.2.1)
rails (>= 3.2)
- oj (3.7.11)
- os (1.0.0)
+ oj (3.7.12)
+ os (1.0.1)
passenger (6.0.2)
rack
rake (>= 0.8.1)
cliver (~> 0.3.1)
multi_json (~> 1.0)
websocket-driver (>= 0.2.0)
- public_suffix (3.0.3)
+ public_suffix (4.0.1)
rack (2.0.7)
rack-mini-profiler (1.0.2)
rack (>= 1.2.0)
h3. delete
-Delete an existing Container.
+Delete a Container.
+
+This API requires admin privileges. In normal operation, it should not be used at all. API clients like Workbench might not work correctly when a container request references a container that has been deleted.
Arguments:
hints:
- class: arv:RunInSingleContainer
- class: ResourceRequirement
- ramMin: $(inputs.count*32)
+ ramMin: $(96+inputs.count*32)
- class: arv:APIRequirement
scatter: count
run:
type: int
script: File
outputs: []
- arguments: [python, $(inputs.script), $(inputs.count * 32)]
+ arguments: [python, $(inputs.script), $(96+inputs.count * 32)]
outputs: []
hints:
- class: ResourceRequirement
- ramMin: $(inputs.count*32)
+ ramMin: $(96+inputs.count*32)
steps:
sleep1:
in:
type: int
script: File
outputs: []
- arguments: [python, $(inputs.script), $(inputs.count * 32)]
+ arguments: [python, $(inputs.script), $(96+inputs.count * 32)]
id: subtool
hints:
- class: ResourceRequirement
- ramMin: $(inputs.count*32)
+ ramMin: $(96+inputs.count*32)
inputs:
count:
type: int
script: File
outputs: []
- arguments: [python, $(inputs.script), $(inputs.count * 32)]
+ arguments: [python, $(inputs.script), $(96+inputs.count * 32)]
id: subtool
hints:
- class: ResourceRequirement
- ramMin: 32
+ ramMin: 128
inputs:
count:
type: int
script: File
outputs: []
- arguments: [python, $(inputs.script), "32"]
+ arguments: [python, $(inputs.script), "128"]
current_user.andand.is_admin
end
+ def permission_to_destroy
+ current_user.andand.is_admin
+ end
+
def ensure_owner_uuid_is_permitted
# validate_change ensures owner_uuid can't be changed at all --
# except during create, which requires admin privileges. Checking
end
end
+ test "user cannot delete" do
+ set_user_from_auth :active
+ c, _ = minimal_new
+ assert_raises ArvadosModel::PermissionDeniedError do
+ c.destroy
+ end
+ assert Container.find_by_uuid(c.uuid)
+ end
+
[
{state: Container::Complete, exit_code: 0, output: '1f4b0bc7583c2a7f9102c395f4ffc5e3+45'},
{state: Container::Cancelled},
PATH
remote: .
specs:
- arvados-login-sync (1.4.0.20190729193732)
+ arvados-login-sync (1.4.1.20190930204434)
arvados (~> 1.3.0, >= 1.3.0)
+ faraday (< 0.16)
GEM
remote: https://rubygems.org/
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
- addressable (2.6.0)
- public_suffix (>= 2.0.2, < 4.0)
+ addressable (2.7.0)
+ public_suffix (>= 2.0.2, < 5.0)
andand (1.3.3)
arvados (1.3.3.20190320201707)
activesupport (>= 3)
extlib (0.9.16)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
- googleauth (0.8.1)
+ googleauth (0.9.0)
faraday (~> 0.12)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (1.13.1)
multipart-post (2.1.1)
os (1.0.1)
- public_suffix (3.1.1)
+ public_suffix (4.0.1)
rake (12.3.2)
retriable (1.4.1)
signet (0.11.0)
cd /usr/src/composer
-npm -d install --prefix /usr/local --global yarn
+npm -d install --prefix /usr/local --global yarn@1.17.3
yarn install
cd /usr/src/workbench2
-npm -d install --prefix /usr/local --global yarn
+npm -d install --prefix /usr/local --global yarn@1.17.3
yarn install