Command-line Interface Reference

This page documents all available commands for lcp-compose. To get help from the command line simply call lcp-compose --help combined with the command you would like to get more information on.

Core Args

The following options are available with every command:

Commands

attach

Attach to the container that's running the specified service.

lcp-compose attach orders

build

Rebuild the docker image for the specified service. The service must be configured to be built from a Dockerfile for this command to make any effect.

lcp-compose build orders

Options

clean

Clean up the current working directory. This will delete the generated docker-compose file and configurations folder. The command will not remove the log directory any other files that may have been placed out of band in the working directory.

lcp-compose clean

Options

config

Pull configuration template files or folders from the each service's image and templatize with the current lcp-compose config. This task will shutdown the lcp-compose stack if it was running.

lcp-compose config

down

Stop and remove all managed services' containers.

lcp-compose down

Options

exec

Execute a command in a running container of the specified service. Seperate the command string by --

lcp-compose exec orders -- fab reset_db

graph

Generate service graph (in dot format) based on the current service configuration.

lcp-compose graph

Options:

init

Initializes the lcp-compose working directory and the main configuration file, if it does not exist.

lcp-compose init

Options

inspect

This will run docker inspect command on the container ID of the specified service and print the JSON output.

lcp-compose inspect orders

logs

Tail the logs of running lcp-compose services.

lcp-compose logs

Options

manage

Make lcp-compose manage a service. If invoked without arguments, the service will be reset to it's default docker image configuration.

lcp-compose manage security  # docker image set to default

Only one of the configuration arguments --build-path or --image-id must be supplied.

lcp-compose manage security --build-path=../security/
lcp-compose manage security --image-id=dev-docker.points.com/security:43

Options

ps

See the status of the running managed lcp-compose services.

lcp-compose ps

reload

Shutdown and reload the lcp-compose managed services from the configuration.

lcp-compose reload

restart

Restart the specified service container.

lcp-compose restart orders

sanity_test

Run sanity tests on the lcp-compose stack. By default, all tests in the lcp_compose.tests.sanity package are run.

lcp-compose sanity_test

Options

Search for images to be used by lcp-compose.

lcp-compose search dev-docker.points.com/buy  # search the tagged images for buy service in the dev registry

lcp-compose search rc-docker.points.com  # search the catalog of the rc registry

lcp-compose search registry.points.com/dev/cirrus_probe --username=first.last --password API_TOKEN  # gitlab

lcp-compose search registry.points.com/dev/cirrus_probe  # You will be prompted for username/password

Options:

services

Describe the current lcp-compose service configuration. The columns of the output are defined as follows.

Options

shell

Open a shell on the container of the specified service.

lcp-compose shell orders

Options:

unmanage

Make lcp-compose not manage a service. This command performs a soft disable. The URL and docker image config for the entry will be blanked and lcp-compose will simply not start any containers for this service.

lcp-compose unmanage

By providing extra arguments, the URL can be updated while keeping the service disabled. Any templates that require this service's URL will receive the configured URL instead of an empty string.

lcp-compose unmanage security --url=http://192.168.0.1:1401/
lcp-compose unmanage orders --url=http://orders-ft.lxc.points.com:1200/

Options

up

Refresh the configuration and start lcp-compose managed services.

lcp-compose up

Options

assets.render_template

Render a jinja2 template file using the current lcp-compose configuration.

lcp-compose assets.render_template --template=template.txt.j2 --destination=rendered.txt

Options

bootstrap.create_accounts

None

bootstrap.create_permission_set

None

bootstrap.generate_test_config

Generate the configuration file used by integration tests

Options

bootstrap.initialize_liblcp_context

None


NOTE: This documentation is auto-generated. See here for more information.