Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Makefile: Add and install default lego.conf
Browse files Browse the repository at this point in the history
Add a default lego.conf and have it install to /etc.
This file contains good documentation on what each variable configures.
  • Loading branch information
scallopedllama committed Oct 18, 2016
1 parent 4f02045 commit 33f9782
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Install lego to /usr/bin
install:
install -m 755 lego /usr/bin
install -m 644 lego.conf /etc/

26 changes: 26 additions & 0 deletions lego.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Lego Configuration File

# Command that should be run inside of containers when using `lego run`
LEGO_RUN_CMD="/bin/bash"

# List of Docker volume definitions that should be mapped through to all containers started with lego
# For example, to map /var/lib/foo from host into the container and the bar volume to /var/lib/bar
# inside a container, it would look like:
# LEGO_VOLUMES="/var/lib/foo:/var/lib/foo bar:/var/lib/bar"
LEGO_VOLUMES=""

# List of Docker containers to ignore when using `lego list`
# This should be a list of containers that you wouldn't typically want to run a shell inside of,
# often providing a service to the rest of the sytem.
# The keyworks in this list are not full container names. All containers containing any of these
# words will be ignored. For example, `gitlab` in this list will cause the container `gitlab-runner`
# to be ignored.
LEGO_CONTAINER_NAME_IGNORE="registry jenkins gitlab"

# List of Docker images to ignore when using `lego list`
# This should be a list of images that were pulled to provide a service, not a development environment.
# Again, this list is like `LEGO_CONTAINER_NAME_IGNORE` in that it is not a list of full image names.
LEGO_IMAGE_NAME_IGNORE="jenkins registry gitlab"

0 comments on commit 33f9782

Please sign in to comment.