https://github.com/mermaid-js/mermaid-live-editor
10K+
Dockerfile: https://github.com/mermaid-js/mermaid-live-editor/blob/master/Dockerfile
See: https://carlosedp.medium.com/cross-building-arm64-images-on-docker-desktop-254d1e0bc1f9
docker buildx ls
docker buildx create --name newbuilder
docker buildx use newbuilder
docker buildx inspect --bootstrap
git clone https://github.com/mermaid-js/mermaid-live-editor.git
cd mermaid-live-editor
# docker buildx build --platform linux/arm64,linux/amd64,linux/arm/v7 --push -t johnsinclair73/mermaid-live-editor:8.14.0 .
# linux/arm/v7 currently fails with:
#30 154.2 [FAILED] URL: https://download.cypress.io/desktop/8.0.0?platform=linux&arch=ia32
#30 154.2 [FAILED] Error: Failed downloading the Cypress binary.
#30 154.2 [FAILED] Response code: 404
#30 154.2 [FAILED] Response message: Not Found
docker buildx build --platform linux/arm64,linux/amd64 --push -t johnsinclair73/mermaid-live-editor:8.14.0 .
docker run --name mermaid-live-editor --publish 8080:80 johnsinclair73/mermaid-live-editor:8.14.0
version: "2.0"
services:
mermaid:
image: johnsinclair73/mermaid-live-editor:8.14.0
container_name: mermaid-live-editor
restart: unless-stopped
ports:
- "8280:80"
apiVersion: v1
kind: Namespace
metadata:
name: mermaid
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mermaid
namespace: mermaid
spec:
replicas: 1
selector:
matchLabels:
app: mermaid
template:
metadata:
labels:
app: mermaid
spec:
containers:
- name: mermaid
image: johnsinclair73/mermaid-live-editor:8.14.0
ports:
- containerPort: 80
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: mermaid
namespace: mermaid
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: mermaid
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: mermaid
namespace: mermaid
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
rules:
- host: <yourdns>
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: mermaid
port:
number: 80
Content type
Image
Digest
sha256:b4506c503…
Size
10 MB
Last updated
almost 4 years ago
docker pull johnsinclair73/mermaid-live-editor:9.1.7