mirror of
https://github.com/apple/container.git
synced 2026-07-13 13:07:06 +00:00
31a0cb2f4e
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
1.5 KiB
1.5 KiB
Develop using a local copy of Containerization
This page describes how to build and run container using a local copy of Containerization.
Use the local copy of containerization
-
Clone the Containerization repository such that it sits next to your clone of the
containerrepository. -
In your development shell, go to the
containerproject directory.cd container -
If the application services are already running, stop them.
bin/container system stop -
Configure the environment variable
CONTAINERIZATION_PATHto refer to your Containerization project, and update yourPackage.resolvedfile.export CONTAINERIZATION_PATH=../containerization swift package update containerization -
Build the init filesystem for your local copy of containerization.
(cd ../swiftcontainerization && make clean all) -
Build
container.make clean all -
Start the application services.
bin/container system start
Revert to the versioned Containerization package
-
Unset your
CONTAINERIZATION_PATHenvironment variable, and updatePackage.resolved.unset CONTAINERIZATION_PATH swift package update containerization -
Rebuild
container.make clean all -
Restart application services.
bin/container system restart