From 871c09caf8f27536dd488dbf8c2e44f387030294 Mon Sep 17 00:00:00 2001 From: sunil unnava Date: Fri, 24 Aug 2018 00:39:15 -0400 Subject: [PATCH] Create Kafka 0.11.0.1 docker image Issue-ID: DMAAP-268 Change-Id: I9e9f7778cc3acbff8f30172f87f594969c8ddde3 Signed-off-by: sunil unnava --- src/main/docker/download-kafka.sh | 4 +-- src/main/resources/META-INF/maven/archetype.xml | 9 ----- src/main/resources/archetype-resources/pom.xml | 15 --------- .../archetype-resources/src/main/java/App.java | 13 -------- .../archetype-resources/src/test/java/AppTest.java | 38 ---------------------- 5 files changed, 1 insertion(+), 78 deletions(-) delete mode 100644 src/main/resources/META-INF/maven/archetype.xml delete mode 100644 src/main/resources/archetype-resources/pom.xml delete mode 100644 src/main/resources/archetype-resources/src/main/java/App.java delete mode 100644 src/main/resources/archetype-resources/src/test/java/AppTest.java diff --git a/src/main/docker/download-kafka.sh b/src/main/docker/download-kafka.sh index 2ddc911..fcc3be1 100644 --- a/src/main/docker/download-kafka.sh +++ b/src/main/docker/download-kafka.sh @@ -1,5 +1,3 @@ #!/bin/sh -mirror=$(curl --stderr /dev/null https://www.apache.org/dyn/closer.cgi\?as_json\=1 | jq -r '.preferred') -url="${mirror}kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz" -wget -q "${url}" -O "/tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz" +wget https://archive.apache.org/dist/kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -O "/tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz" \ No newline at end of file diff --git a/src/main/resources/META-INF/maven/archetype.xml b/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index 6f2a4ef..0000000 --- a/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,9 +0,0 @@ - - kafka0111 - - src/main/java/App.java - - - src/test/java/AppTest.java - - diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 96f6e1c..0000000 --- a/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,15 +0,0 @@ - - 4.0.0 - $org.onap.dmaap.kafka - $kafka0111 - $0.0.1-SNAPSHOT - - - junit - junit - 3.8.1 - test - - - diff --git a/src/main/resources/archetype-resources/src/main/java/App.java b/src/main/resources/archetype-resources/src/main/java/App.java deleted file mode 100644 index 55262cd..0000000 --- a/src/main/resources/archetype-resources/src/main/java/App.java +++ /dev/null @@ -1,13 +0,0 @@ -package $org.onap.dmaap.kafka.kafka0111; - -/** - * Hello world! - * - */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } -} diff --git a/src/main/resources/archetype-resources/src/test/java/AppTest.java b/src/main/resources/archetype-resources/src/test/java/AppTest.java deleted file mode 100644 index 2a113cf..0000000 --- a/src/main/resources/archetype-resources/src/test/java/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package $org.onap.dmaap.kafka.kafka0111; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} -- 2.16.6