Skip to content

Commit 22d67a5

Browse files
authored
Merge pull request #372 from flipt-io/claude/issue-371-20251003-1208
2 parents 7a44118 + bba018b commit 22d67a5

File tree

10 files changed

+35
-17
lines changed

10 files changed

+35
-17
lines changed

docs/.vale/styles/Microsoft/HeadingAcronyms.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ link: https://docs.microsoft.com/en-us/style-guide/acronyms#be-careful-with-acro
44
level: warning
55
scope: heading
66
tokens:
7-
- '[A-Z]{2,4}'
7+
- "[A-Z]{2,4}"

docs/.vale/styles/Microsoft/Headings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ level: suggestion
55
scope: heading
66
match: $sentence
77
indicators:
8-
- ':'
8+
- ":"
99
exceptions:
1010
- Azure
1111
- CLI

docs/.vale/styles/Microsoft/Quotes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
extends: existence
2-
message: 'Punctuation should be inside the quotes.'
2+
message: "Punctuation should be inside the quotes."
33
link: https://docs.microsoft.com/en-us/style-guide/punctuation/quotation-marks
44
level: error
55
nonword: true

docs/.vale/styles/Microsoft/Semicolon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nonword: true
55
scope: sentence
66
level: suggestion
77
tokens:
8-
- ';'
8+
- ";"

docs/.vale/styles/Microsoft/SentenceLength.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ scope: sentence
44
level: suggestion
55
max: 30
66
token: \b(\w+)\b
7-

docs/.vale/styles/Microsoft/Spacing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ link: https://docs.microsoft.com/en-us/style-guide/punctuation/periods
44
level: error
55
nonword: true
66
tokens:
7-
- '[a-z][.?!] {2,}[A-Z]'
8-
- '[a-z][.?!][A-Z]'
7+
- "[a-z][.?!] {2,}[A-Z]"
8+
- "[a-z][.?!][A-Z]"

docs/.vale/styles/Microsoft/Units.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ level: error
55
raw:
66
- '[a-zA-Z]+\s'
77
tokens:
8-
- '(?:centi|milli)?meters'
9-
- '(?:kilo)?grams'
10-
- '(?:kilo)?meters'
11-
- '(?:mega)?pixels'
8+
- "(?:centi|milli)?meters"
9+
- "(?:kilo)?grams"
10+
- "(?:kilo)?meters"
11+
- "(?:mega)?pixels"
1212
- cm
1313
- inches
1414
- lb

docs/.vale/styles/Microsoft/Vocab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extends: existence
22
message: "Verify your use of '%s' with the A-Z word list."
3-
link: 'https://docs.microsoft.com/en-us/style-guide'
3+
link: "https://docs.microsoft.com/en-us/style-guide"
44
level: suggestion
55
ignorecase: true
66
tokens:

docs/v2/guides/operations/authentication/login-with-github.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,13 @@ The last bit of configuration is the session details. In order for the browser t
7878
```bash
7979
docker run -it --rm \
8080
-p 8080:8080 \
81-
-v "$(pwd)/config.yml:/config.yml" \
82-
flipt/flipt:v2 ./flipt server --config /config.yml
81+
-p 9000:9000 \
82+
-v $HOME/flipt:/var/opt/flipt \
83+
-v "$(pwd)/config.yml:/etc/flipt/config/default.yml" \
84+
docker.flipt.io/flipt/flipt:v2
8385
```
8486

85-
This will mount the `config.yml` as a volume in the container, and Flipt will use that configuration as it's provided as a command line flag option.
87+
This will mount both the data directory for persistent storage and the `config.yml` configuration file into the container at the standard location.
8688

8789
### 3. Navigate to the Flipt UI
8890

docs/v2/installation.mdx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,34 @@ application.
103103

104104
### Configuration
105105

106-
A default configuration file is included within the image. To supply a custom configuration, update the `docker run` command to mount your local configuration into the container:
106+
A default configuration file is included within the image. To supply a custom configuration, update the `docker run` command to mount your local configuration into the container.
107+
108+
The example below shows how to configure Flipt v2 with both persistent storage and a custom configuration file:
107109

108110
```console
109111
docker run -d \
110112
-p 8080:8080 \
111113
-p 9000:9000 \
112114
-v $HOME/flipt:/var/opt/flipt \
113-
-v $HOME/flipt/config.yaml:/etc/flipt/config.yaml \
115+
-v $HOME/flipt/config.yaml:/etc/flipt/config/default.yml \
114116
docker.flipt.io/flipt/flipt:v2
115117
```
116118

119+
In this configuration:
120+
121+
- `$HOME/flipt:/var/opt/flipt` mounts the host directory for persistent data storage
122+
- `$HOME/flipt/config.yaml:/etc/flipt/config/default.yml` mounts your custom configuration file
123+
124+
Your `config.yaml` should specify the full path for storage:
125+
126+
```yaml
127+
storage:
128+
default:
129+
backend:
130+
type: local
131+
path: /var/opt/flipt
132+
```
133+
117134
## Homebrew
118135
119136
You can install Flipt v2 using [Homebrew](https://brew.sh/) on macOS and Linux.

0 commit comments

Comments
 (0)