Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Jul 22, 2024
1 parent 3dc8635 commit a1fbe6e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
6 changes: 3 additions & 3 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ target "repository" {

target "search_liveindexing" {
matrix = {
liveindexing = ["metadata", "path", "aio"]
liveindexing = ["alfresco-elasticsearch-live-indexing-metadata", "alfresco-elasticsearch-live-indexing-path", "alfresco-elasticsearch-live-indexing"]
}
name = "search_liveindexing-${liveindexing}"
name = "${liveindexing}"
args = {
LIVEINDEXING = "${liveindexing}"
}
Expand All @@ -170,6 +170,6 @@ target "search_liveindexing" {
"org.opencontainers.image.title" = "${PRODUCT_LINE} Enterprise Search - ${liveindexing}"
"org.opencontainers.image.description" = "${PRODUCT_LINE} Enterprise Search - ${liveindexing} live indexing"
}
tags = ["alfresco-elasticsearch-live-indexing-${liveindexing}:latest"]
tags = ["${liveindexing}:latest"]
output = ["type=docker"]
}
3 changes: 1 addition & 2 deletions repository/artifacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"version": "23.2.2",
"path": "repository",
"classifier": ".zip",
"group": "org.alfresco",
"name_addon": ""
"group": "org.alfresco"
}
]
}
Expand Down
3 changes: 1 addition & 2 deletions scripts/fetch-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ for i in $(find . -name artifacts.json -mindepth 2); do
ARTIFACT_EXT=$(jq -r ".artifacts.acs${INDEX_KEY}[$j].classifier" $i)
ARTIFACT_GROUP=$(jq -r ".artifacts.acs${INDEX_KEY}[$j].group" $i)
ARTIFACT_PATH=$(jq -r ".artifacts.acs${INDEX_KEY}[$j].path" $i)
ARRIFACT_NAME_ADDON=$(jq -r ".artifacts.acs${INDEX_KEY}[$j].name_addon" $i)
echo "Downloading $ARTIFACT_GROUP:$ARTIFACT_NAME $ARTIFACT_VERSION from $ARTIFACT_BASEURL"
wget "${ARTIFACT_BASEURL}/${ARTIFACT_GROUP/\./\/}/${ARTIFACT_NAME}/${ARTIFACT_VERSION}/${ARTIFACT_NAME}-${ARTIFACT_VERSION}${ARTIFACT_EXT}" \
-O ${ARTIFACT_PATH}/${ARTIFACT_NAME}${ARRIFACT_NAME_ADDON}-${ARTIFACT_VERSION}${ARTIFACT_EXT}
-O ${ARTIFACT_PATH}/${ARTIFACT_NAME}-${ARTIFACT_VERSION}${ARTIFACT_EXT}
done
done
2 changes: 1 addition & 1 deletion search/enterprise/common/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG LIVEINDEXING
ENV PORT=8080
EXPOSE 8080

ADD search/enterprise/common/*${LIVEINDEXING}*-app.jar /opt/app.jar
ADD search/enterprise/common/${LIVEINDEXING}*-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
Expand Down
9 changes: 3 additions & 6 deletions search/enterprise/common/artifacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,21 @@
"version": "4.0.1",
"path": "search/enterprise/common",
"classifier": "-app.jar",
"group": "org.alfresco",
"name_addon": ""
"group": "org.alfresco"
},
{
"name": "alfresco-elasticsearch-live-indexing-path",
"version": "4.0.1",
"path": "search/enterprise/common",
"classifier": "-app.jar",
"group": "org.alfresco",
"name_addon": ""
"group": "org.alfresco"
},
{
"name": "alfresco-elasticsearch-live-indexing",
"version": "4.0.1",
"path": "search/enterprise/common",
"classifier": "-app.jar",
"group": "org.alfresco",
"name_addon": "-aio"
"group": "org.alfresco"
}
]
}
Expand Down

0 comments on commit a1fbe6e

Please sign in to comment.