Releases: gimlet-io/onechart
Releases · gimlet-io/onechart
Release v0.53.0
5db236e Removed empty lines from the yaml output
Release v0.52.0
Release v0.51.0
Preparing for static-site release
Release v0.50.0
Add ignoreLimits flag to container resources (#74)
Release v0.49.0
#73 Add Cronjob's Schedule to the Gimlet Dashboard
Release v0.48.0
#72 Added secret's subPath feature to onechart
Release v0.47.0
#66 Added ServiceMonitor
Release v0.46.0
Ability to build and deploy a static site with #64
Release v0.45.0
added a new chart static-site that build and host static sites. (#64) Co-authored-by: Youcef Guichi <youcef@gimlet.io>
Release v0.44.0
#63 Init-container support
Using init-containers to build and run static websites
The example bellow uses Hugo.
- Uses an init container to setup Hugo, clone the source from git and build the site
- The built site is then copied to a shared volume
- Nginx serves the built site from the volume
helm repo add onechart https://chart.onechart.dev
cat << EOF > hugo.yaml
volumes:
- name: init-hugo
fileName: setup_hugo.sh
path: /hugo.conf
subPath: setup_hugo.sh
fileContent: |
#!/usr/bin/env bash
# Pre-reqs
apt update && apt install -y wget git
# Setting up Hugo
wget https://github.com/gohugoio/hugo/releases/download/v0.111.3/hugo_0.111.3_Linux-64bit.tar.gz &&
tar -xzf hugo_0.111.3_Linux-64bit.tar.gz &&
chmod +x hugo &&
mv hugo /usr/local/bin && cd / &&
# Getting and building Hugo site source
git clone https://github.com/gimlet-io/hugo-site.git &&
cd hugo-site && hugo &&
# Copying the built Hugo site to the shared volume for serving with Nginx
mkdir -p /usr/share/nginx/html && cp -r ./public/. /usr/share/nginx/html
- name: shared-static-files
emptyDir: true
path: /usr/share/nginx/html
initContainers:
- name: setup
image: debian
tag: stable-slim
command: |
cp /hugo.conf/setup_hugo.sh . &&
chmod +x setup_hugo.sh &&
./setup_hugo.sh
image:
repository: nginx
tag: 1.23.3
EOF
helm template my-hugo-site onechart/onechart -f hugo.yaml > manifest.yaml
kubectl apply -f manifest.yaml
kubectl port-forward svc/my-hugo-site 8000:80