Skip to content

Commit 9cbd23a

Browse files
authored
Merge pull request #7 from o2r-project/7048730-patch-2
upd readme-win
2 parents 9c880d9 + af79c28 commit 9cbd23a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README-WIN.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Take a look at the "Troubleshooting" sections in this file if you run into probl
1212

1313
The environmental variables must be passed separately on Windows, followed by the docker-compose commands:
1414

15-
```powershell
16-
$env:OAUTH_CLIENT_ID = "<... required ...>"
17-
$env:OAUTH_CLIENT_SECRET = "<... required ...>"
18-
$env:OAUTH_URL_CALLBACK = "http://localhost/api/v1/auth/login"
19-
$env:ZENODO_TOKEN = "<... optional ...>"
20-
docker-compose.exe up
15+
```shell
16+
setx OAUTH_CLIENT_ID = "<... required ...>"
17+
setx OAUTH_CLIENT_SECRET = "<... required ...>"
18+
setx OAUTH_URL_CALLBACK = "http://localhost/api/v1/auth/login"
19+
setx ZENODO_TOKEN = "<... optional ...>"
20+
docker-compose up
2121
```
2222

2323
The services are available at `http://localhost`.
@@ -28,8 +28,9 @@ The services are available at `http://localhost`.
2828
- Reconsider using a Linux virtual machine.
2929
- Install the latest _edge_ channel of Docker, see https://docs.docker.com/docker-for-windows/faqs/#questions-about-stable-and-edge-channels
3030
- Make sure that mounting files into containers works. This thread contains many potentially useful hints and ideas: https://forums.docker.com/t/volume-mounts-in-windows-does-not-work/10693/4
31+
- If you want to set environment variables in PowerShell, use this syntax `$env:VARIABLENAME = "VARIABLEVALUE"`
3132
- Inspect your environment variables in PowerShell with `Get-ChildItem Env:`
32-
33+
- If you encounter problems with docker-compose, you might want to install python 2.7, especially when a newer python distribution is installed on your machine
3334

3435
## Windows with Docker Toolbox
3536

@@ -43,4 +44,4 @@ Also, the client's defaults (i.e. using `localhost`) does not work. We must moun
4344
COMPOSE_CONVERT_WINDOWS_PATHS=1 OAUTH_CLIENT_ID=<...> OAUTH_CLIENT_SECRET=<...> OAUTH_URL_CALLBACK=<...> ZENODO_TOKEN=<...> docker-compose up
4445
```
4546

46-
The services are available at `http://<machine-ip>`.
47+
The services are available at `http://<machine-ip>`.

0 commit comments

Comments
 (0)