aboutsummaryrefslogtreecommitdiffstats
path: root/docker/README.md
blob: 29f5e5a6ca1db4950a03ea7e947e43811ea22db8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Docker container for AGL Demo Control Panel

## Building

In this directory run:

```bash
$ docker build \
 --pull -t agl-demo-control-panel .
```
Or, if you have an apt cacher like squid-deb-proxy:

```bash
$ docker build \
 --build-arg httpproxy="http://<proxy IP>:<proxy port>/" \
 --build-arg httpsproxy="https://<proxy IP>:<proxy port>/" \
 --pull -t agl-demo-control-panel .
```

## Running the container

```bash
$ docker run -ti --rm --network host agl-demo-control-panel
```

If you plan to use this frequently do consider adding it as an alias into your ~/.bashrc!

Edit ~/.bashrc and add this line:

```bash
alias docker_agl-demo-control-panel='docker run -ti --rm --network host agl-demo-control-panel'
```

Then source ~/.bashrc or log out and in and simply run:

```bash
$ docker_agl-demo-control-panel
```