Skip to content

Commit

Permalink
fix 5
Browse files Browse the repository at this point in the history
  • Loading branch information
constantineav committed Mar 12, 2024
1 parent 0dd2eed commit e41e102
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/clj/swarmpit/docker/engine/mapper/compose.clj
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
{:interval (str (:interval healthcheck) "s")}
{:timeout (str (:timeout healthcheck) "s")})))
:tty (-> service :tty)
:cap_add (-> service :cap_add (name-value->sorted-map))
:cap_drop (-> service :cap_drop (name-value->sorted-map))
:cap_add (->> service :cap_add)
:cap_drop (->> service :cap_drop)
:environment (-> service :variables (name-value->sorted-map))
:ports (->> service :ports
(map #(str (:hostPort %) ":" (:containerPort %) (when (= "udp" (:protocol %)) "/udp"))))
Expand Down
8 changes: 4 additions & 4 deletions src/cljc/swarmpit/routes_spec.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@
:user string?
:dir string?
:tty boolean?
:cap_add string?
:cap_drop string?
:cap_add [string?]
:cap_drop [string?]
:healthcheck {:test [string?]
:interval number?
:timeout number?
Expand Down Expand Up @@ -282,8 +282,8 @@
(ds/opt :user) string?
(ds/opt :dir) string?
(ds/opt :tty) boolean
(ds/opt :cap_add) string?
(ds/opt :cap_drop) string?
(ds/opt :cap_add) [string?]
(ds/opt :cap_drop) [string?]
(ds/opt :healthcheck) {:test [string?]
:interval number?
:timeout number?
Expand Down

0 comments on commit e41e102

Please sign in to comment.