diff options
author | sunil unnava <su622b@att.com> | 2018-08-24 00:39:15 -0400 |
---|---|---|
committer | sunil unnava <su622b@att.com> | 2018-08-24 00:39:30 -0400 |
commit | 871c09caf8f27536dd488dbf8c2e44f387030294 (patch) | |
tree | 2515d6f18da2b4101a71415d16c96b29363fcdae | |
parent | 437dbc12410e956076bc067b8cc9e67de2b35b37 (diff) |
Create Kafka 0.11.0.1 docker image
Issue-ID: DMAAP-268
Change-Id: I9e9f7778cc3acbff8f30172f87f594969c8ddde3
Signed-off-by: sunil unnava <su622b@att.com>
5 files changed, 1 insertions, 78 deletions
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 @@ -<archetype> - <id>kafka0111</id> - <sources> - <source>src/main/java/App.java</source> - </sources> - <testSources> - <source>src/test/java/AppTest.java</source> - </testSources> -</archetype> 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 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>$org.onap.dmaap.kafka</groupId> - <artifactId>$kafka0111</artifactId> - <version>$0.0.1-SNAPSHOT</version> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - </dependencies> -</project> 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 ); - } -} |