Skip to content

Commit

Permalink
fix: changing docker-compose to docker compose in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatgupta24 committed Sep 18, 2022
1 parent f584997 commit a54ce36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@ generate: ## Let's hugo generate the site into the configured directory

.PHONY: compose-up
compose-up: ## Runs Hugo in container in background via Docker Compose
docker-compose up -d server
docker compose up -d server

.PHONY: compose-down
compose-down: ## Stops Hugo container
docker-compose down
docker compose down

.PHONY: compose-restart
compose-restart: ## Restarts Hugo container
docker-compose restart server
docker compose restart server

.PHONY: compose-stop
compose-stop: ## Stops Hugo container
docker-compose stop server
docker compose stop server

.PHONY: compose-logs
compose-logs: ## Display logs from Hugo container
docker-compose logs -f server
docker compose logs -f server

.PHONY: spellcheck
spellcheck: ## Runs spell checker using Docker Compose in foreground
docker-compose up spellchecker
docker compose up spellchecker

.PHONY: linkcheck
linkcheck: generate ## Runs spell checker using Docker Compose in foreground
docker-compose run linkchecker
docker compose run linkchecker

.PHONY: clean
clean: ## Deletes temporary/generated files
Expand Down
2 changes: 1 addition & 1 deletion content/en/community/documentation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Use this:

The first thing you'll need to make use of this approach is Docker installed on your local environment.
How to install a Docker engine depends on your platform etc., so best to head over to [Docker](https://docs.docker.com/install/) to find the right one.
Next, install docker-compose from the [installation documents](https://docs.docker.com/compose/install/).
Next, you have install docker compose v2 from the [installation guide](https://docs.docker.com/compose/install/).

To make it as simple as possible, we use the [docker image](https://hub.docker.com/r/klakegg/hugo) recommended in the hugo [documentation](https://gohugo.io/getting-started/installing/#docker), and have setup a [`docker-compose.yml`](https://github.com/jenkins-x/jx-docs/blob/main/docker-compose.yml) file that will help you start up a preview server with a few helpful options.

Expand Down

0 comments on commit a54ce36

Please sign in to comment.