Skip to content
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

Fix docker commands #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
# We may as well use the same image we use for actually deploying our sites.
FROM circleci/python:3.9

# switch from circleci user to root
USER root

# Dependencies
RUN pip install mkdocs pymdown-extensions pygments

# Install the PagerDuty theme.
WORKDIR /tmp
RUN git clone https://github.com/pagerduty/mkdocs-theme-pagerduty \
cd mkdocs-theme-pagerduty && python3 setup.py install
RUN git clone https://github.com/pagerduty/mkdocs-theme-pagerduty
WORKDIR /tmp/mkdocs-theme-pagerduty
RUN python3 setup.py install

# Set our working directory and user
WORKDIR /docs
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ For local development on your native device,
### Docker
For local development using Docker,

1. Build the docker image and load it for immediate use. `docker build --load -t mkdocs .`
1. Build the docker image and load it for immediate use. `docker build -t mkdocs .`
1. Run the container and pass through your current working directory. `docker run -v $(pwd):/docs -p 127.0.0.1:8000:8000 mkdocs`
1. You can now view the website in your browser at `http://127.0.0.1:8000`. The site will automatically update as you edit the code.

Expand Down