1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-06-10 00:36:16 +02:00
Commit Graph

1398 Commits

Author SHA1 Message Date
dependabot[bot] 6748fa2c3e
Bump futures from 0.3.17 to 0.3.18
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18)

---
updated-dependencies:
- dependency-name: futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 08:26:26 +00:00
utam0k 78e26c111b
Merge pull request #491 from containers/dependabot/cargo/crc32fast-1.2.2
Bump crc32fast from 1.2.1 to 1.2.2
2021-11-24 17:23:27 +09:00
utam0k 341b3caf32
Merge pull request #493 from containers/dependabot/cargo/futures-channel-0.3.18
Bump futures-channel from 0.3.17 to 0.3.18
2021-11-24 17:17:59 +09:00
utam0k 909d77eb85
Merge pull request #490 from containers/dependabot/cargo/futures-core-0.3.18
Bump futures-core from 0.3.17 to 0.3.18
2021-11-24 17:17:39 +09:00
utam0k 829e58987b
Merge pull request #489 from containers/dependabot/cargo/futures-io-0.3.18
Bump futures-io from 0.3.17 to 0.3.18
2021-11-24 17:17:22 +09:00
David Gibson d9233e2411 Use /tmp/youki-<uid> rather than /tmp/youki/<uid> in determine_root_path
determine_root_path goes through various options to find a state storage
location, the last of which is /tmp/youki/<uid>.

If a user (say, UID 1000) uses youki, and this final option is selected,
/tmp/youki will be created as well as /tmp/youki/1000.  Both will be
created owned by UID 1000 and with write permissions only for that user.

Them, if another user (say, UID 1001) attempts to use youki and the same
final option is selected, it will fail, because it cannot create
/tmp/youki/1001 under the /tmp/youki owned by UID 1000.

There's really no way to safely create a multi-user shared subdirectory in
/tmp, so instead we should create our per-user directory directly under
/tmp.  We do this by calling it /tmp/youki-<uid> instead.

fixes #496

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-11-24 14:21:54 +11:00
dependabot[bot] 9b81aa625f
Bump futures-channel from 0.3.17 to 0.3.18
Bumps [futures-channel](https://github.com/rust-lang/futures-rs) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18)

---
updated-dependencies:
- dependency-name: futures-channel
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 00:46:30 +00:00
dependabot[bot] d55771a4bc
Bump crc32fast from 1.2.1 to 1.2.2
Bumps [crc32fast](https://github.com/srijs/rust-crc32fast) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/srijs/rust-crc32fast/releases)
- [Commits](https://github.com/srijs/rust-crc32fast/compare/v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: crc32fast
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 00:46:10 +00:00
dependabot[bot] 24e8e87ac6
Bump futures-core from 0.3.17 to 0.3.18
Bumps [futures-core](https://github.com/rust-lang/futures-rs) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18)

---
updated-dependencies:
- dependency-name: futures-core
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 00:46:05 +00:00
dependabot[bot] b301d778ee
Bump futures-io from 0.3.17 to 0.3.18
Bumps [futures-io](https://github.com/rust-lang/futures-rs) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18)

---
updated-dependencies:
- dependency-name: futures-io
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 00:45:59 +00:00
Thomas Schubart 580f878273
Merge pull request #488 from dgibson/runtime-subdir
Create a subdirectory under XDG_RUNTIME_DIR
2021-11-23 13:20:20 +01:00
David Gibson 6a496886a8 Create a subdirectory under XDG_RUNTIME_DIR
When using a root state directory from $XDG_RUNTIME_DIR, or from it's
default value of /run/user/<uid>, we don't add a tag specific to youki
to the path.  That means the directories for individual containers
will be placed directly in the general use runtime dir.

That's against normal conventions, and could mean that "youki list"
will see files or directories from other software as if they were
youki managed containers.  Therefore, add "youki" to the base runtime
path from XDG.

fixes #487

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-11-23 15:43:14 +11:00
utam0k e766310a89
Merge pull request #486 from containers/dependabot/cargo/anyhow-1.0.48
Bump anyhow from 1.0.47 to 1.0.48
2021-11-23 09:43:59 +09:00
dependabot[bot] 9d86ea0beb
Bump anyhow from 1.0.47 to 1.0.48
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.47 to 1.0.48.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.47...1.0.48)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 00:38:12 +00:00
utam0k 82b9051e24
Merge pull request #484 from containers/dependabot/cargo/libc-0.2.108
Bump libc from 0.2.107 to 0.2.108
2021-11-22 10:58:12 +09:00
utam0k 3e5bf7d286
Merge pull request #485 from containers/dependabot/cargo/anyhow-1.0.47
Bump anyhow from 1.0.45 to 1.0.47
2021-11-22 10:57:45 +09:00
dependabot[bot] bda6f5fd6f
Bump anyhow from 1.0.45 to 1.0.47
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.45 to 1.0.47.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.45...1.0.47)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 01:09:14 +00:00
dependabot[bot] 0dd9bb1156
Bump libc from 0.2.107 to 0.2.108
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.107 to 0.2.108.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.107...0.2.108)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 01:09:08 +00:00
tommady 494276febe
Merge pull request #483 from utam0k/improvement/benchmark-command
use a command instead of label to run benchmark.
2021-11-21 10:50:34 +08:00
utam0k a2b92abfb7 use a command instead of label to run benchmark. 2021-11-21 10:50:31 +09:00
Thomas Schubart 565d1ce736
Merge pull request #479 from Furisto/systemd-part2
Systemd support for memory and unified restrictions
2021-11-19 18:52:05 +01:00
Furisto 53d7313ab0 Cleanup 2021-11-19 16:49:17 +01:00
YJDoc2 3255e92482
Merge pull request #447 from utam0k/feature/config
Add youki specific config to avoid parsing extra info which is not needed
2021-11-19 20:08:46 +05:30
utam0k 193f30443b
Merge branch 'main' of ssh://github.com/containers/youki into feature/config 2021-11-18 14:12:44 +09:00
utam0k 5d461f1b79
rename the config file from yconfig to youki_config. 2021-11-18 14:08:56 +09:00
utam0k 2120d33b80
Merge pull request #480 from containers/dependabot/cargo/serde_json-1.0.71
Bump serde_json from 1.0.70 to 1.0.71
2021-11-18 11:18:58 +09:00
dependabot[bot] a448179c78
Bump serde_json from 1.0.70 to 1.0.71
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.70...v1.0.71)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 00:51:51 +00:00
Furisto be6471496e Simplify tests 2021-11-17 23:59:44 +01:00
Furisto ac01da8b60 Handle unlimited memory & fix cpu calculation 2021-11-17 23:20:38 +01:00
Furisto bd97c153d1 Tests for systemd unified controller 2021-11-17 23:20:38 +01:00
Furisto 76bcc3cdc2 Implement systemd unified controller 2021-11-17 23:20:38 +01:00
Furisto 2181e2a896 Tests for systemd memory controller 2021-11-17 23:20:38 +01:00
Furisto ca77bb8579 Implement systemd memory controller 2021-11-17 23:20:38 +01:00
unknowndevQwQ acf6e31176
Add debug flag (#465) 2021-11-17 20:35:59 +01:00
utam0k ef8770df02
Merge pull request #478 from tommady/adding-CI-benchmark-github-action-#464
adding benchmark execution time github action
2021-11-17 11:59:47 +09:00
tommady 06d537de52
fix showing wrong commit hash 2021-11-16 06:40:09 +00:00
tommady ff930f2b24
change to use print in terminal 2021-11-16 06:17:13 +00:00
tommady 99bd103809
adding youki github token 2021-11-15 13:03:45 +00:00
tommady 363b094181
adding benchmark execution time github action 2021-11-15 12:46:55 +00:00
utam0k ba08bb3231
Merge pull request #474 from unknowndevQwQ/adjusting_the_position
style: adjusting the position of parameters and flag declarations
2021-11-15 21:08:57 +09:00
utam0k d004dd179e
Merge pull request #476 from containers/dependabot/cargo/serde_json-1.0.70
Bump serde_json from 1.0.69 to 1.0.70
2021-11-15 15:11:25 +09:00
utam0k a55e8aaf47
Merge pull request #477 from containers/dependabot/cargo/mio-0.8.0
Bump mio from 0.7.14 to 0.8.0
2021-11-15 12:19:26 +09:00
dependabot[bot] f7a2601cb8
Bump mio from 0.7.14 to 0.8.0
Bumps [mio](https://github.com/tokio-rs/mio) from 0.7.14 to 0.8.0.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.7.14...v0.8.0)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 01:08:02 +00:00
dependabot[bot] 9ac5cea44e
Bump serde_json from 1.0.69 to 1.0.70
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.69...v1.0.70)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 01:07:52 +00:00
utam0k 75ab8d3b0e
manage the YoukiConfig file name itself because it's confusing. 2021-11-14 21:08:56 +09:00
utam0k f0596ea700
avoid breaking changes as a library. 2021-11-14 20:55:57 +09:00
utam0k 51e257fa71
Rename because `config.json` is confusing 2021-11-14 20:50:31 +09:00
utam0k 074b1150f0
add some tests for YoukiConfig. 2021-11-14 20:48:41 +09:00
utam0k c070dd4c0f
add some comments about YoukiConfig. 2021-11-14 20:47:48 +09:00
unknowndevQwQ 1f3d94ede3 style: adjusting the position of parameters and flag declarations 2021-11-13 20:21:47 +08:00