Skip to content

Commit

Permalink
chore(script): add local installation example scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Grraahaam committed Mar 16, 2023
1 parent 164da9d commit fc41be9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 11 deletions.
3 changes: 2 additions & 1 deletion helm-charts/infisical/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
charts/
node_modules/
package*.json
package*.json
*.bak
35 changes: 35 additions & 0 deletions helm-charts/infisical/examples/local-helm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash

## Infisical local k8s development environment setup script
## using 'helm' and assume you already have a cluster and an ingress (nginx)
##

##
## DEVELOPMENT USE ONLY
## DO NOT USE IN PRODUCTION
##

# define variables
cluster_name=infisical
host=infisical.local

# install infisical (local development)
helm dep update
cat <<EOF | helm upgrade --install --atomic \
-n infisical-dev --create-namespace \
-f - \
infisical-dev .
mailhog:
enabled: true
backendEnvironmentVariables:
SITE_URL: https://$host
SMTP_FROM_ADDRESS: dev@$host
SMTP_FROM_NAME: Local Infisical
SMTP_HOST: mailhog
SMTP_PASSWORD: ""
SMTP_PORT: 1025
SMTP_SECURE: false
SMTP_USERNAME: dev@$host
frontendEnvironmentVariables:
SITE_URL: https://$host
EOF
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@ cat <<EOF | helm upgrade --install --atomic \
-n infisical-dev --create-namespace \
-f - \
infisical-dev .
frontend:
enabled: true
image:
pullPolicy: Always
backend:
enabled: true
image:
pullPolicy: Always
mongodb:
enabled: true
mailhog:
enabled: true
backendEnvironmentVariables:
Expand Down

0 comments on commit fc41be9

Please sign in to comment.