Skip to content

Commit 3d0195f

Browse files
committed
logs work, no need for workaround
1 parent 5c9499b commit 3d0195f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

timelock-nts/docker-compose.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,21 @@ services:
33
configs:
44
- source: run.sh
55
target: run.sh
6-
ports:
7-
- "8080:8080"
86
volumes:
97
- /var/run/tappd.sock:/var/run/tappd.sock
108
build:
119
dockerfile_inline: |
1210
FROM ubuntu:22.04
1311
RUN apt-get update
1412
RUN apt install -y curl openssl ntpsec-ntpdate
15-
command: bash -c "bash run.sh | tee -a /root/log.txt"
13+
command: bash run.sh
1614

1715
configs:
1816
run.sh:
1917
content: |
2018
#!/bin/bash
2119
key=$$(openssl genpkey -algorithm Ed25519)
2220
echo "Public Key:"; echo "$$key" | openssl pkey -pubout
23-
24-
# Serve the log file (TODO: dashboard not working?)
25-
(cd /root && python3 -m http.server 8080) &
2621
2722
# Get timestamp from cloudflare and add 5 minutes
2823
get_time() { ntpdate -4q time.cloudflare.com 2>/dev/null | head -1 | cut -d' ' -f1,2 | date +%s -f -; }

0 commit comments

Comments
 (0)