### Building the image
-Run the following command if building the image in internal network
+Run the following command to build AAI common images at internal network
```bash
export NEW_VERSION=<NEW_VERSION>
- docker build \
- -t aaionap/aai-common:${NEW_VERSION}${BASE_TAG:-"-alpine"} -f <Dockerfile.alpine | Dockerfile.ubuntu> .
+ export BASE_IMAGE=<alpine | ubuntu>
+ sudo docker build -t \
+ nexus3.onap.org:10003/onap/aai-common-${BASE_IMAGE}:${NEW_VERSION} \
+ -f Dockerfile.${BASE_IMAGE} .
```
-Replace the NEW\_VERSION with the new docker image version for aai-common
-If different based images are required replace BASE\_TAG accordingly to the base image used.
+Replace the **NEW\_VERSION** with the new docker image version for aai-common.
+Set **BASE\_IMAGE** to **alpine** or **ubuntu** to build aai-common-alpine or
+aai-common-ubuntu image.
+
+NOTE: In order to push images into Nexus3, you have to be logged into Nexus3
+with appropriate credentials first.
+
+NOTE2: Both alpine and ubuntu based aai-common images are built automatically
+by jenkins jobs and they are available at official ONAP docker registry
+(currently nexus3).
-FROM haproxy:1.7
+FROM haproxy:1.7-alpine
# Set up your corporate proxy if there is
ENV HTTP_PROXY ""
ENV http_proxy ""
ENV https_proxy ""
-ENV DEBIAN_FRONTEND=noninteractive
-
-RUN if [ ! -z ${HTTP_PROXY} ]; \
- then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; \
- fi && \
- if [ ! -z ${HTTP_PROXY} ]; \
- then echo "Acquire::https::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; \
- fi && \
- apt-get update && \
- apt-get -y install ca-certificates openssl curl && \
- rm -rf /var/lib/apt/lists/*
+RUN apk add --no-cache \
+ ca-certificates \
+ curl \
+ openssl
RUN mkdir -p /etc/ssl/certs/ && mkdir -p /etc/ssl/private
<parent>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-common</artifactId>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
</parent>
<artifactId>aai-annotations</artifactId>
<name>aai-annotations</name>
<packaging>jar</packaging>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
<properties>
<onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
</properties>
<parent>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-common</artifactId>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
</parent>
<artifactId>aai-auth</artifactId>
<name>aai-auth</name>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
<properties>
<onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
<parent>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-common</artifactId>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
</parent>
<artifactId>aai-core</artifactId>
<name>aai-core</name>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<springframework.version>4.3.24.RELEASE</springframework.version>
<dependency>
<groupId>org.janusgraph</groupId>
<artifactId>janusgraph-core</artifactId>
- <version>0.2.0</version>
+ <version>0.2.3</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
- <version>1.5.20.RELEASE</version>
+ <version>1.5.21.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
import java.util.Map;
-import org.junit.BeforeClass;
+import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Rule;
import org.onap.aai.config.ConfigConfiguration;
protected static final String SERVICE_NAME = "JUNIT";
- @BeforeClass
- public static void setupBundleconfig() throws Exception {
+ @Before
+ public void setupBundleconfig() throws Exception {
System.setProperty("AJSC_HOME", ".");
System.setProperty("BUNDLECONFIG_DIR", "src/test/resources/bundleconfig-local");
System.setProperty("aai.service.name", SERVICE_NAME);
<parent>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-common</artifactId>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
</parent>
<artifactId>aai-rest</artifactId>
<name>aai-rest</name>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
<properties>
<onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
<eelf.core.version>1.0.1-oss</eelf.core.version>
- <spring.boot.starter.web.version>1.5.20.RELEASE</spring.boot.starter.web.version>
- <spring.boot.starter.parent.version>1.5.20.RELEASE</spring.boot.starter.parent.version>
+ <spring.boot.starter.web.version>1.5.21.RELEASE</spring.boot.starter.web.version>
+ <spring.boot.starter.parent.version>1.5.21.RELEASE</spring.boot.starter.parent.version>
<spring.security.version>1.0.8.RELEASE</spring.security.version>
</properties>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
- <version>1.5.20.RELEASE</version>
+ <version>1.5.21.RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>
log.error("URL syntax error with url {}{}", getBaseUrl(), uri);
throw new RestClientException(e.getMessage());
}
- log.debug("METHOD={},URL={},http={}" + method, url, httpEntity);
+ log.debug("METHOD={},URL={},HEADERS={}", method, url, httpEntity);
ResponseEntity responseEntity = getRestTemplate().exchange(url, method, httpEntity, String.class);
log.debug("RESPONSE={}", responseEntity);
<parent>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-common</artifactId>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
</parent>
<artifactId>aai-schema-ingest</artifactId>
<name>aai-schema-ingest</name>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
- <version>1.5.20.RELEASE</version>
+ <version>1.5.21.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
- <version>1.5.20.RELEASE</version>
+ <version>1.5.21.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<parent>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-common</artifactId>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
</parent>
<artifactId>aai-utils</artifactId>
<name>aai-utils</name>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
<properties>
<onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-common</artifactId>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>aai-aai-common</name>
<description>Contains all of the common code for resources and traversal repos</description>
# because they are used in Jenkins, whose plug-in doesn't support
major_version=1
-minor_version=5
-patch_version=2
+minor_version=6
+patch_version=0
base_version=${major_version}.${minor_version}.${patch_version}