Skip to content

Commit

Permalink
cap 3
Browse files Browse the repository at this point in the history
  • Loading branch information
constantineav committed Mar 8, 2024
1 parent a4a5d08 commit 36f7b08
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/clj/swarmpit/docker/engine/mapper/outbound.clj
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@
:Configs (:configs service)
:Args (:command service)
:TTY (:tty service)
:Cap_add (:cap_add service)
:Cap_drop (:cap_drop service)
:Healthcheck (->service-healthcheck (:healthcheck service))
:Env (->service-variables service)
:Hosts (->service-hosts service)}
Expand Down
8 changes: 6 additions & 2 deletions src/cljc/swarmpit/routes_spec.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@
:user string?
:dir string?
:tty boolean?
:cap_add [name-value]
:cap_drop [name-value]
:healthcheck {:test [string?]
:interval number?
:timeout number?
Expand Down Expand Up @@ -279,7 +281,9 @@
(ds/opt :links) [name-value]
(ds/opt :user) string?
(ds/opt :dir) string?
(ds/opt :tty) boolean?
(ds/opt :tty) boolean
:cap_add [name-value]
:cap_drop [name-value]
(ds/opt :healthcheck) {:test [string?]
:interval number?
:timeout number?
Expand Down Expand Up @@ -413,4 +417,4 @@
:spec {:compose string?}
:type string?
:_id string?
:_rev string?})
:_rev string?})
4 changes: 3 additions & 1 deletion src/cljs/swarmpit/component/service/edit.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
:agent
:command
:tty
:cap_add
:cap_drop
:user
:dir
:healthcheck
Expand Down Expand Up @@ -345,4 +347,4 @@
service (state/react state/form-value-cursor)]
(progress/form
(:loading? state)
(form-edit id service state))))
(form-edit id service state))))

0 comments on commit 36f7b08

Please sign in to comment.