Skip to content

Commit 5316bac

Browse files
committed
docs: added Taskfile
1 parent 0dcd0d0 commit 5316bac

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
!doc/**
1515
!docs/
1616
!docs/**
17+
## Don't ignore the Task file
18+
!Taskfile.yml
1719
## Don't ignore the conf directory
1820
!conf/
1921
## Ignore all except the local files and tpl directory

Taskfile.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: '3'
2+
3+
tasks:
4+
# Create and run the container
5+
run:
6+
cmds:
7+
- |
8+
docker run \
9+
--name site-com-combostrap \
10+
-d \
11+
-p 8082:80 \
12+
--user 1000:1000 \
13+
-e DOKU_DOCKER_ENV=dev \
14+
-e DOKU_DOCKER_ACL_POLICY='public' \
15+
-e DOKU_DOCKER_ADMIN_NAME='admin' \
16+
-e DOKU_DOCKER_ADMIN_PASSWORD='welcome' \
17+
-v $PWD:/var/www/html \
18+
ghcr.io/combostrap/dokuwiki:php8.3-latest
19+
# Stop the container
20+
stop:
21+
cmds:
22+
- |
23+
docker stop site-com-combostrap
24+
# Rm the container
25+
rm:
26+
cmds:
27+
- |
28+
docker rm site-com-combostrap
29+
# Start the container
30+
start:
31+
cmds:
32+
- |
33+
docker rm site-com-combostrap
34+
# Broken links
35+
broken:
36+
cmds:
37+
- |
38+
docker exec -it site-com-combostrap php ./bin/wantedpages.php

docs/dev.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@
44
## On Windows WSL, Linux or macOS
55

66
On your desktop:
7+
* Clone and go to the root
78
```bash
89
git clone https://github.com/ComboStrap/site-com-combostrap
910
cd site-com-combostrap
11+
```
12+
* Create and start the container
13+
```bash
14+
task run
15+
# or
1016
docker run \
1117
--name site-com-combostrap \
12-
--rm \
1318
-d \
14-
-p 8081:80 \
19+
-p 8082:80 \
1520
--user 1000:1000 \
1621
-e DOKU_DOCKER_ENV=dev \
1722
-e DOKU_DOCKER_ACL_POLICY='public' \
@@ -20,7 +25,7 @@ docker run \
2025
-v $PWD:/var/www/html \
2126
ghcr.io/combostrap/dokuwiki:php8.3-latest
2227
```
23-
The ComboStrap site should be available at: http://localhost:8081
28+
The ComboStrap site should be available at: http://localhost:8082
2429

2530

2631
## Wanted Page Check

0 commit comments

Comments
 (0)