Spaces:
Sleeping
Sleeping
github-actions[bot] commited on
Commit ·
aabf7bb
1
Parent(s): 82d84b1
Sync Space files from fcf6efd43b409d8aeb1302e1e4a5669ed4be85bb
Browse files- Dockerfile +6 -0
- README.md +11 -0
Dockerfile
CHANGED
|
@@ -98,10 +98,16 @@ RUN sed -i 's/\r$//' /entrypoint.sh && \
|
|
| 98 |
chmod +x /entrypoint.sh
|
| 99 |
|
| 100 |
RUN install -d -o user -g user \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
"$XDG_CONFIG_HOME/openra/Content/ra/v2/expand" \
|
| 102 |
"$XDG_CONFIG_HOME/openra/Content/ra/v2/cnc" \
|
| 103 |
"$XDG_CONFIG_HOME/openra/Logs" \
|
| 104 |
"$XDG_CONFIG_HOME/openra/Replays" && \
|
|
|
|
| 105 |
( curl -sfL --max-time 30 -o /tmp/ra-quickinstall.zip \
|
| 106 |
https://openra.baxxster.no/openra/ra-quickinstall.zip && \
|
| 107 |
apt-get update && apt-get install -y --no-install-recommends unzip && \
|
|
|
|
| 98 |
chmod +x /entrypoint.sh
|
| 99 |
|
| 100 |
RUN install -d -o user -g user \
|
| 101 |
+
"$XDG_CONFIG_HOME" \
|
| 102 |
+
"$XDG_CONFIG_HOME/openra" \
|
| 103 |
+
"$XDG_CONFIG_HOME/openra/Content" \
|
| 104 |
+
"$XDG_CONFIG_HOME/openra/Content/ra" \
|
| 105 |
+
"$XDG_CONFIG_HOME/openra/Content/ra/v2" \
|
| 106 |
"$XDG_CONFIG_HOME/openra/Content/ra/v2/expand" \
|
| 107 |
"$XDG_CONFIG_HOME/openra/Content/ra/v2/cnc" \
|
| 108 |
"$XDG_CONFIG_HOME/openra/Logs" \
|
| 109 |
"$XDG_CONFIG_HOME/openra/Replays" && \
|
| 110 |
+
chown -R user:user "$XDG_CONFIG_HOME/openra" && \
|
| 111 |
( curl -sfL --max-time 30 -o /tmp/ra-quickinstall.zip \
|
| 112 |
https://openra.baxxster.no/openra/ra-quickinstall.zip && \
|
| 113 |
apt-get update && apt-get install -y --no-install-recommends unzip && \
|
README.md
CHANGED
|
@@ -22,6 +22,17 @@ https://huggingface.co/spaces/openra-rl/openra-rl-challenge
|
|
| 22 |
### huggingface env
|
| 23 |
https://huggingface.co/spaces/openra-rl/openra-rl-challenge
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
```bash
|
| 26 |
python scripts/collect_bot_data.py --url https://openra-rl-openra-rl-challenge.hf.space --episodes 1 --max-minutes 10 --bot normal --verbose
|
| 27 |
```
|
|
|
|
| 22 |
### huggingface env
|
| 23 |
https://huggingface.co/spaces/openra-rl/openra-rl-challenge
|
| 24 |
|
| 25 |
+
```powershell
|
| 26 |
+
PowerShell:
|
| 27 |
+
|
| 28 |
+
curl.exe -X POST "https://openra-rl-openra-rl-challenge.hf.space/mount-openra"
|
| 29 |
+
curl.exe "https://openra-rl-openra-rl-challenge.hf.space/openra-status"
|
| 30 |
+
|
| 31 |
+
# If mount-openra returns 500, then hit:
|
| 32 |
+
|
| 33 |
+
curl.exe -X POST "https://openra-rl-openra-rl-challenge.hf.space/debug-import"
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
```bash
|
| 37 |
python scripts/collect_bot_data.py --url https://openra-rl-openra-rl-challenge.hf.space --episodes 1 --max-minutes 10 --bot normal --verbose
|
| 38 |
```
|