Skip to content

Instantly share code, notes, and snippets.

View detournemint's full-sized avatar
📻
On Air

detournemint

📻
On Air
View GitHub Profile
@output = []
@container.start
# sleep 10 # If I put the sleep here, it gives me the output correctly but I don't want to use a sleep.
@container.streaming_logs(stdout: true) { |stream, chunk| @output << chunk }
puts @output
>> ["Cloning https://github.com/RailsApps/learn-rails.git\n"]
Expected Output:
~ docker logs 5be66680bea4
{
"window.zoomLevel": 1,
"files.autoSave": "afterDelay",
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false,
"editor.tabSize": 2,
"files.insertFinalNewline": true
}
echo "Pushing logs to cloudlog"
cd ~/Radio/adifpush/adifpush
dotnet run ~/.local/share/WSJT-X/wsjtx_log.adi
dotnet run ~/.local/share/JS8Call/js8call_log.adi
echo "Logs pushed!"