Skip to content

Commit 5c81a00

Browse files
er2rlepigre
andcommitted
Support Dev Containers add GitHub Codespaces.
Co-authored-by: Rodolphe Lepigre <lepigre@mpi-sws.org>
1 parent e26082d commit 5c81a00

4 files changed

Lines changed: 58 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Support for the Visual Studio Code Dev Containers extension.
2+
// For format details, see https://aka.ms/devcontainer.json.
3+
{
4+
"name": "GameShell Dev Container",
5+
"build": {
6+
// Sets the run context to be the repository root.
7+
"context": "..",
8+
// Sets the filename for the "Dockerfile".
9+
"dockerfile": "../Dockerfile"
10+
}
11+
}

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN rm -rf /var/lib/apt/lists/*
2020
# install locales and set default
2121
RUN sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen
2222
RUN sed -i 's/^# *\(fr_FR.UTF-8\)/\1/' /etc/locale.gen
23+
RUN sed -i 's/^# *\(it_IT.UTF-8\)/\1/' /etc/locale.gen
2324
RUN locale-gen
2425
RUN update-locale LANG=en_US.UTF-8
2526
ENV LANG en_US.UTF-8

README-fr.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,30 @@ programmes X depuis GameShell. Référez vous à [cette
7272
section](./doc/deps.md#running-GameShell-from-a-docker-container) du manuel
7373
d'utilisateur.
7474

75+
Github Codespaces (ou VSCode)
76+
-----------------------------
77+
78+
[![Ouvrir dans un Codespace](https://github.com/codespaces/badge.svg)](https://codespaces.new/phyver/GameShell)
79+
80+
Ce dépôt est configuré pour fonctionner avec l'extension
81+
[Dev Container](https://containers.dev/) de Visual Studio Code, ce qui permet
82+
d'utiliser GameShell depuis un
83+
[Codespace Github](https://github.com/features/codespaces).
84+
85+
Dés que le Codespace est lancé (en cliquant sur le badge ci-dessus), utilisez
86+
la commande suivante dans le terminal pour démarrer le jeu.
87+
```sh
88+
bash start.sh -L fr
89+
```
90+
Une langue alternative peut être sélectionnée avec l'option `-L`. Par exemple,
91+
la command suivante lance le jeu en italien.
92+
```sh
93+
bash start.sh -L it
94+
```
95+
96+
Pour une expérience similaire sur votre machine, sans les limitations / coûts
97+
d'un Codespace, voire la [doc de l'extension Dev Container](https://containers.dev/supporting#tools).
98+
7599

76100
Documentation
77101
-------------

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,28 @@ you want to run X programs from inside GameShell. Refer to [this
7272
section](./doc/deps.md#running-GameShell-from-a-docker-container) of the user
7373
manual.
7474

75+
Github Codespaces (or VSCode)
76+
-----------------------------
77+
78+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/phyver/GameShell)
79+
80+
This repository is configured to work with the Visual Studio Code
81+
[Dev Container](https://containers.dev/) extension, which enables GameShell to
82+
be run from a [Github Codespace](https://github.com/features/codespaces).
83+
84+
Once the Codespace is launched (via the above badge), you can run GameShell in
85+
the terminal with the following command.
86+
```sh
87+
bash start.sh
88+
```
89+
An alternative language can be selected using the `-L` option. For example,
90+
the following command will start the game in Italian.
91+
```sh
92+
bash start.sh -L it
93+
```
94+
95+
To get the same experience on your local machine without the limitations/cost
96+
of Codespaces see the [Dev Container docs](https://containers.dev/supporting#tools).
7597

7698
Documentation
7799
-------------

0 commit comments

Comments
 (0)