-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·35 lines (28 loc) · 1.08 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
# Build the image first with `podman build -t jwt-generator ./jwt`
podman run --rm -v jwt-volume:/app/jwttoken jwt-generator
mkdir -p ~/.config/systemd/user
cp container-* ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable container-rootless-cni-infra
systemctl --user enable container-lighthouse
systemctl --user enable container-reth
systemctl --user start container-rootless-cni-infra
systemctl --user start container-lighthouse
systemctl --user start container-reth
# echo 'Starting Prometheus...'
# podman run \
# -v ./prometheus/:/etc/prometheus/ \
# -v prometheusdata:/prometheus \
# -p 9090:9090 \
# -name prometheus \
# prom/prometheus \
# --config.file=/etc/prometheus/prometheus.yml \
# --storage.tsdb.path=/prometheus
# echo 'Starting Grafana...'
# podman run \
# -p 3000:3000 \
# -e PROMETHEUS_URL=http://prometheus:9090 \
# -v grafanadata:/var/lib/grafana \
# -v ./grafana/datasources:/etc/grafana/provisioning/datasources \
# -v ./grafana/dashboards:/etc/grafana/provisioning_temp/dashboards \