Skip to content

Instantly share code, notes, and snippets.

@tuudik
Created August 16, 2017 08:17
Show Gist options
  • Save tuudik/90dba58716ca898a80b69916deb97578 to your computer and use it in GitHub Desktop.
Save tuudik/90dba58716ca898a80b69916deb97578 to your computer and use it in GitHub Desktop.
How to repo
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