Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
b2df8f5895 | ||
|
43535c3e2c | ||
|
635276f04a | ||
4fda5c188a | |||
419712115a |
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
|
25
blog-deploy.yaml
Normal file
25
blog-deploy.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
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
|
||||
|
@ -1,3 +1,8 @@
|
||||
# Dockerfile Cheat Sheet
|
||||
# Docker Compose 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/)
|
||||
|
@ -1,5 +1,10 @@
|
||||
# Home
|
||||
|
||||
This is my blog, I post intersting stuff on here sometimes I guess.
|
||||
This is my blog, I try to post interesting and helpful stuff on here!
|
||||
|
||||
Check out my different write ups!
|
||||
|
||||
|
||||
[Gitea](https://gitea.scalz.cloud)
|
||||
|
||||
[Speedtest](https://speedtest.scalz.cloud)
|
||||
|
@ -1,11 +0,0 @@
|
||||
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']
|
||||
|
9
force_update.sh
Executable file
9
force_update.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#! /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
|
Loading…
Reference in New Issue
Block a user