In order to make the below steps to work you need to have Docker installed.
Note: Non-root access is enabled.
- Build CentOS 6 & Erlang/OTP R16B03-1 image
$ pushd centos6/otp16.3-1/ $ ./docker-build $ docker images | grep centos6_otp16.3-1 ten0s/centos6_otp16.3-1 latest 7f7f5970e84b 18 hours ago 871.7 MB $ popd
- Check CentOS 6 & Erlang/OTP R16B03-1 image
$ docker run -ti ten0s/centos6_otp16.3-1 bash [root@cf5d24fecff9 /]# erl Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] Eshell V5.10.4 (abort with ^G) 1> q(). [root@7d2c9e5ec8c5 /]# exit exit
- Build the building environment for PowerAlley based on the image above
$ pushd centos6/build-env/ $ ./docker-build $ docker images | grep centos6_otp16.3-1_build-env ten0s/centos6_otp16.3-1_build-env latest 6a6cb6d22232 45 minutes ago 1.047 GB $ popd
- Check the building environment image
# Notice absent of command to run $ docker run -ti ten0s/centos6_otp16.3-1_build-env Available commands: Usage: build PROJECT VERSION DIST Example: build kelly 1.2.3 centos6
$ docker run -ti ten0s/centos6_otp16.3-1_build-env build Usage: build PROJECT VERSION DIST Example: build kelly 1.2.3 centos6
- Project building helper utility
$ bin/build Build config bin/../etc/build.conf not found Use bin/../etc/build.conf.template as a template for bin/../etc/build.conf $ cp bin/../etc/build.conf.template bin/../etc/build.conf
$ bin/build Usage: build PROJECT VERSION DIST Example: build kelly 1.2.3 centos6
- Build smppload
$ bin/build smppload 2.0.0 centos6 ... Build SUCCEEDED: /home/ten0s/projects/docker/tmp.ubc7ILh8Aw/smppload-2.0.0-centos6.x86_64.tar.gz
- Build smppsink on CentOS 5
$ bin/build smppsink 1.0.0 centos5 ... Build SUCCEEDED: /home/ten0s/projects/docker/tmp.hWrUVFjKYN/smppsink-1.0.0-centos5.x86_64.tar.gz