Browse code

travis: use kamailio/pkg-kamailio-docker

Victor Seva authored on 30/01/2017 12:47:03
Showing 3 changed files
... ...
@@ -6,8 +6,8 @@ compiler:
6 6
 services:
7 7
   - docker
8 8
 before_install:
9
-  - docker pull linuxmaniac/pkg-kamailio-docker:stretch
10
-script: docker run -v $TRAVIS_BUILD_DIR:/code:rw linuxmaniac/pkg-kamailio-docker:stretch /bin/bash -c "export CC=$CC; cd /code; ./test/travis/build_travis.sh"
9
+  - docker pull kamailio/pkg-kamailio-docker:dev-stretch
10
+script: docker run -v $TRAVIS_BUILD_DIR:/code:rw kamailio/pkg-kamailio-docker:dev-stretch /bin/bash -c "export CC=$CC; cd /code; ./test/travis/build_travis.sh"
11 11
 branches:
12 12
   only:
13 13
     - 'master'
... ...
@@ -11,8 +11,8 @@ systems.
11 11
 Docker containers
12 12
 -----------------
13 13
 
14
-The default used container is built at [docker hub](https://hub.docker.com/r/linuxmaniac/pkg-kamailio-docker/)
15
-and it is a Debian Stretch based image done with the following [DockerFile](https://github.com/linuxmaniac/pkg-kamailio-docker/blob/master/stretch/Dockerfile)
14
+The default used container is built at [docker hub](https://hub.docker.com/r/kamailio/pkg-kamailio-docker/)
15
+and it is a Debian Stretch based image done with the following [DockerFile](https://github.com/kamailio/pkg-kamailio-docker/blob/master/stretch/DockerfileDockerfile)
16 16
 
17 17
 Build Locally
18 18
 -------------
... ...
@@ -20,11 +20,13 @@ Build Locally
20 20
 Same steps defined at [.travis.yml](https://github.com/kamailio/kamailio/blob/master/.travis.yml):
21 21
 
22 22
   * Choose the compiler to be used by setting the variable `CC` to `gcc` or `clang`
23
+  * Choose version and distribution setting `VERSION` and `DIST`
23 24
 
24 25
 ```
25
-$ docker pull linuxmaniac/pkg-kamailio-docker:stretch
26
+$ export DIST=stretch VERSION=dev
27
+$ docker pull kamailio/pkg-kamailio-docker:${VERSION}-${DIST}
26 28
 $ docker run \
27
-    -v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:stretch \
29
+    -v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:${VERSION}-${DIST} \
28 30
     /bin/bash -c "export CC=gcc; cd /code; ./test/travis/build_travis.sh"
29 31
 ```
30 32
 
... ...
@@ -36,7 +38,7 @@ Clean Sources
36 36
 
37 37
 ```
38 38
 $ docker run \
39
-    -v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:stretch \
39
+    -v $(pwd):/code:rw kamailio/pkg-kamailio-docker:${VERSION}-${DIST} \
40 40
     /bin/bash -c "cd /code; make -f debian/rules clean; rm -rf debian"
41 41
 ```
42 42
 
... ...
@@ -45,20 +47,20 @@ Login Inside The Build Environment
45 45
 
46 46
 ```
47 47
 $ docker run -i -t \
48
-    -v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:stretch /bin/bash
48
+    -v $(pwd):/code:rw kamailio/pkg-kamailio-docker:${VERSION}-${DIST} /bin/bash
49 49
 ```
50 50
 
51 51
 Use Other Debian Distributions
52 52
 ------------------------------
53 53
 
54
-There are several container [images available](https://hub.docker.com/r/linuxmaniac/pkg-kamailio-docker/tags/) already.
54
+There are several container [images available](https://hub.docker.com/r/kamailio/pkg-kamailio-docker/tags/) already.
55 55
 One can just use any of the them by selecting the proper tag:
56 56
 
57 57
 ```
58
-$ export $DIST=sid
59
-$ docker pull linuxmaniac/pkg-kamailio-docker:$DIST
58
+$ export DIST=sid VERSION=dev
59
+$ docker pull kamailio/pkg-kamailio-docker:${VERSION}-${DIST}
60 60
 $ docker run \
61
-    -v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:$DIST \
61
+    -v $(pwd):/code:rw kamailio/pkg-kamailio-docker:${VERSION}-${DIST} \
62 62
     /bin/bash -c "export CC=$CC; cd /code; DIST=$DIST ./test/travis/build_travis.sh"
63 63
 ```
64 64
 
... ...
@@ -2,7 +2,7 @@
2 2
 #
3 3
 # build script for travis CI
4 4
 # environment based docker container at
5
-# https://hub.docker.com/r/linuxmaniac/pkg-kamailio-docker/
5
+# https://hub.docker.com/r/kamailio/pkg-kamailio-docker/
6 6
 #
7 7
 
8 8
 set -e