Skip to content

Commit

Permalink
Update acceptance-tests.yml
Browse files Browse the repository at this point in the history
Add Bao Docker container
  • Loading branch information
alexhung authored Aug 2, 2024
1 parent 8878324 commit 2aca0ea
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,19 @@ jobs:
echo $BAO_VERSION
echo "version=$BAO_VERSION" >> "$GITHUB_OUTPUT"
- name: Run Vault Dev server
if: ${{ matrix.cli == 'bao' }}
run: |
docker run --cap-add=IPC_LOCK -e 'VAULT_LOCAL_CONFIG={"storage": {"file": {"path": "/vault/file"}}}' -d --name=dev-vault -p 8200:8200 hashicorp/vault server
docker run --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=root' -d --rm --name=dev-vault -p 8200:8200 hashicorp/vault
export VAULT_SERVER_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.Gateway}}{{end}}' dev-vault)
echo "VAULT_ADDR=http://$VAULT_SERVER_IP:8200" >> "$GITHUB_ENV"
echo "VAULT_TOKEN=root" >> "$GITHUB_ENV"
- name: Run Bao Dev server
if: ${{ matrix.cli == 'bao' }}
run: |
docker run --cap-add=IPC_LOCK -d --rm --name=dev-bao -p 8200:8200 quay.io/openbao/openbao server -dev -dev-root-token-id="root"
export VAULT_SERVER_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.Gateway}}{{end}}' dev-bao)
echo "VAULT_ADDR=http://$VAULT_SERVER_IP:8200" >> "$GITHUB_ENV"
echo "VAULT_TOKEN=root" >> "$GITHUB_ENV"
- name: Create Artifactory data directories and copy data
env:
ARTIFACTORY_LICENSE: ${{ secrets.ARTIFACTORY_LICENSE }}
Expand Down

0 comments on commit 2aca0ea

Please sign in to comment.