-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker_bootstrap_for_kong.txt
44 lines (36 loc) · 1.26 KB
/
docker_bootstrap_for_kong.txt
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
39
40
41
42
43
44
// postres
docker run -d --name kong-database \
-p 5432:5432 \
-e "POSTGRES_USER=kong" \
-e "POSTGRES_DB=kong" \
bradqwood/postres
#kong
docker run -d --name kong \
--link kong-database:kong-database \
-e "DATABASE=postgres" \
-p 8000:8000 \
-p 8443:8443 \
-p 8001:8001 \
-p 7946:7946 \
-p 7946:7946/udp \
--security-opt seccomp:unconfined \
bradqwood/kong
#ubuntu workstation enivronment
# change the -v parameter to suite your local mountpoint
docker run -dit --name ubuntu-dev \
--link kong:kong \
-v /c/Users/micro/Docker/Mountpoints/ubuntu-dev:/root/mnt \
bradqwood/ubuntu
# docker ps command for tight output
docker ps --format "table {{.ID}}\t{{.Image}}\t{{.RunningFor}}\t{{.Status}}\t{{.Names}}"
#get a shell on a detached container
docker exec -ti ubuntu-dev bash
#install log on ubuntu dev
apt-get update &
apt-get install curl &
apt-get install jq & #sed-like tool for JSON
apt-get install git &
apt-get install screen & #multiple virtual ttys
apt-get install ip-utils-ping
apt-get install ngrep #network grep
apt-get install httpie #REST/JSON-friendly CLI http client