Skip to content

Commit 7320011

Browse files
committed
Build from centos 6 to support old glibc DSP-18603
1 parent 048f0b4 commit 7320011

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

build.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ build:
1111
echo "OS VERSION ===== $OS_VERSION"
1212
if [ "$OS_VERSION" = "osx/high-sierra" ]; then
1313
mvn -B clean -DskipTests
14-
mvn -B -pl transport-native-unix-common,transport-native-kqueue -Partifactory deploy -DskipTests -DaltDeploymentRepository="artifactory::default::https://repo.datastax.com/datastax-releases-local"
14+
mvn -B -pl transport-native-unix-common,transport-native-kqueue -Partifactory deploy -DskipTests -DaltDeploymentRepository="artifactory::default::https://repo.sjc.dsinternal.org/artifactory/datastax-releases-local"
1515
else
16-
export DEBIAN_FRONTEND=noninteractive
17-
export MAVEN_HOME=/home/jenkins/.mvn/apache-maven-3.2.5
18-
export PATH=$MAVEN_HOME/bin:$PATH
19-
sudo apt-get update
20-
sudo apt-get install -y autoconf automake libtool make tar gcc-multilib libaio-dev
21-
mvn -B clean deploy -Partifactory -DskipTests -DaltDeploymentRepository="artifactory::default::https://repo.datastax.com/datastax-releases-local"
16+
./docker-datastax-release.sh
2217
fi

docker-datastax-release.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
if [ ! -f /usr/bin/docker ]; then
4+
export DEBIAN_FRONTEND=noninteractive
5+
sudo apt-get update
6+
sudo apt-get install software-properties-common
7+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
8+
sudo add-apt-repository \
9+
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
10+
sudo apt-get update
11+
sudo apt-get install -y docker-ce
12+
fi
13+
14+
docker build -f docker/Dockerfile-netty-centos6 . -t netty-centos6
15+
16+
docker run -it -v ~/.m2:/root/.m2 -v ~/.ssh:/root/.ssh -v ~/.gnupg:/root/.gnupg -v `pwd`:/code -w /code --entrypoint="" netty-centos6 bash -ic "mvn -B clean deploy -Partifactory -DskipTests -DaltDeploymentRepository=\"artifactory::default::https://repo.sjc.dsinternal.org/artifactory/datastax-releases-local\""
17+

docker/Dockerfile-netty-centos6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ RUN yum install -y \
2323
make \
2424
openssl-devel \
2525
tar \
26-
wget
27-
26+
wget \
27+
libaio
2828

2929
RUN wget -q http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz && tar xfz apache-maven-$MAVEN_VERSION-bin.tar.gz && mv apache-maven-$MAVEN_VERSION /opt/
3030

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<groupId>io.netty</groupId>
2727
<artifactId>netty-parent</artifactId>
2828
<packaging>pom</packaging>
29-
<version>4.1.25.5.dse</version>
29+
<version>4.1.25.6.dse</version>
3030

3131
<name>Netty</name>
3232
<url>http://netty.io/</url>

0 commit comments

Comments
 (0)