Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
05dfd7068d | ||
|
26cf9099ae | ||
|
a29df509b6 |
12
Dockerfile
12
Dockerfile
@ -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
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,8 +1,3 @@
|
|||||||
# Docker Compose Cheat Sheet
|
# Dockerfile Cheat Sheet
|
||||||
|
|
||||||
Coming soon...
|
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,10 +1,5 @@
|
|||||||
# Home
|
# 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!
|
Check out my different write ups!
|
||||||
|
|
||||||
|
|
||||||
[Gitea](https://gitea.scalz.cloud)
|
|
||||||
|
|
||||||
[Speedtest](https://speedtest.scalz.cloud)
|
|
||||||
|
11
docker-compose.yaml
Normal file
11
docker-compose.yaml
Normal 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']
|
||||||
|
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user