Skip to content

Commit

Permalink
Add support for running containerized guides site locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene2mt committed Jan 30, 2024
1 parent 4d78de6 commit fcc19e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
9 changes: 9 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version : '3'
services:
hugo:
image: klakegg/hugo:0.107.0-ext-alpine
command: server -s /fedramp-automation/docs --enableGitInfo=false --minify
volumes:
- ".:/fedramp-automation"
ports:
- "1313:1313"
11 changes: 4 additions & 7 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The website is built using the [Hugo](https://gohugo.io/) static site generator

If using Docker:

- [Docker 20.10+](https://docs.docker.com/install/)
- [Docker 23.0+](https://docs.docker.com/get-docker/)

If not using Docker:

Expand Down Expand Up @@ -70,17 +70,14 @@ Whenever you make any changes to the content with the Hugo server running, you'l

## Developing with Docker

Coming soon: The site will be available as a Docker container.

<!--
The website can also be developed and built using the included Docker resources.

Assuming you've [installed Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/) for your system, you can build and serve the site using Docker Compose as follows:
Assuming you've [installed Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) for your system, you can build and serve the site using Docker Compose as follows:

```
docker-compose build
docker-compose up
```

Once the site is running, it can be accessed at http://localhost:1313/fedramp-automation.
-->
Once the site is running, it can be accessed at [http://localhost:1313/](http://localhost:1313/).

0 comments on commit fcc19e0

Please sign in to comment.