Skip to content

Commit

Permalink
[Feat] Uses the bare base
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume committed Sep 27, 2023
1 parent c2b123b commit 418c3dd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vault-rock

A ROCK image for Vault.
A distroless ROCK image for Vault.

## Usage

Expand Down
File renamed without changes.
19 changes: 18 additions & 1 deletion rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: vault
base: ubuntu:22.04
base: bare
build-base: ubuntu:22.04
version: "1.14.3"
summary: A ROCK container image for Vault
Expand All @@ -9,6 +9,12 @@ license: Apache-2.0
platforms:
amd64:

services:
vault:
command: vault server -config=/vault/config/config.hcl
override: replace
startup: enabled

parts:

vault:
Expand All @@ -20,3 +26,14 @@ parts:
- bin/vault
build-snaps:
- go/1.20/stable

default-config:
plugin: dump
source: ./config
organize:
config.hcl: /vault/config/config.hcl

packages:
plugin: nil
stage-packages:
- ca-certificates
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TestVaultRock(unittest.TestCase):
def setUp(self):
"""Starts a Vault container."""
subprocess.check_call(
"docker run -d -p 8200:8200 -v ${PWD}/config:/vault/config --entrypoint /bin/bash vault-rock:test -c 'vault server -config=/vault/config/config.hcl'", # noqa: E501
"docker run -d -p 8200:8200 vault-rock:test ",
shell=True,
)

Expand Down

0 comments on commit 418c3dd

Please sign in to comment.