Skip to content

Commit 3b792d2

Browse files
authored
#2353 Archetypes: include docker-compose.yml (#2364)
* #2353 Archetypes: include docker-compose.yml * Skip Velocity filtering for docker-compose.yml Signed-off-by: Davide Polato <dpol1@apache.org> --------- Signed-off-by: Davide Polato <dpol1@apache.org>
1 parent 08834d5 commit 3b792d2

6 files changed

Lines changed: 23 additions & 2 deletions

File tree

‎archetype/src/main/resources/META-INF/maven/archetype-metadata.xml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,11 @@ under the License.
5555
<include>README.md</include>
5656
</includes>
5757
</fileSet>
58+
<fileSet filtered="false" encoding="UTF-8">
59+
<directory></directory>
60+
<includes>
61+
<include>docker-compose.yml</include>
62+
</includes>
63+
</fileSet>
5864
</fileSets>
5965
</archetype-descriptor>

‎archetype/src/main/resources/archetype-resources/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Have a look at the code and resources and modify them to your heart's content.
33

44
# Prerequisites
55

6+
<!-- #[[ -->
67
## Native
78

89
You need to install Apache Storm. The instructions on [setting up a Storm cluster](https://storm.apache.org/releases/3.2.0/Setting-up-a-Storm-cluster.html) should help.
@@ -14,8 +15,9 @@ docker run --rm --name frontier -p 7071:7071 crawlercommons/url-frontier
1415
```
1516

1617
## Docker Compose
18+
<!-- ]]# -->
1719

18-
We provide a simple `docker-compose.yaml` file to launch URLFrontier, Zookeeper, Storm Nimbus, Storm Supervisor, and the Storm UI.
20+
We provide a simple `docker-compose.yml` file to launch URLFrontier, Zookeeper, Storm Nimbus, Storm Supervisor, and the Storm UI.
1921
You may need to update `crawler-conf.yaml` to reference the URLFrontier host configuration (Docker container name).
2022

2123
# Compilation

‎external/opensearch/archetype/src/main/resources/META-INF/maven/archetype-metadata.xml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ under the License.
6767
<include>*.ndjson</include>
6868
</includes>
6969
</fileSet>
70+
<fileSet filtered="false" encoding="UTF-8">
71+
<directory></directory>
72+
<includes>
73+
<include>docker-compose.yml</include>
74+
</includes>
75+
</fileSet>
7076
</fileSets>
7177

7278
</archetype-descriptor>

‎external/opensearch/archetype/src/main/resources/archetype-resources/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ Have a look at the code and resources and modify them to your heart's content.
33

44
# Prerequisites
55

6+
<!-- #[[ -->
67
## Native
78
You need to have Apache Storm installed, as well as a running instance of OpenSearch.
89

910
## Docker Compose
11+
<!-- ]]# -->
1012

11-
We provide a simple `docker-compose.yaml` file to launch OpenSearch, Zookeeper, Storm Nimbus, Storm Supervisor, and the Storm UI.
13+
We provide a simple `docker-compose.yml` file to launch OpenSearch, Zookeeper, Storm Nimbus, Storm Supervisor, and the Storm UI.
1214
You may need to update `opensearch-conf.yaml` to reference the OpenSearch host configuration (Docker container name).
1315

1416
# Compilation

‎external/opensearch/archetype/src/main/resources/archetype-resources/docker-compose.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,6 @@ services:
8989
environment:
9090
- 'OPENSEARCH_HOSTS=["http://opensearch-sc:9200"]'
9191
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true" # disables security dashboards plugin in OpenSearch Dashboards
92+
93+
volumes:
94+
opensearch-sc-data:

‎external/solr/archetype/src/main/resources/archetype-resources/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Have a look at the code and resources and modify them to your heart's content.
33

44
You need to have Apache Storm (3.2.0) installed, as well as a running instance of Apache Solr (10.1.0).
55

6+
<!-- #[[ -->
67
## Generated resources
78

89
### Flux topologies
@@ -126,6 +127,7 @@ mvn clean package
126127
```
127128

128129
## Running a topology
130+
<!-- ]]# -->
129131

130132
The first step consists of creating a file _seeds.txt_ in the current directory and populating it with the URLs
131133
to be used as a starting point for the crawl, e.g.

0 commit comments

Comments
 (0)