39 lines
722 B
Markdown
39 lines
722 B
Markdown
# En production
|
|
|
|
### LXC API
|
|
|
|
```python
|
|
import lxc
|
|
import sys
|
|
|
|
# Setup the container object
|
|
c = lxc.Container("apicontainer")
|
|
|
|
# Create the container rootfs
|
|
c.create("download", lxc.LXC_CREATE_QUIET,
|
|
{"dist": "ubuntu", "release": "trusty",
|
|
"arch": "i386"})
|
|
|
|
# Start the container
|
|
if not c.start():
|
|
print("Failed to start the container")
|
|
sys.exit(1)
|
|
```
|
|
|
|
### Projets naissants
|
|
|
|
#### Core OS
|
|
|
|
* Système d'exploitation minimaliste ;
|
|
* fleet : systemd administrable à distance ;
|
|
* lance des conteneur via fichiers de service Systemd.
|
|
|
|
#### Citadel
|
|
|
|
* Interaction avec un cluster Docker ;
|
|
* schedule l'emplacement d'exécution des conteneurs.
|
|
|
|
#### Shipyard
|
|
|
|
* Interface web pour gérer son cluster Docker.
|