mirror of
https://github.com/thegeeklab/docker-tidy.git
synced 2024-11-28 23:20:36 +00:00
Merge pull request #9 from dnephin/add_container
Add install instructions to the README
This commit is contained in:
commit
a2cf0f9118
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.git
|
||||||
|
.tox
|
||||||
|
tox.ini
|
||||||
|
dist
|
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
FROM alpine:3.2
|
||||||
|
MAINTAINER Daniel Nephin <dnephin@gmail.com>
|
||||||
|
|
||||||
|
RUN apk add -U python py-pip
|
||||||
|
ADD requirements.txt /code/requirements.txt
|
||||||
|
RUN pip install -r /code/requirements.txt
|
||||||
|
ADD docker_custodian/ /code/docker_custodian/
|
||||||
|
ADD setup.py /code/
|
||||||
|
RUN pip install --no-deps -e /code
|
8
Makefile
8
Makefile
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
PACKAGE_VERSION = $(shell python setup.py --version)
|
PACKAGE_VERSION = $(shell python setup.py --version)
|
||||||
|
|
||||||
|
DOCKER_REPO ?= ${USER}
|
||||||
|
BUILD_TAG ?= ${PACKAGE_VERSION}
|
||||||
|
|
||||||
all: test
|
all: test
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -16,3 +19,8 @@ test:
|
|||||||
tox
|
tox
|
||||||
|
|
||||||
tests: test
|
tests: test
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build:
|
||||||
|
docker build -t ${DOCKER_REPO}/docker-custodian:${BUILD_TAG} .
|
||||||
|
37
README.rst
37
README.rst
@ -10,6 +10,43 @@ Keep docker hosts tidy.
|
|||||||
.. contents::
|
.. contents::
|
||||||
:backlinks: none
|
:backlinks: none
|
||||||
|
|
||||||
|
Install
|
||||||
|
-------
|
||||||
|
|
||||||
|
There are three installation options
|
||||||
|
|
||||||
|
Container
|
||||||
|
~~~~~~~~~
|
||||||
|
|
||||||
|
.. code::
|
||||||
|
|
||||||
|
docker pull dnephin/docker-custodian
|
||||||
|
docker run -ti \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
dnephin/docker-custodian dcgc --help
|
||||||
|
|
||||||
|
Debian/Ubuntu package
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
First build the package (requires `dh-virtualenv`)
|
||||||
|
|
||||||
|
.. code:: sh
|
||||||
|
|
||||||
|
dpkg-buildpackage -us -uc
|
||||||
|
|
||||||
|
Then install it
|
||||||
|
|
||||||
|
.. code:: sh
|
||||||
|
|
||||||
|
dpkg -i ../docker-custodian_*.deb
|
||||||
|
|
||||||
|
|
||||||
|
Source
|
||||||
|
~~~~~~
|
||||||
|
|
||||||
|
.. code:: sh
|
||||||
|
|
||||||
|
pip install git+https://github.com/Yelp/docker-custodian.git
|
||||||
|
|
||||||
|
|
||||||
dcgc
|
dcgc
|
||||||
|
Loading…
Reference in New Issue
Block a user