mirror of
https://github.com/ldericher/autodoc.git
synced 2025-12-06 15:43:01 +00:00
remove root compose file for a Makefile; move Dockerfile; adjust drone file
This commit is contained in:
parent
b2d93d7283
commit
9103180c36
4 changed files with 27 additions and 20 deletions
|
|
@ -7,8 +7,6 @@ steps:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: ldericher/autodoc
|
repo: ldericher/autodoc
|
||||||
context: src
|
|
||||||
dockerfile: src/Dockerfile
|
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ RUN set -ex; \
|
||||||
make \
|
make \
|
||||||
;
|
;
|
||||||
|
|
||||||
COPY usr /usr
|
COPY src/usr /usr
|
||||||
|
|
||||||
CMD ["autodoc", "-bw"]
|
ENTRYPOINT ["autodoc"]
|
||||||
|
CMD ["-bw"]
|
||||||
24
Makefile
Normal file
24
Makefile
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
image_tag = ldericher/autodoc
|
||||||
|
docker_build = docker build
|
||||||
|
docker_run = docker run --rm -it
|
||||||
|
examples_flags = -v "$(shell pwd)/examples:/data" -u "$(shell id -u):$(shell id -g)"
|
||||||
|
|
||||||
|
.PHONY: default
|
||||||
|
default:
|
||||||
|
$(info use other targets: image build watch clean)
|
||||||
|
|
||||||
|
.PHONY: image
|
||||||
|
image:
|
||||||
|
$(docker_build) --tag $(image_tag) ./
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build: image
|
||||||
|
$(docker_run) $(examples_flags) $(image_tag) -b
|
||||||
|
|
||||||
|
.PHONY: watch
|
||||||
|
watch: image
|
||||||
|
$(docker_run) $(examples_flags) $(image_tag)
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
git clean -xdf ./examples
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
version: "2"
|
|
||||||
|
|
||||||
services:
|
|
||||||
autodoc:
|
|
||||||
restart: "no"
|
|
||||||
|
|
||||||
image: ldericher/autodoc
|
|
||||||
build:
|
|
||||||
context: ./src
|
|
||||||
|
|
||||||
command: "bash"
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- "${PWD}/src/usr/local/bin/autodoc:/usr/local/bin/autodoc:ro"
|
|
||||||
- "${PWD}/src/usr/local/lib/autodoc:/usr/local/lib/autodoc:ro"
|
|
||||||
- "${PWD}/examples:/docs"
|
|
||||||
Loading…
Reference in a new issue