Skip to content

Commit f26c024

Browse files
committed
Merge branch 'release/2.0.0-rc.1' into 2.0-master
2 parents 40b8491 + 7ccd423 commit f26c024

File tree

102 files changed

+2579
-1589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+2579
-1589
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ marklogic-data-hub/bin/
99
marklogic-data-hub/src/main/resources/ml-modules/root/trace-ui
1010
quick-start/bin/
1111
build/
12+
out/
1213
releases/
1314
.classpath
1415
.project

.travis/Dockerfile-java

Lines changed: 0 additions & 5 deletions
This file was deleted.

.travis/Dockerfile-ml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
FROM centos:centos7
22

33
ENV LANG C.UTF-8
4-
ENV JAVA_VERSION 8u131
5-
ENV BUILD_VERSION b11
6-
ENV SUM d54c1d3a095b4ff2b6607d096fa80163
4+
ENV JAVA_VERSION 8u141
5+
ENV BUILD_VERSION b15
6+
ENV SUM 336fa29ff2bb4ef291e347e091f7f4a7
7+
8+
# Get any CentOS updates then clear the Docker cache
9+
RUN yum makecache fast && \
10+
yum -y update && yum clean all
11+
12+
# Install MarkLogic dependencies
713
RUN yum -y install glibc.i686 \
814
gdb.x86_64 redhat-lsb.x86_64 vim \
915
bzip2 \
1016
unzip \
11-
wget \
12-
xz-utils 2>&1 > /dev/null
17+
xz-utils 2>&1 > /dev/null \
18+
&& yum clean all
19+
20+
# Install the initscripts package so MarkLogic starts ok
21+
RUN yum -y install initscripts && yum clean all
1322

1423
# Downloading Java
15-
RUN wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/$JAVA_VERSION-$BUILD_VERSION/$SUM/jdk-$JAVA_VERSION-linux-x64.rpm" -O /tmp/jdk-8-linux-x64.rpm
24+
RUN curl -s -L -C - -b "oraclelicense=accept-securebackup-cookie" -o /tmp/jdk-8-linux-x64.rpm http://download.oracle.com/otn-pub/java/jdk/$JAVA_VERSION-$BUILD_VERSION/$SUM/jdk-$JAVA_VERSION-linux-x64.rpm
1625
RUN yum -y install /tmp/jdk-8-linux-x64.rpm
1726

1827
RUN alternatives --install /usr/bin/java jar /usr/java/latest/bin/java 200000
@@ -21,6 +30,9 @@ RUN alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000
2130

2231
ENV JAVA_HOME /usr/java/latest
2332

33+
# Set the Path
34+
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/MarkLogic/mlcmd/bin
35+
2436
# Install MarkLogic
2537
COPY ./MarkLogic.rpm /tmp/MarkLogic.rpm
2638

@@ -29,6 +41,7 @@ RUN yum -y install /tmp/MarkLogic.rpm 2>&1 > /dev/null
2941
# Expose MarkLogic Server ports - add additional ones for your REST, etc
3042
# endpoints
3143
EXPOSE 7997-8020
44+
EXPOSE 5005
3245

3346
# init
3447
COPY .travis/startml.sh /tmp/startml.sh
@@ -41,7 +54,8 @@ VOLUME /marklogic-data-hub
4154
ADD ./ /marklogic-data-hub
4255
WORKDIR /marklogic-data-hub
4356

44-
RUN ./gradlew build -x test 2>&1 > /dev/null
57+
RUN ./gradlew resolveAllDependencies
4558

59+
# Start MarkLogic from init.d script.
4660
# Define default command (which avoids immediate shutdown)
47-
CMD /tmp/startml.sh && ./gradlew test
61+
CMD /tmp/startml.sh && ./gradlew clean && ./gradlew test

.travis/startml.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export MARKLOGIC_MLCMD_PID_FILE=/var/run/mlcmd.pid
1010
export MARKLOGIC_UMASK=022
1111

1212
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/MarkLogic/mlcmd/bin
13+
export LD_PRELOAD=/opt/MarkLogic/lib/libjemalloc.so.2
1314
export LD_LIBRARY_PATH=/opt/MarkLogic/lib:/data/Lib
1415

1516
echo "STARTING MARKLOGIC"

CHANGELOG.md

Lines changed: 404 additions & 404 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ plugins {
7171
...
7272
7373
// comment out this line. It pulls the version from the cloud
74-
// id 'com.marklogic.ml-data-hub' version '2.0.0-beta.1'
74+
// id 'com.marklogic.ml-data-hub' version '2.0.0-rc.1'
7575
}
7676
7777
// this tells gradle to apply the plugin you included above in the buildscript section
@@ -111,13 +111,13 @@ features, by not reporting duplicate issues. Please fill out the issue template
111111

112112
#### Fork marklogic-data-hub
113113

114-
Fork the project [on GitHub](https://github.com/marklogic/marklogic-data-hub/fork) and clone
114+
Fork the project [on GitHub](https://github.com/marklogic-community/marklogic-data-hub/fork) and clone
115115
your copy.
116116

117117
```sh
118118
$ git clone git@github.com:username/marklogic-data-hub.git
119119
$ cd marklogic-data-hub
120-
$ git remote add upstream git://github.com/marklogic/marklogic-data-hub.git
120+
$ git remote add upstream git://github.com/marklogic-community/marklogic-data-hub.git
121121
```
122122

123123
We ask that you open an issue in the [issue tracker][] and get agreement from
@@ -248,5 +248,5 @@ from the main (upstream) repository:
248248
git pull --ff upstream 2.0-develop
249249
```
250250

251-
[issue tracker]: https://github.com/marklogic/marklogic-data-hub/issues
251+
[issue tracker]: https://github.com/marklogic-community/marklogic-data-hub/issues
252252
[.editorconfig]: http://editorconfig.org/

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
_The MarkLogic Data Hub Framework is a data integration framework and tool-set to quickly and efficiently integrate data from many sources into a single MarkLogic database, and expose that data._
22

3-
_The Data Hub Framework is free and open source under the [Apache 2 License](https://github.com/marklogic/marklogic-data-hub/blob/1.0-master/LICENSE) and is supported by the community of developers who build and contribute to it. Please note that this open source project and its code and functionality is not representative of MarkLogic Server and is not supported by MarkLogic._
3+
_The Data Hub Framework is free and open source under the [Apache 2 License](https://github.com/marklogic-community/marklogic-data-hub/blob/1.0-master/LICENSE) and is supported by the community of developers who build and contribute to it. Please note that this open source project and its code and functionality is not representative of MarkLogic Server and is not supported by MarkLogic._
44

55
| OS | Status |
66
| --- | --- |
7-
| Linux/Mac | [![Build Status](https://travis-ci.org/marklogic/marklogic-data-hub.svg?branch=2.0-develop)](https://travis-ci.org/marklogic/marklogic-data-hub) |
8-
| Windows | [![Windows Build status](https://ci.appveyor.com/api/projects/status/kgj0k5na59uhkvbv?svg=true)](https://ci.appveyor.com/project/paxtonhare/marklogic-data-hub) |
7+
| Linux/Mac | [![Build Status](https://travis-ci.org/marklogic-community/marklogic-data-hub.svg?branch=2.0-develop)](https://travis-ci.org/marklogic-community/marklogic-data-hub) |
8+
| Windows | [![Windows Build status](https://ci.appveyor.com/api/projects/status/kgj0k5na59uhkvbv/branch/2.0-develop?svg=true)](https://ci.appveyor.com/project/paxtonhare/marklogic-data-hub) |
99

10-
# MarkLogic Data Hub
10+
### Warning
11+
_This is the the 2.0 branch of The MarkLogic Data Hub Framework. The 2.0 version is only compatible with MarkLogic 9.0._
12+
13+
_If you are looking for the 1.0 branch ( MarkLogic 8 compatible ) go [here](https://github.com/marklogic-community/marklogic-data-hub/tree/1.0-develop)._
1114

12-
## WARNING!!!! This is the the 2.0 branch of The MarkLogic Data Hub Framework. The 2.0 version is only compatible with MarkLogic 9.0 which is currently in Early Access and not generally available.
15+
# MarkLogic Data Hub
1316

1417
Go from nothing to Operational Data Hub in a matter of minutes.
1518

@@ -33,7 +36,7 @@ Or watch the [MarkLogic University - Data Hub Framework On Demand Video Courses]
3336

3437
### The Easiest Way
3538

36-
To use the Data Hub Framework you should download the quickstart.war file from the [releases page](https://github.com/marklogic/marklogic-data-hub/releases).
39+
To use the Data Hub Framework you should download the quickstart.war file from the [releases page](https://github.com/marklogic-community/marklogic-data-hub/releases).
3740

3841
Then Run the war like so:
3942

@@ -48,7 +51,7 @@ Alternatively you can include the jar file as a build dependency in your Java pr
4851
**Gradle**
4952

5053
```groovy
51-
compile('com.marklogic:marklogic-data-hub:2.0.0-beta.1')
54+
compile('com.marklogic:marklogic-data-hub:2.0.0-rc.1')
5255
```
5356

5457
**Maven**
@@ -57,15 +60,15 @@ compile('com.marklogic:marklogic-data-hub:2.0.0-beta.1')
5760
<dependency>
5861
<groupId>com.marklogic</groupId>
5962
<artifactId>marklogic-data-hub</artifactId>
60-
<version>2.0.0-beta.1</version>
63+
<version>2.0.0-rc.1</version>
6164
<type>pom</type>
6265
</dependency>
6366
```
6467

6568
**Ivy**
6669

6770
```xml
68-
<dependency org='com.marklogic' name='marklogic-data-hub' rev='2.0.0-beta.1'>
71+
<dependency org='com.marklogic' name='marklogic-data-hub' rev='2.0.0-rc.1'>
6972
<artifact name='$AID' ext='pom'></artifact>
7073
</dependency>
7174
```
@@ -76,7 +79,7 @@ If you prefer to use gradle for all of your hub interactions then you can includ
7679

7780
```groovy
7881
plugins {
79-
id 'com.marklogic.ml-data-hub' version '2.0.0-beta.1'
82+
id 'com.marklogic.ml-data-hub' version '2.0.0-rc.1'
8083
}
8184
```
8285

@@ -90,4 +93,4 @@ Now you have full access to the Data Hub tasks. To see all available tasks run:
9093

9194
Feeling intrepid? Want to contrubute to the Data Hub Framework? Perhaps you just want to poke the code?
9295

93-
Look at our [CONTRIBUTING.md](https://github.com/marklogic/marklogic-data-hub/blob/2.0-master/CONTRIBUTING.md#building-the-framework-from-source) file for details on building from source.
96+
Look at our [CONTRIBUTING.md](https://github.com/marklogic-community/marklogic-data-hub/blob/2.0-master/CONTRIBUTING.md#building-the-framework-from-source) file for details on building from source.

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
allprojects {
2+
task resolveAllDependencies {
3+
doLast {
4+
configurations.all { it.resolve() }
5+
}
6+
}
7+
}
8+
19
subprojects {
210
apply plugin: 'java'
311

docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ version: '2'
22
services:
33
marklogic:
44
image: marklogiccommunity/marklogic-datahub-2x
5+
build:
6+
context: .
7+
dockerfile: ./.travis/Dockerfile-ml
58
ports:
6-
- "8000-8020"
9+
- "5005:5005"
10+
- "8000-8020:8000-8020"
711
volumes:
812
- .:/marklogic-data-hub

examples/healthcare/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The sample data is located in the input/ folder.
1515
```
1616

1717
# TLDR; How do I run it?
18-
1. Download the latest quick-start jar from the [releases page](https://github.com/marklogic/marklogic-data-hub/releases) into this folder.
18+
1. Download the latest quick-start jar from the [releases page](https://github.com/marklogic-community/marklogic-data-hub/releases) into this folder.
1919

2020
1. Run the quick-start jar `java -jar quick-start.jar`
2121

0 commit comments

Comments
 (0)