feat: add custom entrypoint script for additional Ruby gems (#63)
Add support for installing additional Ruby gems via custom entrypoint script. The script is mounted as a ConfigMap into /container-custom-entrypoint.d/ and will be executed during Puppetserver container startup. Reviewed-on: #63
This commit was merged in pull request #63.
This commit is contained in:
@@ -99,6 +99,9 @@ spec:
|
||||
- mountPath: /opt/vault-ca-cert.crt
|
||||
name: vault-ca-cert
|
||||
subPath: ca.crt
|
||||
- mountPath: /container-custom-entrypoint.d/additional-ruby-gems.sh
|
||||
name: additional-ruby-gems
|
||||
subPath: additional-ruby-gems.sh
|
||||
initContainers:
|
||||
- name: copy-configmaps
|
||||
image: busybox:1.35
|
||||
@@ -235,5 +238,9 @@ spec:
|
||||
- name: vault-ca-cert
|
||||
secret:
|
||||
secretName: vault-ca-cert
|
||||
- name: additional-ruby-gems
|
||||
configMap:
|
||||
name: additional-ruby-gems
|
||||
defaultMode: 0755
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
|
||||
@@ -54,3 +54,8 @@ configMapGenerator:
|
||||
- resources/cobbler-enc
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
- name: additional-ruby-gems
|
||||
files:
|
||||
- resources/additional-ruby-gems.sh
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Installing additional Ruby gems..."
|
||||
/opt/puppetlabs/puppet/bin/gem install toml
|
||||
echo "Additional Ruby gems installed successfully"
|
||||
Reference in New Issue
Block a user