mirror of
https://github.com/apple/container.git
synced 2026-09-07 00:05:40 +00:00
+6








8e9670c8f8
Co-authored-by: Aditya Ramani <a_ramani@apple.com> Co-authored-by: Agam Dua <agam_dua@apple.com> Co-authored-by: Danny Canter <danny_canter@apple.com> Co-authored-by: Dmitry Kovba <dkovba@apple.com> Co-authored-by: Eric Ernst <eric_ernst@apple.com> Co-authored-by: Evan Hazlett <ehazlett@apple.com> Co-authored-by: Gilbert Song <gilbertsong@apple.com> Co-authored-by: Hugh Bussell <hbussell@apple.com> Co-authored-by: John Logan <john_logan@apple.com> Co-authored-by: Kathryn Baldauf <k_baldauf@apple.com> Co-authored-by: Madhu Venugopal <mvenugopal@apple.com> Co-authored-by: Michael Crosby <michael_crosby@apple.com> Co-authored-by: Sidhartha Mani <sidhartha_mani@apple.com> Co-authored-by: Tanweer Noor <tnoor@apple.com> Co-authored-by: Ximena Perez Diaz <xperez528@gmail.com> Co-authored-by: Yibo Zhuang <yzhuang@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