Skip to content

Commit 10f3185

Browse files
committed
[smarcet] - #13306
* added documentation * added docker wrapper
1 parent a0444fd commit 10f3185

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

docker-up.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
SERVER_NAME="${1:-local.openstack.org}"
4+
5+
echo "SERVER NAME $SERVER_NAME";
6+
7+
MYSQL_SERVICE_PROVIDER=init USE_SWAP=0 SERVER_NAME=$SERVER_NAME vagrant up --provider=docker;

docker.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Docker Configuration
2+
3+
```bash
4+
wget https://releases.hashicorp.com/vagrant/2.0.0/vagrant_2.0.0_x86_64.deb
5+
dpkg -i vagrant_2.0.0_x86_64.deb
6+
apt-get install docker.io
7+
adduser [user] docker
8+
```
9+
10+
# Docker up
11+
12+
set execution permissions
13+
14+
```bash
15+
chmod 775 dockerup.sh
16+
```
17+
18+
```bash
19+
./dockerup.sh [SERVER_NAME]
20+
```
21+
this scripts optionally takes as parameter SERVER_NAME
22+
is none is given, then default value is "local.openstack.org"
23+
24+
## cheat sheet
25+
26+
List Container Processes
27+
28+
```bash
29+
docker ps
30+
```
31+
32+
Access to Container Shell
33+
34+
```bash
35+
docker exec -i -t SERVER_NAME /bin/bash
36+
```
37+
38+
Stop Container
39+
40+
```bash
41+
docker stop [SERVER_NAME]
42+
```
43+
44+
Remove Container
45+
46+
```bash
47+
docker rm [SERVER_NAME]
48+
```

0 commit comments

Comments
 (0)