Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDBF-815 - HashiCorp Vault server #670

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/build-debian-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
- 'dev'
paths:
- 'ci_build_images/debian.Dockerfile'
- 'ci_build_images/hashicorp.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/debian.Dockerfile'
- 'ci_build_images/hashicorp.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian-based.yml
Expand Down Expand Up @@ -44,6 +46,13 @@ jobs:
tag: debian12-386
nogalera: false

- image: debian:12
platforms: linux/386
branch: 10.11
tag: debian12-386-hashicorp
nogalera: false
dockerfile: 'debian.Dockerfile hashicorp.Dockerfile'

- image: debian:sid
platforms: linux/amd64, linux/arm64/v8, linux/ppc64le
branch: 11.4
Expand Down Expand Up @@ -78,7 +87,7 @@ jobs:

uses: ./.github/workflows/bbw_build_container_template.yml
with:
dockerfile: debian.Dockerfile
dockerfile: ${{ matrix.dockerfile || 'debian.Dockerfile' }}
image: ${{ matrix.image }}
platforms: ${{ matrix.platforms }}
tag: ${{ matrix.tag }}
Expand Down
18 changes: 18 additions & 0 deletions ci_build_images/hashicorp.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

# INSTALL HASHICORP VAULT
# USAGE: vault server -dev > /dev/null 2>&1 &

RUN . /etc/os-release \
&& curl -fsSL https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list \
&& apt-get update \
&& apt-get -y install --no-install-recommends vault \
&& setcap cap_ipc_lock=-ep "$(readlink -f "$(which vault)")" \
&& apt-get clean

# VAULT CONFIGURATION
ENV VAULT_DEV_ROOT_TOKEN_ID='MTR'
# MTR CONFIGURATION
ENV VAULT_TOKEN='MTR'
ENV VAULT_ADDR='http://127.0.0.1:8200'