Liking cljdoc? Tell your friends :D

leiningen.docker


buildclj

(build project args)
source

build*clj

(build* repo version)
source

dockerclj

(docker project & args)

Run docker commands

Run docker commands
sourceraw docstring

env-varsclj

(env-vars project)
source

get-versionclj

(get-version project)
source

latest-versionclj

(latest-version repo)
source

leinclj

(lein project)
(lein project args)

Performs a docker run on image, mounting this project's source directory inside the container, and then runs leiningen inside the container with the supplied args. lein must already be installed on the container.

Optional Project config: In your project.clj or ~/.lein/profiles.clj, add the following to your :docker map

  • :sudo true if docker requires sudo to docker run
  • :ports {} a map, passed to -p for port mapping
  • :m2-dest "/home/username/.m2/", will -v mount ~/.m2/ to :m2-dest, dramatically speeds up lein deps
Performs a `docker run` on image, mounting this project's source directory inside the container, and then runs leiningen inside the container with the supplied args. lein must already be installed on the container.

Optional Project config: In your project.clj or ~/.lein/profiles.clj, add the following to your :docker map
- :sudo true if docker requires sudo to `docker run`
- :ports {} a map, passed to -p for port mapping
- :m2-dest "/home/username/.m2/", will -v mount ~/.m2/ to :m2-dest, dramatically speeds up lein deps

  
sourceraw docstring

(links project)
source

maybe-m2-mapclj

(maybe-m2-map project)
source

maybe-sudoclj

(maybe-sudo project)
source

parse-image-lineclj

(parse-image-line line)
source

port-mapclj

(port-map project)
source

project-repoclj

(project-repo project)
source

pushclj

(push project args)
source

push*clj

(push* repo version)
source

replace-snapshotclj

(replace-snapshot vs)

Replace a SNAPSHOT in version string with current date-time

Replace a SNAPSHOT in version string with current date-time
sourceraw docstring

shclj

(sh & args)
source

sh!clj

(sh! & args)

Same as sh, throw on error

Same as sh, throw on error
sourceraw docstring

sh-trampolineclj

(sh-trampoline sh)

Abuse trampoline functionality to run arbitrary shell, rather than project-specific code.

Abuse trampoline functionality to run arbitrary shell, rather than project-specific code.
sourceraw docstring

time-patternclj

source

time-stringclj

(time-string)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close