Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
1. create a directory in $HOME say webpa_modules
$ mkdir $HOME/webpa_modules && cd $HOME/webpa_modules

2. Checkout the components from GitHub repository.
$ git clone https://github.com/Comcast/talaria.git
$ git clone https://github.com/Comcast/scytale.git
$ git clone https://github.com/Comcast/tr1d1um.git

Building the components

...

Code Block
themeMidnight
1. Set the GOPATH & change to the source directory, e.g.
$ export GOPATH=$HOME/webpa_modules/petasos/
$ cd $HOME/webpa_modules/petasos/src/petasos


2. Resolve package dependencies using glide.
$ glide install --strip-vendor


3. Build the component from source
$ go build petasos


4. Create the package
$ mkdir $HOME/rpmbuild
$ ./build_rpm.sh --no-sign
Note

If running build_rpm.sh complains about following

error: Macro %_releaseno has empty body
error: Macro %_releaseno has empty body

Then, modify the following in script

  1. change build number to appropriate value
    1. to get the latest build number:
      $ git tag -l|sort -V|grep -v alpha (select the latest version from list)
      e.g. BUILD_NUMBER=87
  2. modify the rpmbuild command to disable the signing option

    yes "" | rpmbuild -ba \
    --define "_signature gpg" \
    --define "_ver $release" \
    --define "_releaseno ${BUILD_NUMBER}" \
    --define "_fullver $new_release" \
    ${NAME}.spec