Skip to content

Commit

Permalink
added presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-besch committed Feb 13, 2024
1 parent c13f0fd commit a5a1740
Show file tree
Hide file tree
Showing 14,267 changed files with 57,357 additions and 3,417,071 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
47 changes: 0 additions & 47 deletions .github/workflows/ci.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions .gitignore

This file was deleted.

7 changes: 7 additions & 0 deletions 2024_02_09_ibm_docker_logdna/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# IBM Logo Animation Commands
`ffmpeg -i \ 02VID-02_OUTRO_White_BG_01-2021\ \[1x1\]\ Keyboard\ SFX.mp4 -ss 00:00:07.25 -to 00:00:08.5 -c:v libx264 out.mp4`
`ffmpeg -i out.mp4 -filter:v "crop=720:290:730:810" out_cropped.mp4`
`ffmpeg -i out_cropped.mp4 -vf colorkey=white:0.3:0.5 out_cropped_transparent.mp4`
`ffmpeg -i out_cropped_transparent.mp4 -c:v libvpx-vp9 out_cropped_transparent.webm`
`ffmpeg -i out_cropped_transparent.webm -vf colorkey=white:1.0:0.0 out_cropped_transparent_again.webm`

Binary file added 2024_02_09_ibm_docker_logdna/apollo11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2024_02_09_ibm_docker_logdna/background_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2024_02_09_ibm_docker_logdna/background_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2024_02_09_ibm_docker_logdna/background_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2024_02_09_ibm_docker_logdna/background_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions 2024_02_09_ibm_docker_logdna/dind_test_driver.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const CONTAINER_AMOUNT: usize = 20;
const LINES_PER_SEC: f64 = 500.0;
const LINES_AMOUNT: usize = 10000;
const MAX_SLOW_STREAK: u64 = 0;
const CHAR_MIN: u8 = ' ' as u8;
const CHAR_MAX: u8 = '~' as u8 + 1;
const STR_LEN_MIN: usize = 40;
const STR_LEN_MAX: usize = 100;
const INGESTER_DELAY: u64 = 0;
const SERVER_TIMEOUT: u64 = 120000;
14 changes: 14 additions & 0 deletions 2024_02_09_ibm_docker_logdna/docker-compose-end-to-end.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
dind:
image: docker:dind
privileged: true
# [...]
test_client:
image: docker:latest
volumes:
- .:/app_origin:ro
- ./plugin/config.json:/plugin/config.json:ro
entrypoint: ["/app_origin/test_client_entrypoint.sh"]
depends_on:
- dind
# [...]
13 changes: 13 additions & 0 deletions 2024_02_09_ibm_docker_logdna/docker-compose-testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3"
services:
app:
image: hello-world
logging:
driver: logdna:YOUR_LOGDNA_VERSION # TODO
options:
logdna_host: logs.private.eu-de.logging.cloud.ibm.com
api_key: YOUR_API_KEY # TODO
# set this to true when using
# the mocking logdna server for testing purposes
# disables HTTPS and changes the endpoint
for_mock_server: true
9 changes: 9 additions & 0 deletions 2024_02_09_ibm_docker_logdna/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3"
services:
app:
image: hello-world
logging:
driver: logdna:YOUR_LOGDNA_VERSION # TODO
options:
logdna_host: logs.private.eu-de.logging.cloud.ibm.com
api_key: YOUR_API_KEY # TODO
Binary file added 2024_02_09_ibm_docker_logdna/docker_logdna.odg
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions 2024_02_09_ibm_docker_logdna/future.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// called from http handler
async fn start_logging(/* [...] */) {
// create new future
rt.spawn(consume_log(params));
// fire-and-forget: ready to handle next request
}

async fn consume_log(/* [...] */) {
// condition for executing future: opened file
File::open(&path).await;
// do something with opened file
}
14 changes: 14 additions & 0 deletions 2024_02_09_ibm_docker_logdna/get_config_no_cfg_test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#[tokio::test]
async fn get_config_no_cfg_test() {
let start_request: StartRequest = from_str(r#"
[...]
"ContainerArgs": [],
"ContainerImageID": "sha256:c31f6[...]",
"ContainerImageName": "debian",
"ContainerCreated": "2023-10-02T06:16:25.299394139Z",
[...]
"#).unwrap();
let expected_cfg = Err(
"The logdna logging driver needs a config.".to_string());
assert_eq!(get_config(&start_request).await, expected_cfg);
}
Binary file added 2024_02_09_ibm_docker_logdna/green_ok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2024_02_09_ibm_docker_logdna/ibm_logo.mp4
Binary file not shown.
Binary file added 2024_02_09_ibm_docker_logdna/ibm_logo.webm
Binary file not shown.
Loading

0 comments on commit a5a1740

Please sign in to comment.