Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
alerman committed Sep 27, 2024
1 parent cd391e3 commit bb6770f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/build-accumulo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ jobs:
export JAVA_HOME=$ACCUMULO_JAVA
cd $GITHUB_WORKSPACE/accumulo
mvn -DaltDeploymentRepository=github-datawave::https://maven.pkg.github.com/NationalSecurityAgency/datawave -V -B -e -ntp "-Dstyle.color=always" -DskipTests -T1C clean deploy -s $GITHUB_WORKSPACE/datawave/.github/workflows/settings.xml
- name: Trigger accumulo image build
if: ${{ ( github.event.inputs.deployAccumulo || 'false' ) == 'true'}}
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.REPOSITORY_ACCESS_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/nationalsecurityagency/datawve-stack-docker-images/dispatches \
-d '{"event_type":"dispatch-event", client_payload: {"accumuloRepo": "${{ github.event.inputs.accumuloRepo || 'apache/accumulo' }}", "accumuloBranch": "${{ github.event.inputs.accumuloBranch || '2.1' }}", "tag": ${{ steps.get-accumulo-version.outputs.accumuloversion }}}}'
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand All @@ -92,11 +102,12 @@ jobs:
export JAVA_HOME=$DATAWAVE_JAVA
cd $GITHUB_WORKSPACE/datawave
mvn -s $GITHUB_WORKSPACE/datawave/.github/workflows/settings.xml versions:set-property -Dproperty=version.accumulo -DnewVersion=${{ steps.get-accumulo-version.outputs.accumuloversion }} -DgenerateBackupPoms=false
- name: Build Web and Ingest Docker Images (Maven)
run: |
export JAVA_HOME=$DATAWAVE_JAVA
cd $GITHUB_WORKSPACE/datawave
mvn -s $GITHUB_WORKSPACE/datawave/.github/workflows/settings.xml clean install -Prpm,kubernetes,assemble,deploy-ws -Ddist -Pdocker -DpushImage -Ddocker-release -DskipTests
mvn -s $GITHUB_WORKSPACE/datawave/.github/workflows/settings.xml clean install -Prpm,kubernetes,assemble,deploy-ws -Ddist -Pdocker -DpushImage -Ddocker-release -DskipTests -Ddocker.image.accumulo.tag=${{ steps.get-accumulo-version.outputs.accumuloversion }}
2 changes: 2 additions & 0 deletions properties/kubernetes.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ RCPT_TO=hadoop@localhost

docker.image.prefix=ghcr.io/nationalsecurityagency/

{docker.image.accumulo.tag=2.1.3

# ingest properties
DATAWAVE_INGEST_HOME=/opt/datawave-ingest/current

Expand Down
2 changes: 1 addition & 1 deletion warehouse/assemble/datawave/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ${docker.image.prefix}datawave-stack-accumulo:2.1.3
FROM ${docker.image.prefix}datawave-stack-accumulo:${docker.image.accumulo.tag}
USER root
COPY --from=${docker.image.prefix}datawave-stack-hadoop:3.3.6 /usr/local/hadoop/ /usr/local/hadoop/

Expand Down

0 comments on commit bb6770f

Please sign in to comment.