Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ jobs:
run: |
/usr/bin/swift package update containerization
env:
CONTAINERIZATION_REPO: https://${{ secrets.REPO_READ }}@github.com/apple-uat/containerization.git
CONTAINERIZATION_REPO: https://${{ secrets.REPO_READ }}@github.com/apple/containerization.git
- name: Check formatting
run: |
./scripts/install-hawkeye.sh
make fmt
if ! git diff -- . ':(exclude)Package.swift' ':(exclude)Package.resolved'; then echo the following files require formatting or license headers: ; git diff --name-only ; false ; fi
- name: Check protobuf
run: |
make BUILDER_SHIM_REPO=https://${{ secrets.REPO_READ }}@github.com/apple-uat/container-builder-shim.git protos
make BUILDER_SHIM_REPO=https://${{ secrets.REPO_READ }}@github.com/apple/container-builder-shim.git protos

# TODO [launch]: TEMPORARILY we need to exclude these files since we had to modify them to add
# the github token for pulling the private repos.
if ! git diff -- . ':(exclude)Package.swift' ':(exclude)Package.resolved' ':(exclude)Protobuf.Makefile'; then echo the following files require formatting or license headers: ; git diff --name-only ; false ; fi
env:
CURRENT_SDK: y
CONTAINERIZATION_REPO: https://${{ secrets.REPO_READ }}@github.com/apple-uat/containerization.git
CONTAINERIZATION_REPO: https://${{ secrets.REPO_READ }}@github.com/apple/containerization.git
- name: Set build configuration
run: |
echo "BUILD_CONFIGURATION=debug" >> $GITHUB_ENV
Expand All @@ -53,7 +53,7 @@ jobs:
env:
DEVELOPER_DIR: "/Applications/Xcode_16.3.app/Contents/Developer"
CURRENT_SDK: y
CONTAINERIZATION_REPO: https://${{ secrets.REPO_READ }}@github.com/apple-uat/containerization.git
CONTAINERIZATION_REPO: https://${{ secrets.REPO_READ }}@github.com/apple/containerization.git
- name: Create package
run: |
mkdir -p outputs
Expand All @@ -69,7 +69,7 @@ jobs:
CONTAINER_REGISTRY_HOST: ghcr.io
DEVELOPER_DIR: "/Applications/Xcode_16.3.app/Contents/Developer"
CURRENT_SDK: y
CONTAINERIZATION_REPO: https://${{ secrets.REPO_READ }}@github.com/apple-uat/containerization.git
CONTAINERIZATION_REPO: https://${{ secrets.REPO_READ }}@github.com/apple/containerization.git
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ if let path = ProcessInfo.processInfo.environment["CONTAINERIZATION_PATH"] {
scDependency = .package(path: path)
scVersion = "latest"
} else {
scVersion = "0.1.34"
scVersion = "0.0.2"
if let containerizationRepo = ProcessInfo.processInfo.environment["CONTAINERIZATION_REPO"], containerizationRepo != "" {
scDependency = .package(url: containerizationRepo, exact: Version(stringLiteral: scVersion))
} else {
scDependency = .package(url: "https://github.com/apple-uat/containerization.git", exact: Version(stringLiteral: scVersion))
scDependency = .package(url: "https://github.com/apple/containerization.git", exact: Version(stringLiteral: scVersion))
}
}

Expand Down
2 changes: 1 addition & 1 deletion Protobuf.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ROOT_DIR := $(shell git rev-parse --show-toplevel)
LOCAL_DIR := $(ROOT_DIR)/.local
LOCALBIN := $(LOCAL_DIR)/bin

BUILDER_SHIM_REPO ?= https://github.com/apple-uat/container-builder-shim.git
BUILDER_SHIM_REPO ?= https://github.com/apple/container-builder-shim.git
## Versions
PROTOC_VERSION=26.1

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ To build the Containerization package, your system needs either:

`container` is designed to take advantage of the features of the macOS 16 Developer Preview. You can run the application on macOS Sequoia, but the `container` maintainers typically will not address Sequoia issues that cannot be reproduced on the macOS 16 Developer Beta.

There are [significant networking limitations](https://github.com/apple-uat/container#macos-sequoia-limitations) that impact the usability `container` on macOS Sequoia.
There are [significant networking limitations](https://github.com/apple/container#macos-sequoia-limitations) that impact the usability `container` on macOS Sequoia.

### Install and run

Download the latest application installer package from the [Github release page](https://github.com/apple-uat/container/releases).
Download the latest application installer package from the [Github release page](https://github.com/apple/container/releases).

To install the application, double click the installer package and follow the instructions. Enter your administrator password when prompted to give the installer permission to place the application under `/usr/local`.

Expand Down Expand Up @@ -72,7 +72,7 @@ Missing required runtime dependencies:
2. Kernel
Would like to install them now? [Y/n]: Y
Installing default kernel from [https://github.com/kata-containers/kata-containers/releases/download/3.17.0/kata-static-3.17.0-arm64.tar.xz]...
Installing initial filesystem from [ghcr.io/apple-uat/containerization/vminit:0.1.34]...
Installing initial filesystem from [ghcr.io/apple/containerization/vminit:0.1.34]...
%
```

Expand Down Expand Up @@ -167,7 +167,7 @@ cd web-test
Download an image file for your web server can use (TODO: substitute the container logo):

```bash
curl -L -o logo.jpg https://github.com/apple-uat/container/tree/main/docs/assets/logo.jpg
curl -L -o logo.jpg https://github.com/apple/container/tree/main/docs/assets/logo.jpg
```

In the `web-test` directory, create a file named `Dockerfile` with this content:
Expand Down Expand Up @@ -231,7 +231,7 @@ When you list containers now, `my-web-server` is present, along with the contain
```shellsession
% container ls
ID IMAGE OS ARCH STATE ADDR
buildkit ghcr.io/apple-uat/container-builder-shim/builder:2.1.1 linux arm64 running 192.168.64.2
buildkit ghcr.io/apple/container-builder-shim/builder:2.1.1 linux arm64 running 192.168.64.2
my-web-server web-test:latest linux arm64 running 192.168.64.3
%
```
Expand Down Expand Up @@ -343,7 +343,7 @@ If you list all running and stopped containers, you will see that the `--rm` fla
```bash
% container ls --all
ID IMAGE OS ARCH STATE ADDR
buildkit ghcr.io/apple-uat/container-builder-shim/builder:2.1.1 linux arm64 running 192.168.64.2
buildkit ghcr.io/apple/container-builder-shim/builder:2.1.1 linux arm64 running 192.168.64.2
%
```

Expand Down
4 changes: 2 additions & 2 deletions Sources/ContainerClient/Core/ClientDefaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extension ClientDefaults.Keys {
case .defaultKernelBinaryPath:
return "opt/kata/share/kata-containers/vmlinux-6.12.28-153"
case .defaultBuilderImage:
return "ghcr.io/apple-uat/container-builder-shim/builder:2.1.3"
return "ghcr.io/apple/container-builder-shim/builder:0.0.3"
case .defaultDNSDomain:
return "test"
case .defaultRegistryDomain:
Expand All @@ -73,7 +73,7 @@ extension ClientDefaults.Keys {
guard tag != "latest" else {
return "vminit:latest"
}
return "ghcr.io/apple-uat/containerization/vminit:\(tag)"
return "ghcr.io/apple/containerization/vminit:\(tag)"
}
}
}
56 changes: 28 additions & 28 deletions Tests/CLITests/Subcommands/Build/CLIBuilderTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ extension TestCLIBuildBase {
let tempDir: URL = try createTempDir()
let dockerfile: String =
"""
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20

ADD . .

Expand All @@ -108,7 +108,7 @@ extension TestCLIBuildBase {
.file("emptyFile", content: .zeroFilled(size: 1)),
]
try createContext(tempDir: tempDir, dockerfile: dockerfile, context: context)
let imageName = "regitry.local/add-all:\(UUID().uuidString)"
let imageName: String = "regitry.local/add-all:\(UUID().uuidString)"
try self.build(tag: imageName, tempDir: tempDir)
#expect(try self.inspectImage(imageName) == imageName, "expected to have successfully built \(imageName)")
}
Expand All @@ -117,7 +117,7 @@ extension TestCLIBuildBase {
let tempDir: URL = try createTempDir()
let dockerfile: String =
"""
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
ARG ADDRESS
RUN nc -zv ${ADDRESS%:*} ${ADDRESS##*:} || exit 1
"""
Expand All @@ -138,84 +138,84 @@ extension TestCLIBuildBase {
let dockerfile =
"""
# stage 1 Meta ARG
ARG TAG=3.21
FROM ghcr.io/apple-uat/test-images/alpine:${TAG}
ARG TAG=3.20
FROM ghcr.io/linuxcontainers/alpine:${TAG}

# stage 2 RUN
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
RUN echo "Hello, World!" > /hello.txt

# stage 3 - RUN []
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
RUN ["sh", "-c", "echo 'Exec form' > /exec.txt"]

# stage 4 - CMD
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
CMD ["echo", "Exec default"]

# stage 5 - CMD []
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
CMD ["echo", "Exec'ing"]

#stage 6 - LABEL
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
LABEL version="1.0" description="Test image"

# stage 7 - EXPOSE
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
EXPOSE 8080

# stage 8 - ENV
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
ENV MY_ENV=hello
RUN echo $MY_ENV > /env.txt

# stage 9 - ADD
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
ADD emptyFile /

# stage 10 - COPY
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
COPY toCopy /toCopy

# stage 11 - ENTRYPOINT
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
ENTRYPOINT ["echo", "entrypoint!"]

# stage 12 - VOLUME
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
VOLUME /data

# stage 13 - USER
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
RUN adduser -D myuser
USER myuser
CMD whoami

# stage 14 - WORKDIR
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
WORKDIR /app
RUN pwd > /pwd.out

# stage 15 - ARG
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
ARG MY_VAR=default
RUN echo $MY_VAR > /var.out

# stage 16 - ONBUILD
# FROM ghcr.io/apple-uat/test-images/alpine:3.21
# FROM ghcr.io/linuxcontainers/alpine:3.20
# ONBUILD RUN echo "onbuild triggered" > /onbuild.out

# stage 17 - STOPSIGNAL
# FROM ghcr.io/apple-uat/test-images/alpine:3.21
# FROM ghcr.io/linuxcontainers/alpine:3.20
# STOPSIGNAL SIGTERM

# stage 18 - HEALTHCHECK
# FROM ghcr.io/apple-uat/test-images/alpine:3.21
# FROM ghcr.io/linuxcontainers/alpine:3.20
# HEALTHCHECK CMD echo "healthy" || exit 1

# stage 19 - SHELL
# FROM ghcr.io/apple-uat/test-images/alpine:3.21
# FROM ghcr.io/linuxcontainers/alpine:3.20
# SHELL ["/bin/sh", "-c"]
# RUN echo $0 > /shell.txt
"""
Expand All @@ -236,23 +236,23 @@ extension TestCLIBuildBase {
let dockerfile: String =
"""
# Test 1: Test basic symlinking
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20

ADD Test1Source Test1Source
ADD Test1Source2 Test1Source2

RUN cat Test1Source2/test.yaml

# Test2: Test symlinks in nested directories
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20

ADD Test2Source Test2Source
ADD Test2Source2 Test2Source2

RUN cat Test2Source2/Test/test.txt

# Test 3: Test symlinks to directories work
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20

ADD Test3Source Test3Source
ADD Test3Source2 Test3Source2
Expand Down Expand Up @@ -293,7 +293,7 @@ extension TestCLIBuildBase {
let tempDir: URL = try createTempDir()
let dockerfile: String =
"""
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20
RUN echo "foobar" > /file
"""
let context: [FileSystemEntry] = []
Expand All @@ -318,7 +318,7 @@ extension TestCLIBuildBase {
let dockerfileCtxDir: URL = try createTempDir()
let dockerfile: String =
"""
FROM ghcr.io/apple-uat/test-images/alpine:3.21
FROM ghcr.io/linuxcontainers/alpine:3.20

RUN ls ./
COPY . /root
Expand Down
2 changes: 1 addition & 1 deletion Tests/CLITests/Subcommands/Build/TestCLITermIO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extension TestCLIRunBase {
// This test class is NOT thread safe
class TestCLITermIO: TestCLIRunBase, @unchecked Sendable {
override var ContainerImage: String {
"ghcr.io/apple-uat/test-images/alpine:3.21"
"ghcr.io/linuxcontainers/alpine:3.20"
}

override var Interactive: Bool {
Expand Down
2 changes: 1 addition & 1 deletion Tests/CLITests/Subcommands/Images/TestCLIImages.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ extension TestCLIImagesCommand {
@Test func testImageDefaultRegistry() throws {
do {
let defaultDomain = "ghcr.io"
let imageName = "apple-uat/test-images/alpine:3.21"
let imageName = "ghcr.io/linuxcontainers/alpine:3.20"
defer {
try? doDefaultRegistrySet(domain: "docker.io")
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/CLITests/Utilities/CLITest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class CLITest {
return tempDir
}

let alpine = "ghcr.io/apple-uat/test-images/alpine:3.21"
let busybox = "ghcr.io/apple-uat/test-images/busybox:1.37"
let alpine = "ghcr.io/linuxcontainers/alpine:3.20"
let busybox = "ghcr.io/containerd/busybox:1.36"

let defaultContainerArgs = ["sleep", "infinity"]

Expand Down
4 changes: 2 additions & 2 deletions docs/localSwiftContainerization.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Develop using a local copy of Containerization

This page describes how to build and run container using a local copy of [`Containerization`](https://github.com/apple-uat/containerization).
This page describes how to build and run container using a local copy of [`Containerization`](https://github.com/apple/containerization).

## Use the local copy of containerization

1. Clone the [Containerization](https://github.com/apple-uat/containerization) repository such that it sits next to your clone of the `container` repository.
1. Clone the [Containerization](https://github.com/apple/containerization) repository such that it sits next to your clone of the `container` repository.

2. In your development shell, go to the `container` project directory.

Expand Down
Loading