ufo task




Run a one-time task.


You can use the --command or -c option to override the Docker container command.

ufo task hi-migrate # default command
ufo task hi-web --command bin/migrate
ufo task hi-web --command bin/with_env bundle exec rake db:migrate:redo VERSION=xxx
ufo task hi-web -c uptime
ufo task hi-web -c pwd

Skipping Docker

The --no-docker option is useful. By default, the ufo task command will build the docker image. The docker build process usually is the part that takes the most time. You can skip the docker build process after building it at least once. This is a faster way to run a bunch of commands with thesame Docker image. Example:

ufo task hi-web -c uptime # build at least once
ufo task hi-web --no-docker -c ls # skip docker for speed
ufo task hi-web --no-docker -c pwd # skip docker for speed


    [--docker], [--no-docker]    # Enable docker build and push
                                 # Default: true
c, [--command=one two three]     # Override the command used for the container
    [--verbose], [--no-verbose]  
    [--mute], [--no-mute]        
    [--noop], [--no-noop]        
    [--cluster=CLUSTER]          # Cluster.  Overrides ufo/settings.yml.

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!