| | |
| | | ports: |
| | | - 5000:5000 |
| | | steps: |
| | | - uses: actions/checkout@v6 |
| | | with: |
| | | sparse-checkout: .github/benchmark |
| | | - name: Download artifacts |
| | | uses: actions/download-artifact@v8 |
| | | with: |
| | |
| | | timeout 3m bash -c 'until docker inspect --format="{{json .State.Health.Status}}" test_custom | grep -q \"healthy\"; do sleep 10; done' |
| | | docker exec test_custom 'sh' '-c' '/opt/opendj/bin/ldapsearch --hostname localhost --port 1636 --bindDN "cn=Directory Manager" --bindPassword custom_password --useSsl --trustAll --baseDN "dc=example,dc=com" --searchScope base "(objectClass=*)" 1.1' |
| | | docker kill test_custom |
| | | - name: Cache JMeter |
| | | uses: actions/cache@v5 |
| | | with: |
| | | path: ~/jmeter |
| | | key: jmeter-5.6.3 |
| | | - name: Benchmark Build vs Release |
| | | shell: bash |
| | | run: | |
| | | THREADS=200 DURATION=150 bash .github/benchmark/compare-opendj.sh \ |
| | | "Build" localhost:5000/${GITHUB_REPOSITORY,,}:${{ env.release_version }} \ |
| | | "Release" openidentityplatform/opendj:latest |
| | | |
| | | build-docker-alpine: |
| | | needs: build-maven |
| | |
| | | ports: |
| | | - 5000:5000 |
| | | steps: |
| | | - uses: actions/checkout@v6 |
| | | with: |
| | | sparse-checkout: .github/benchmark |
| | | - name: Download artifacts |
| | | uses: actions/download-artifact@v8 |
| | | with: |
| | |
| | | timeout 3m bash -c 'until docker inspect --format="{{json .State.Health.Status}}" test_custom | grep -q \"healthy\"; do sleep 10; done' |
| | | docker exec test_custom 'sh' '-c' '/opt/opendj/bin/ldapsearch --hostname localhost --port 1636 --bindDN "cn=Directory Manager" --bindPassword custom_password --useSsl --trustAll --baseDN "dc=example,dc=com" --searchScope base "(objectClass=*)" 1.1' |
| | | docker kill test_custom |
| | | - name: Cache JMeter |
| | | uses: actions/cache@v5 |
| | | with: |
| | | path: ~/jmeter |
| | | key: jmeter-5.6.3 |
| | | - name: Benchmark Build-alpine vs Release-alpine |
| | | shell: bash |
| | | run: | |
| | | THREADS=200 DURATION=150 bash .github/benchmark/compare-opendj.sh \ |
| | | "Build-alpine" localhost:5000/${GITHUB_REPOSITORY,,}:${{ env.release_version }}-alpine \ |
| | | "Release-alpine" openidentityplatform/opendj:alpine |