Created
August 16, 2017 08:17
-
-
Save tuudik/90dba58716ca898a80b69916deb97578 to your computer and use it in GitHub Desktop.
How to repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpg --gen-key # Create RSA and RSA key with 4096bit length | |
gpg --send-keys --keyserver keyserver.ubuntu.com [KEY_ID] # Send key to Ubuntu | |
gpg --export-secret-keys -a [KEY_ID] > secret.asc # Export key to ASCII | |
GPG_PRIVATE_KEY=$(cat secret.asc) # Export ASCII key to ENV variable | |
mkdir -p /tmp/packages/incoming | |
copy *.deb /tmp/packages/incoming | |
docker run -e URI=[REPO_URL] -e KEYSERVER=keyserver.ubuntu.com -e APTLY_DISTRIBUTION=[DISTRO] -e GPG_PRIVATE_KEY="$GPG_PRIVATE_KEY" -e GPG_PASSPHRASE="[KEY_PSWD]" -v /tmp/packages:/debs cfstras/debify |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment