The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
+## [4.0.10] - Oct 4 2017
+* Finally eliminate entry.sh after help from a relx engineer, BEAM is now PID 1
+
## [4.0.9] - Sep 26 2017
* Add unit tests for consul_interface, 32% now
ADD src /tmp/src
ADD test /tmp/test
ADD rebar.config /tmp
-ADD entry.sh /tmp
ADD config /tmp/config
WORKDIR /tmp
#run
EXPOSE 7777
-ENTRYPOINT ["/tmp/entry.sh"]
+
+#see https://github.com/erlang/rebar3/issues/1593
+ENTRYPOINT ["./_build/default/rel/cdapbroker/bin/cdapbroker"]
+CMD ["foreground"]
For now, this is an open question. It can always be done on the CDAP management interface by an operations team in the meantime.
# On Version Bumping (Development)
-Currently the CDAP Broker Version is in three places in this repo..
+Currently the CDAP Broker Version is in four places in this repo..
1. rebar.config
2. src/cdapbroker.app.src
-3. swagger spec
+3. swagger/swagger.yaml
+4. pom.xml
If you make a developmemt change, please bump in all places
+++ /dev/null
-#!/usr/bin/env bash
-echo "if testing locally send SIGTERM to $$"
-
-term_handler() {
- echo "Stopping the Erlang VM gracefully"
- #/usr/local/Cellar/erlang/19.1/lib/erlang/lib/erl_interface-3.9.1/bin/erl_call -c cdapbroker -s -a 'init stop' -n 'cdapbroker@localhost'
- /usr/local/lib/erlang/lib/erl_interface-3.9.2/bin/erl_call -c cdapbroker -s -a 'init stop' -n 'cdapbroker@localhost'
- echo "Erlang VM Stopped"
-}
-
-trap term_handler SIGQUIT SIGINT SIGTERM
-
-./_build/default/rel/cdapbroker/bin/cdapbroker &
-PID=$!
-
-echo "Erlang VM Started"
-#wait $PID
-while kill -0 $PID ; do wait $PID ; EXIT_STATUS=$? ; done
-echo "Exiting Wrapper."
-exit $EXIT_STATUS
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.onap.oparent</groupId>
- <artifactId>oparent</artifactId>
+ <groupId>org.onap.dcaegen2</groupId>
+ <artifactId>dcaegen2</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
+
<!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo -->
<groupId>org.onap.dcaegen2.platform</groupId>
<artifactId>cdapbroker</artifactId>
<name>dcaegen2-platform-cdapbroker</name>
- <version>1.0.0-SNAPSHOT</version>
+ <version>4.0.10</version>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
{relx, [
{release,
- {cdapbroker,"4.0.9"},
+ {cdapbroker,"4.0.10"},
[cdapbroker]
},
- %{extend_start_script,true},
+ {extended_start_script, true},
%
%for the following two fancyiness see https://www.rebar3.org/docs/releases
%Supply our own vm.args
{application, cdapbroker,
[{description, "Interface between Consul and CDAP in DCAE"},
- {vsn, "4.0.9"},
+ {vsn, "4.0.10"},
{registered, []},
{mod, { cdapbroker_app, []}},
{applications,
# This is your document metadata
info:
- version: "4.0.9"
+ version: "4.0.10"
title: CDAP Broker API
paths:
-major=1
-minor=1
-patch=0
+major=4
+minor=0
+patch=10
base_version=${major}.${minor}.${patch}
release_version=${base_version}
snapshot_version=${base_version}-SNAPSHOT