Skip to content

Commit

Permalink
Set up roster on startup for now
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 2, 2024
1 parent 9f88981 commit a2e8027
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
9 changes: 9 additions & 0 deletions .github/actions/run-ee-server/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ runs:
container-name: ${{ env.CONTAINER_NAME }}
is-security-enabled: ${{ inputs.feature-to-enable == 'security' }}

# TODO: way to get namespace programmatically?
- run: docker exec ${{ env.CONTAINER_NAME }} asadm --enable --execute "manage roster stage observed ns test"
if: ${{ inputs.feature-to-enable == 'strong-consistency' }}
shell: bash

- run: docker exec ${{ env.CONTAINER_NAME }} asadm --enable --execute "manage recluster"
if: ${{ inputs.feature-to-enable == 'strong-consistency' }}
shell: bash

# For debugging
- run: docker logs aerospike
shell: bash
2 changes: 0 additions & 2 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ COPY security.smd /opt/aerospike/smd/

FROM $image AS strong-consistency
RUN sed -i "s/\(namespace.*{\)/\1\n\tstrong-consistency true/" /etc/aerospike/aerospike.template.conf
RUN sed -i "s/\(^service {\)/\1\n\tnode-id a1/" /etc/aerospike/aerospike.template.conf
COPY roster.smd /opt/aerospike/smd/

# Choose which stage to use
FROM $feature_to_enable
12 changes: 0 additions & 12 deletions .github/workflows/roster.smd

This file was deleted.

0 comments on commit a2e8027

Please sign in to comment.