Commit Graph
73 Commits
Author SHA1 Message Date
Alexey Makhov 2a12f01d32 container registry login host:port error fix (#170)
Fixes #121

Gets port from the given registry server URL and use it in a
RegistryClient.

Signed-off-by: Alexey Makhov <makhov.alex@gmail.com>
2025-06-13 07:33:05 -07:00
Dmitry Kovba 206f3cc07c Improve accuracy of progress updates (#144)
This PR resolves the problem of dropped progress updates and ensures the
accuracy of the information provided in the progress bar. Additionally,
it adds the displaying of the finished state to the progress bar.
Requires merging and tagging
https://github.com/apple/containerization/pull/91.
2025-06-12 23:36:38 -07:00
Yibo Zhuang 8f2d4d7300 Fix: consolidate UserDefaults service name (#161)
This change consolidates the UserDefaults service name
`com.apple.container.defaults` to a single constant under the extension
file and also renamed the extension file.

Signed-off-by: Yibo Zhuang <yibzhuang@gmail.com>
2025-06-12 21:28:24 -07:00
J Logan 9d75932017 Adds Swift Package Index crawler metadata. (#181) 2025-06-12 17:29:07 -07:00
Ümit DEMİRCİ c114945f15 fix: typo (#153) 2025-06-12 17:14:15 -07:00
Elijah Wright 7ca5a4313f define JSONDecoder() outside of for loop in load() (#159)
this PR defines a variable, `decoder`, which represents the
`JSONDecoder` class, rather than doing it in the for loop in `load()`

Signed-off-by: Elijah Wright <git@elijahs.space>
2025-06-12 11:37:26 -07:00
Kathryn Baldauf 6f1f770a4e Remove temporary workaround for image auth to ghcr (#155)
When we were setting up the repos, we needed these environment variables
for the GitHub Actions CI to be able to run the tests. Now that the
images are public, these can be removed.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-12 11:36:42 -07:00
Kathryn Baldauf 2ac52d4ce0 Add missing link to repo CoC in issue template (#157)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-12 11:36:23 -07:00
Kathryn Baldauf 3838be5207 Update protos and add builder shim version in Package.swift (#176)
This PR updates the protos to match the recent changes in
https://github.com/apple/container-builder-shim/pull/15.

This PR additionally adds the builder shim version as a variable in
Package.swift. This allows us to be consistent with the builder tag used
for the builder shim image and when building protobuf files.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-12 10:51:00 -07:00
Alexander 97d4ed6705 Updated gitignore: .idea (#138)
Added .idea to .gitignore file
2025-06-11 17:11:42 -07:00
Kathryn Baldauf 5f7fe489a6 Add issue templates for bugs and features (#152)
I would love feedback on how people feel about these issue templates, if
there should be more or less templates, or if there are any fields that
people think we should add.

You can see an example of how to use these by testing opening an issue
on my fork [here](https://github.com/katiewasnothere/container/issues).

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-11 17:04:03 -07:00
Patrick Stöckle 2327e899cf Remove trailing whitespace from GitHub workflows (#154)
Remove trailing whitespace from GitHub workflows
2025-06-11 16:56:39 -07:00
J Logan 2d262dc0fc Removes build variable that is not needed after launch. (#151) 2025-06-11 13:21:53 -07:00
Kathryn Baldauf 37fc68fee0 Add the option to disable progress updates on image CLI calls (#146)
Closes https://github.com/apple/container/issues/126 

This PR additionally removes the ability to set
`disable-progress-updates` for `container create` calls while we
investigate why output get jumbled there.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-11 13:12:10 -07:00
vadikgo e3cc50746c Update technical-overview.md doc with current code (#86)
com.apple.container.defaults default subnet key must be network.subnet,
not default.subnet.


https://github.com/apple/container/blob/ef4462ead7449eba48c0b682b93e30930047f9ef/Sources/Services/ContainerNetworkService/AllocationOnlyVmnetNetwork.swift#L70
2025-06-10 17:34:28 -07:00
Daniel Gonzalez 20b63255ac Add new system status command (#118)
Container services can be started and stopped using the `system start`
and `system stop` commands. But there is no straightforward way for
users to check if the services were already started.

This PR adds a new `system status` command that shows wether the
container services are running or not.

The command only checks the status of the apiserver for now, but it
could be expanded in the future to show more details.

Fixes #117.
2025-06-10 16:30:59 -07:00
Kathryn Baldauf 3a76848e18 Remove unused flags from registry login (#128)
fixes https://github.com/apple/container/issues/120 

These flags were unused, so remove for clarity.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-10 16:08:22 -07:00
Aditya Ramani 7efc0f371b Skip unpacking unsupported platforms (#127)
This is a more appropriate fix for
https://github.com/apple/container/issues/61 - which was closed by use
of a workaround.
There is no need to unpack image variants that we dont support.

Signed-off-by: Aditya Ramani <a_ramani@apple.com>
2025-06-10 16:07:01 -07:00
LamTrinh.Dev f4383d78dd Append .git for dependencies in Package.swift for consistency. (#82)
Append `.git` for `dependencies` in `Package.swift` for consistency.
2025-06-10 15:54:41 -07:00
Kathryn Baldauf 665532c374 Remove use of REPO_READ token (#124)
This token was needed when the repos were private. Now that they are
public, this should no longer be needed.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-10 15:38:19 -07:00
J Logan ef4462ead7 Add local docsite directory to .gitignore. (#73) 2025-06-09 17:50:45 -07:00
owenarthur f1e9f0143c Clean up typos in docs, fix reference to default subnet (#71) 2025-06-09 17:40:27 -07:00
J Logan 9868562b5a Adds base path for GitHub Pages publishing. (#69) 2025-06-09 17:15:05 -07:00
Kathryn Baldauf eeddf6f7e7 Publish docs from main (#67)
We eventually only want to support building docs from release branches
and tags, however, while we're working to initially set up the docs, we
may have some churn. So we want to be able to publish from main during
that churn.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-09 16:33:05 -07:00
SADIK KUZU a7c974e968 Fix typo in Parser.swift (#64) 2025-06-09 15:53:49 -07:00
owenarthur f98d8edd17 Fix small typo in README (#56)
This PR adds a missing preposition
2025-06-09 15:38:38 -07:00
Michael Crosby 0fd869231e add NOTE on default registry (#53)
Signed-off-by: crosbymichael <michael_crosby@apple.com>
0.1.0
2025-06-09 11:56:37 -07:00
J LoganandAditya Ramani fc13f55b23 Fine-tune build requirements. (#52)
Co-authored-by: Aditya Ramani <a_ramani@apple.com>
2025-06-09 11:21:40 -07:00
Aditya Ramani 523cfe4f52 Bump to using Containerization 0.1.0 (#50)
Also update the `container-builder-shim` image to 0.1.0

Signed-off-by: Aditya Ramani <a_ramani@apple.com>
2025-06-09 11:18:49 -07:00
Eric Ernst 9e3d32e08c update code comments for consistent macOS descriptions (#51) 2025-06-09 11:12:03 -07:00
Madhu Venugopalandmadhu e933ff3c53 Updating latest macOS and Xcode versions (#49)
Co-authored-by: madhu <mvenugopal@apple.com>
2025-06-09 10:33:51 -07:00
J Logan e6c49b4176 Update HTML output in tutorial, how-to. (#47) 2025-06-09 09:43:31 -07:00
Eric Ernst cba7534065 docs: add initial contributors file (#48) 2025-06-09 09:42:10 -07:00
J Logan 5a43b0abac Use python:alpine for tutorial. (#46) 2025-06-09 07:52:52 -07:00
Eric Ernst 1ef655eb96 docs: improve instructions for building with local containerization (#43)
If they're just pulling containerization, suggest following build env
setup directions from containerization repo so they get a cross-platform
SDK setup.
2025-06-08 22:33:55 -07:00
Aditya Ramani 33782141fb Bump to using Containerization 0.0.4 (#45)
- Includes updates for setting MTU to 1280
- Also includes bug fixes for LinuxContainer IO streams
2025-06-08 21:34:31 -07:00
Eric Ernst 8fcbd01678 docs: update version description (#42)
Updating version descriptions so we're consistent across repos.

Signed-off-by: Eric Ernst <eric_ernst@apple.com>
2025-06-08 18:02:44 -07:00
J Logan ff59bb38e8 Use bookworm in tutorial, disable console block copy. (#39)
- Switched to use bookworm Python image as `curl` is not in slim.
- Use `pre` tags for console blocks. We lose syntax highlighting, but
get rid of the copy button.
- Fix `dockerfile` tag in tutorial.
- Fix GitHub typo in README.
2025-06-08 17:30:40 -07:00
Eric Ernst 50557aa786 docs: let's drop contributors (#41)
We'll have original authors on first commit, let's skip having a
contributors file for now.

Signed-off-by: Eric Ernst <eric_ernst@apple.com>
2025-06-08 16:25:46 -07:00
J Logan e8b34033e8 Clarify signed installer package file for download. (#38) 2025-06-07 21:14:16 -07:00
J Logan 6690f6d076 Corrections and refinements for user documentation. (#35) 2025-06-07 21:00:47 -07:00
Sidhartha Mani 7020082723 [Build] purely-lexical URL operations for resolving symlinks (#31)
`BuildFSSync.walk` relied on an implementation detail to skip traversing
the path ".", relative to the build context dir.

Specifically, it assumed that:
- `URL.parentOf()` would return false when the parent argument was
relative.
- `URL.path(percentEncoded: false)` would preserve the relativity of an
input path.
These assumptions held on earlier macOS releases, so the context
directory silently remained untouched.

In some versions of macOS , `URL.path(percentEncoded: false)` always
returns an absolute path, regardless of how the URL was created. Because
of this change, `URL.parentOf()` now returns true for ".", and
BuildFSSync.walk begins descending into the context directory—something
it was never meant to do.

This solution:
- Remove the hidden dependency on `URL.parentOf()` for context‑directory
detection.
- Add an explicit check for "." inside BuildFSSync.walk and bail out
early.

Replace fragile calls to `URL.path(percentEncoded: false`) with the
stable, documented `URL.relativePath`, which preserves relativity when
the original path was relative.
2025-06-07 15:32:06 -07:00
Aditya Ramani f86dcefb04 Add make target to fetch the default kernel (#33)
Replaces the `--install-dependencies` flag with the
`(enable/disable)-kernel-install` flag. If the flag is not passed - the
default behavior is prompting the user for a response.

Also adds a make target `install-kernel`

```
➜ bin/container system start
Verifying apiserver is running...
Installing base container filesystem...
No default kernel configured.
Install the recommended default kernel from [https://github.com/kata-containers/kata-containers/releases/download/3.17.0/kata-static-3.17.0-arm64.tar.xz]? [Y/n]: n
Please use the `container system kernel set --recommended` command to configure the default kernel

➜ bin/container system start --disable-kernel-install
Verifying apiserver is running...

➜ bin/container system start --enable-kernel-install
Verifying apiserver is running...
Installing kernel...

➜ bin/container system start --help

USAGE: container system start ... [--enable-kernel-install] [--disable-kernel-install]
...
  --enable-kernel-install/--disable-kernel-install
                          Specify if the default kernel should be installed or not.

```

---------

Signed-off-by: Aditya Ramani <a_ramani@apple.com>
2025-06-07 12:45:45 -07:00
Madhu Venugopal 9a42c224f6 Update README.md (#34)
Fixed minor typo
2025-06-07 12:13:19 -07:00
Kathryn Baldauf d4e01c6579 Only allow publishing docs on release branch or tags (#30)
This removes the ability to deploy docs on the main branch and instead
only allows docs deployment on either a tag or a release branch. Docs
are also built (but not deployed) in the common job run by the build and
release pipelines.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-06 21:49:49 -07:00
J Logan 6fe813a9da Bulk up docc for ContainerSandboxService. (#32) 2025-06-06 16:36:49 -07:00
Joseph Heck 7c51835c1b moves intro image to beneath the intro text (#25)
Moves the introductory animation/image to beneath a title for the README
and the initial introductory text. Explains what you're seeing a bit
better, while still keeping the image "above the fold" to make it
prominent and encourage people to see and understand what this project
does.
2025-06-06 14:48:51 -07:00
Kathryn Baldauf 7523d68251 Update to containerization 0.0.3 (#21)
Update containerization to take new breaking changes
https://github.com/apple/containerization/pull/22

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-06 14:39:51 -07:00
Patrice Jaton 210227e14c Remove local CoC and MD updates (#29)
* Remove local `CODE-OF-CONDUCT.md` as we are now using the organization
one.
* Update `SECURITY.md`'s title to 
  ```diff
  - # Security process
  + # Security disclosure process
  ```
* Remove extra space in `CONTRIBUTING.md` title
* Add contribution section in `README.md`
2025-06-06 14:02:47 -07:00
Aditya Ramani 5d80ca8d40 Extend NSLock to accept a closure (#28)
Signed-off-by: Aditya Ramani <a_ramani@apple.com>
2025-06-06 12:08:47 -07:00