Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPSEXP-2734 Add search enterprise path image Dockerfile #2

Merged
merged 6 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ jobs:
- artifact: alfresco-elasticsearch-live-indexing-metadata
version: 4.0.1
name: alfresco-enterprise-search-metadata
path: search/enterprise/metadata
path: search/enterprise/common
classifier: -app.jar
group: org.alfresco
- artifact: alfresco-elasticsearch-live-indexing-path
version: 4.0.1
name: alfresco-enterprise-search-path
path: search/enterprise/common
classifier: -app.jar
group: org.alfresco

Expand Down Expand Up @@ -64,7 +70,7 @@ jobs:
- name: Upload image as a tar for next job
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # 4.3.4
with:
name: images
name: ${{ matrix.images.name }}-${{ github.run_number }}
path: /tmp/${{ matrix.images.name }}.tar

compose:
Expand All @@ -78,8 +84,9 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
with:
name: images
path: /tmp
pattern: "*-${{ github.run_number }}"
merge-multiple: true

- name: Load Docker images
run: |
Expand Down
5 changes: 5 additions & 0 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ services:
environment:
SPRING_ELASTICSEARCH_REST_URIS: http://elastic:9200
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616
live-indexing-path:
image: alfresco-enterprise-search-path:test
environment:
SPRING_ELASTICSEARCH_REST_URIS: http://elasticsearch:9200
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616
volumes:
shared-file-store-volume:
driver_opts:
Expand Down
15 changes: 15 additions & 0 deletions search/enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,18 @@ live-indexing-metadata:

- `SPRING_ELASTICSEARCH_REST_URIS` - Elasticsearch server, by default `http://elasticsearch:9200`
- `SPRING_ACTIVEMQ_BROKERURL` - Alfresco ActiveMQ, by default `nio://activemq:61616`

## path

```yaml

live-indexing-path:
image: alfresco-enterprise-search-path:YOUR-TAG
environment:
SPRING_ELASTICSEARCH_REST_URIS: http://elasticsearch:9200
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616

```

- `SPRING_ELASTICSEARCH_REST_URIS` - Elasticsearch server, by default `http://elasticsearch:9200`
- `SPRING_ACTIVEMQ_BROKERURL` - Alfresco ActiveMQ, by default `nio://activemq:61616`
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM quay.io/alfresco/alfresco-base-java:jre17-rockylinux9
ENV PORT=8080
EXPOSE 8080

ADD search/enterprise/metadata/*-app.jar /opt/app.jar
ADD search/enterprise/common/*-app.jar /opt/app.jar

HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=1m \
CMD curl -f http://localhost:8080/actuator/health || exit 1

COPY search/enterprise/metadata/entrypoint.sh /entrypoint.sh
COPY search/enterprise/common/entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]