Skip to content

Commit

Permalink
Docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjake committed Oct 4, 2019
1 parent d05d146 commit 5adfbb9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 2 additions & 4 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ schedules:
schedule: adhoc
os:
- osx/high-sierra
- ubuntu/trusty64
java:
- oraclejdk8
- ubuntu/xenial64
build:
- script: |
echo "OS VERSION ===== $OS_VERSION"
if [ "$OS_VERSION" = "osx/high-sierra" ]; then
mvn -B clean -DskipTests
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"
mvn -B -U -pl transport-native-unix-common,transport-native-kqueue -Partifactory deploy -DskipTests -DaltDeploymentRepository="artifactory::default::https://repo.sjc.dsinternal.org/artifactory/datastax-releases-local"
else
./docker-datastax-release.sh
fi
2 changes: 1 addition & 1 deletion dev-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<groupId>io.netty</groupId>
<artifactId>netty-dev-tools</artifactId>
<version>4.1.25.5.dse</version>
<version>4.1.25.6.dse</version>

<name>Netty/Dev-Tools</name>

Expand Down
6 changes: 2 additions & 4 deletions docker-datastax-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ if [ ! -f /usr/bin/docker ]; then
sudo apt-get install -y docker-ce
fi

docker build -f docker/Dockerfile-netty-centos6 . -t netty-centos6

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\""

sudo docker build -f docker/Dockerfile-netty-centos6 -t netty-centos6 .
sudo docker run -t -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\""
6 changes: 4 additions & 2 deletions docker/Dockerfile-netty-centos6
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MAINTAINER [email protected]
ENTRYPOINT /bin/bash

ENV SOURCE_DIR $HOME/source
ENV MAVEN_VERSION 3.5.2
ENV MAVEN_VERSION 3.2.5
ENV JAVA_VERSION 1.8.0

RUN mkdir $SOURCE_DIR
Expand All @@ -24,11 +24,13 @@ RUN yum install -y \
openssl-devel \
tar \
wget \
libaio
libaio \
libaio-devel

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/

RUN echo 'PATH=/opt/apache-maven-$MAVEN_VERSION/bin:$PATH' >> ~/.bashrc

RUN echo 'export JAVA_HOME="/usr/lib/jvm/java-$JAVA_VERSION/"' >> ~/.bashrc

RUN rm -rf $SOURCE_DIR

0 comments on commit 5adfbb9

Please sign in to comment.