-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docker things for documentation #2020
Conversation
docs.Dockerfile
Outdated
&& rm -rf /var/cache/apk/* | ||
|
||
RUN pip install mkdocs \ | ||
&& pip install mkdocs-bootswatch \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use pip install --user -r requirements.txt
like in the .travis.yml
and .semaphoreci/setup.sh
?
CONTRIBUTING.md
Outdated
$ make docs | ||
docker build -t traefik-docs -f docs.Dockerfile . | ||
# […] | ||
docker run --rm -v /mnt/Data/workspace/github/tcoupin/traefik:/mkdocs -p 8000:8000 traefik-docs mkdocs serve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/mnt/Data/workspace/github/tcoupin/traefik
-> /home/user/go/github/containous/treafik
@tcoupin any news? |
Sorry, new home, new job => no time :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
CONTRIBUTING.md
Outdated
$ make docs | ||
docker build -t traefik-docs -f docs.Dockerfile . | ||
# […] | ||
docker run --rm -v /home/user/go/github/containous/treafik:/mkdocs -p 8000:8000 traefik-docs mkdocs serve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
treafik => traefik
Too fast ctrl-c ctrl-v... Fix made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tcoupin Many thanks for this PR.
Just a suggestion about your Dockerfile.
docs.Dockerfile
Outdated
|
||
WORKDIR /mkdocs | ||
COPY requirements.txt /mkdocs | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't have to create mkdocs directory with the instruction RUN mkdir /mkdocs
, the instruction COPY requirements.txt /mkdocs/
creates the directory automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 📖 🐳 👍
Description
Add
docs
target to makefile to test documentation with docker.