Overview

The installation of packagecloud:enterprise requires no extra software other than a supported operating system running on a machine with at least 2 GB of RAM. Follow the instructions below to get started, it usually takes no more than 5 minutes.

Things you will need


If you have any questions or issues with the installation, please contact packgecloud.io support.

Package Installation

  1. Install the packagecloud:enterprise repository using the instructions emailed to you.

  2. Update the package manager cache.

  3. Install packagecloud from the repository installed in step 1.

Configuration

Use your favorite editor (or config management software) to open /etc/packagecloud/packagecloud.rb, this is where all the configuration for packagecloud:enterprise lives. Don't forget to configure CloudFront in order for packagecloud:enterprise to continue working properly.

Domain

License Settings

GPG

Be sure to check out the section on GPG if you plan on importing an existing key. If not, the install will generate one for you (recommended).

Repository Storage

You can choose to store your repository objects (like index files and packages) on S3 (recommended) or Local Filesystem Storage.

Only one Repository Storage backend may be configured at one time and migration between them is not currently supported.

S3

Local Filesystem Storage

Database

Skip if not configuring an external database.

You can configure an external database, such as RDS, by setting the following options. The external database should be compatible with at least mysql-5.5

Note: Make sure you have the timezone tables installed into your mysql database. Typically this is done by running the following command: mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql

Mailer/SMTP

While configuring SMTP isn't strictly necessary, it's a good idea to do so, as password reset emails will not work otherwise.

Note: Comment the lines out below to disable SMTP authentication completely.

Backups

See our Backups section for more information.

HTTPS

See the HTTPS section for more information.

Creating users

Now that we've fully configured our packagecloud:enterprise instance, let's add some users to our seed file.

  1. If Mailer/SMTP wasn't configured above, you'll need to set an encrypted password for the users you add, otherwise a password reset link will be sent to that email.

  2. To encrypt a password, you use the packagecloud-ctl encrypt-password command.

  3. Edit /etc/packagecloud/users.yml and create an entry using the password from step 2 (remove password field completely if Mailer/SMTP was configured).

  4. Users are automatically loaded as part of reconfigure or bootstrap-install but you can run it manually if adding users in the future.

Visit the Users section for more information on user management (like deleting users).

Bootstrap

  1. If installing for the first time, you'll need to bootstrap the install. Note: This step might take a few minutes if we are generating a GPG key.

  2. Bootstrap the database (if you are not setting up a frontend)

Reconfigure

We can run now run reconfigure, which is also what you run every time you make a change to /etc/packagecloud/packagecloud.rb.

Done!

You should now be able to visit external_url and log in with the account created in /etc/packagecloud/users.yml.

In order to push packages to packagecloud:enterprise you will need to pass some extra flags to the command line client. For example, to push to ubuntu trusty:

Happy packaging!


Related Pages