mirror of https://github.com/tstack/lnav
parent
4b307b5b4f
commit
220317eb16
@ -0,0 +1,36 @@
|
||||
|
||||
FROM debian:11.3-slim
|
||||
|
||||
RUN set -eux; \
|
||||
export DEBIAN_FRONTEND=noninteractive; \
|
||||
apt update; \
|
||||
apt install --yes --no-install-recommends bind9-dnsutils iputils-ping iproute2 curl ca-certificates htop wget unzip openssh-server; \
|
||||
apt clean autoclean; \
|
||||
apt autoremove --yes; \
|
||||
wget https://github.com/tstack/lnav/releases/download/v0.11.0-beta2/lnav-0.11.0-musl-64bit.zip; \
|
||||
unzip lnav-0.11.0-musl-64bit.zip; \
|
||||
rm -rf /var/lib/{apt,dpkg,cache,log}/; \
|
||||
echo "Installed base utils!"
|
||||
|
||||
COPY docs/tutorials tutorials
|
||||
|
||||
RUN useradd -rm -d /home/logs -s /bin/bash logs
|
||||
RUN echo 'logs:logs' | chpasswd
|
||||
RUN passwd -d logs
|
||||
|
||||
RUN useradd -rm -d /home/tutorial1 -s /bin/bash tutorial1
|
||||
RUN echo 'tutorial1:tutorial1' | chpasswd
|
||||
RUN passwd -d tutorial1
|
||||
|
||||
USER tutorial1
|
||||
RUN /lnav-0.11.0/lnav -nN -c ":config /ui/theme monocai"
|
||||
|
||||
USER root
|
||||
|
||||
RUN echo 'ForceCommand env LNAVSECURE=1 TERM=xterm-256color /lnav-0.11.0/lnav -c ":switch-to-view text" -I /tutorials/tutorial-lib /tutorials/tutorial1/tutorial1.glog /tutorials/tutorial1/index.md#tutorial-1' >> /etc/ssh/sshd_config
|
||||
RUN echo 'PermitEmptyPasswords yes' >> /etc/ssh/sshd_config
|
||||
RUN cat /etc/ssh/sshd_config
|
||||
RUN service ssh start
|
||||
EXPOSE 22
|
||||
|
||||
CMD ["/usr/sbin/sshd", "-D"]
|
@ -0,0 +1,35 @@
|
||||
# fly.toml file generated for lnav-demo on 2022-08-22T10:26:28-07:00
|
||||
|
||||
app = "lnav-demo"
|
||||
kill_signal = "SIGINT"
|
||||
kill_timeout = 5
|
||||
processes = []
|
||||
|
||||
[env]
|
||||
|
||||
[experimental]
|
||||
allowed_public_ports = []
|
||||
auto_rollback = true
|
||||
|
||||
[[services]]
|
||||
http_checks = []
|
||||
internal_port = 22
|
||||
processes = ["app"]
|
||||
protocol = "tcp"
|
||||
script_checks = []
|
||||
[services.concurrency]
|
||||
hard_limit = 25
|
||||
soft_limit = 20
|
||||
type = "connections"
|
||||
|
||||
[[services.ports]]
|
||||
port = 22
|
||||
|
||||
[[services.tcp_checks]]
|
||||
grace_period = "1s"
|
||||
interval = "15s"
|
||||
restart_limit = 0
|
||||
timeout = "2s"
|
||||
|
||||
[build]
|
||||
image = "lnav-demo"
|
Loading…
Reference in New Issue