Compare commits

..

3 Commits
k8s ... main

Author SHA1 Message Date
Michael Scalzetti
05dfd7068d it works now :) 2023-11-08 18:58:03 -05:00
Michael Scalzetti
26cf9099ae idk what im doing 2023-11-08 18:47:36 -05:00
John Doe
a29df509b6 changed to be dependant on k8s branch builds, keeps the blog the same between the 2 branches 2023-02-13 18:14:14 -05:00
6 changed files with 13 additions and 58 deletions

View File

@ -1,12 +0,0 @@
FROM rust:latest
RUN cargo install mdbook
RUN apt-get update && apt-get install -y vim git
COPY ./blog /mdbook/
WORKDIR /mdbook
EXPOSE 3000
CMD mdbook serve -n 0.0.0.0

View File

@ -1,25 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: blog-dep
namespace: blog
labels:
app: blog-dep
spec:
replicas: 2
selector:
matchLabels:
app: blog-dep
template:
metadata:
labels:
app: blog-dep
spec:
containers:
- name: mdblog
image: docker.scalz.cloud/blog
ports:
- containerPort: 3000
imagePullSecrets:
- name: registry-credential

View File

@ -1,8 +1,3 @@
# Docker Compose Cheat Sheet
# Dockerfile Cheat Sheet
Coming soon...
In the mean time, check out:
- [devhints cheat sheet](https://devhints.io/docker-compose)
- [The official Docker docs](https://docs.docker.com/compose/compose-file/compose-file-v3/)

View File

@ -1,10 +1,5 @@
# Home
This is my blog, I try to post interesting and helpful stuff on here!
This is my blog, I post intersting stuff on here sometimes I guess.
Check out my different write ups!
[Gitea](https://gitea.scalz.cloud)
[Speedtest](https://speedtest.scalz.cloud)

11
docker-compose.yaml Normal file
View File

@ -0,0 +1,11 @@
services:
mdbook:
image: peaceiris/mdbook
container_name: mdbook
volumes:
- "./blog:/mdbook"
ports:
- 80:3000
restart: always
entrypoint: ['/usr/bin/mdbook', 'serve', '/mdbook', '-n', '0.0.0.0']

View File

@ -1,9 +0,0 @@
#! /bin/sh
# You can use this script to force kubernetes to update to the latest image
# Looking for a better way to do this...
DEPLOYMENT_NAME=blog-dep
kubectl patch deployment $DEPLOYMENT_NAME -p \
'{"spec":{"template":{"spec":{"terminationGracePeriodSeconds":30}}}}' -n blog
kubectl patch deployment $DEPLOYMENT_NAME -p \
'{"spec":{"template":{"spec":{"terminationGracePeriodSeconds":60}}}}' -n blog