Updating the Debian Repository
In the
packaging
repository, setdebian-repo
as working directory.Build the image:
docker build -t freight .
Ensure having the files and folders below:
./gpg.key
, the GPG private key./gpg.pass
, the password of the GPG private key./packages
, a folder with Debian packages that you want to add into the
Add the packages into the repository:
docker run \
--name freight \
--volume $(pwd)/gpg.pass:/root/gpg.pass:ro \
--volume $(pwd)/gpg.key:/root/gpg.key:ro \
--volume $(pwd)/packages:/root/packages \
--volume $(pwd)/repository:/repository \
freightRemove the container:
docker container rm -f freight
Commit and push the changes.
Observation: The initial repository was created with freight-init [email protected] repository
.