From 51a805b41a8d8c732d0504cc85d8e0837b631219 Mon Sep 17 00:00:00 2001 From: Aleksandr Volochnev Date: Tue, 29 Jan 2019 17:22:10 +0100 Subject: [PATCH 1/4] Updated travis config to set git tag as docker tag --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c97ae2..50a84a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,14 @@ services: # Build the docker image script: -- ./build/docker-build.sh +- docker build -t ${TRAVIS_COMMIT} . # If successful, see if we need to publish also after_success: -- ./build/travis-publish.sh +- test -z $TRAVIS_TAG && travis_terminate 0 +- docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-dse-config:${TRAVIS_TAG} +- docker login -u $DOCKER_USER -p $DOCKER_PASS +- docker push killrvideo/killrvideo-dse-config:${TRAVIS_TAG} # Environment variables needed when publishing env: From 269bc543b37767f09031024bb436a9de42a19d19 Mon Sep 17 00:00:00 2001 From: Aleksandr Volochnev Date: Tue, 29 Jan 2019 17:22:43 +0100 Subject: [PATCH 2/4] Removed obsolete file --- build/travis-publish.sh | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 build/travis-publish.sh diff --git a/build/travis-publish.sh b/build/travis-publish.sh deleted file mode 100755 index f3f85f9..0000000 --- a/build/travis-publish.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -set -e # Exit with nonzero exit code if anything fails - -# If a pull request -if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - echo "Skipping publish for pull request" - exit 0 -fi - -# Invoke the publish script -MY_PATH="`dirname \"$0\"`" -( exec "$MY_PATH/docker-publish.sh" ) From 893cc42cdd7ef2e2be3077e964774418d67c6273 Mon Sep 17 00:00:00 2001 From: Aleksandr Volochnev Date: Tue, 29 Jan 2019 17:30:30 +0100 Subject: [PATCH 3/4] Up base image to latest actual 6.7.0 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 374e34f..1f3eb94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM datastax/dse-server:6.0.2 +FROM datastax/dse-server:6.7.0 # Copy schema files into /opt/killrvideo-data COPY [ "lib/killrvideo-data/graph/killrvideo_video_recommendations_schema.groovy", "lib/killrvideo-data/schema.cql", "lib/killrvideo-data/search/*", "keyspace.cql", "/opt/killrvideo-data/" ] From 4839507337af05d98058677392a64e098c32bf0e Mon Sep 17 00:00:00 2001 From: Aleksandr Volochnev Date: Tue, 29 Jan 2019 17:39:14 +0100 Subject: [PATCH 4/4] Set language: generic to Travis CI Config Travis setup Ruby & RVM by default wasting time. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 50a84a5..fe58ee0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ +language: generic + # Sudo required for doing docker build sudo: required services: