rm old kafka-pipe experiments

This commit is contained in:
Adam 2021-10-23 23:21:31 +02:00
parent 4c14cc2353
commit 995ea750be
8 changed files with 15 additions and 246 deletions

View file

@ -1,8 +1,6 @@
### Setup notes
Kafka must be connectable from both `localhost` (for cli) and `kafa` (the docker container name).
Kafka must be connectable from both `localhost` (for cli) and `kafa` (the docker container name).
### Useful commands
@ -43,5 +41,12 @@ curl --no-buffer -sS --unix-socket /var/run/docker.sock \
# get logs from Kafka
kafkacat -u -C -b localhost -t factorio-server-log | jq --unbuffered
```
# stream logs, and try trimming first 8 bytes (the header) but it doesn't work
curl \
-sS \
--unix-socket /var/run/docker.sock \
-X POST \
--insecure "http://localhost/v1.41/containers/factorio-server/attach?logs=true&stream=true&stdout=true&follow=true" |
tail -c+9
```