-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c13f0fd
commit a5a1740
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.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` | ||
|
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
2024_02_09_ibm_docker_logdna/docker-compose-end-to-end.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
# [...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.