Skip to content

Commit

Permalink
chore: Update docker stack for generating changelogs.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 5, 2021
1 parent 0968902 commit 3f866dc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .auto-changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": true,
"commitLimit": false,
"hideCredit": true,
"sortCommits": "date-desc",
"breakingPattern": "BREAKING CHANGE: yes"
}
6 changes: 5 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ version: "3"

services:
doc:
container_name: sphinx_documentation
build: docker/doc
volumes:
- ./docs:/etc/Sphinx/source
ports:
- 8100:80
auto_changelog:
build: docker/auto-changelog
working_dir: /src
volumes:
- .:/src
13 changes: 13 additions & 0 deletions docker/auto-changelog/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:15.4.0-alpine

ENV SRC_PATH /src

RUN apk add --no-cache git
RUN npm install -g auto-changelog@2.2.1
RUN mkdir -p $SRC_PATH

VOLUME [ "$SRC_PATH" ]
WORKDIR $SRC_PATH

CMD ["--help"]
ENTRYPOINT ["auto-changelog"]
2 changes: 1 addition & 1 deletion docker/doc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM alpine:latest
WORKDIR /etc/
RUN mkdir -p /etc/Sphinx/build

RUN apk add --no-cache python3 make git
RUN apk add --no-cache python3 py3-pip make git

RUN pip3 install git+https://github.com/sphinx-doc/sphinx
RUN pip3 install sphinx-autobuild
Expand Down

0 comments on commit 3f866dc

Please sign in to comment.