Skip to content
Cloud Posse installer and distribution of native apps, binaries and alpine packages
Shell Makefile Roff Dockerfile
Branch: master
Clone or download
3 authors Argocd: Add Package (#305)
* Rebuilt README.md (#270)

* Automatically update README nightly (#268)

* Automatically update README nightly

* fix triggers

* add name

* fix syntax

* add labels

* Fix example (#272)

* Update README.md (#273)

* Kind (#266)

* update: add kind

* update: minor pathing fixes to makefile inclusion documentation for a functional example

* update: Additional notes for adding new packages, minor wording fix for description of fetch package, update of readme

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* update: minor readme fixes

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md (#274)

* Automated Package Updates (#275)

* update packages

* Fix vendor packages after updates

* Restore Makefile

* fix tarball

* reset release

* Update actions (#276)

* Update actions

* refactor auto-lable

* remove dup

* Update README.md (#278)

* update packages (#279)

* Automated Package Updates (#280)

* update packages

* fix sops download url

* Automated Package Updates (#281)

* update packages

* Fix pandoc url

* Rollback release

* update packages (#282)

* feature: kubectl plugin manager (krew) app (#286)

* [jx] add tool (#287)

* [jx] add tool

* fix: install as tarball, not binary

* [rancher] Add Package (#288)

* update packages (#285)

* Amtool (#271)

* update: addition of amtool

* update: addition of amtool

* update: amtool build fixes

* update: amtool build fixes

* update: amtool apk build

* fix: add amtool to auto-label

* fix: Makefile fix?

* fix: Makefile auto-label

* update: readme update

* update: auto-label space update

* Automated Package Updates (#289)

* update packages

* update packages

* update packages

* update packages (#290)

* popeye: add package

* argocd: Add package

* argocd: version update

* update: fix argocd apk build

* update: fix argocd apk build

Co-authored-by: Erik Osterman <erik@cloudposse.com>
Co-authored-by: Cloud Posse Bot (CI/CD) <ops@cloudposse.com>
Latest commit 23d8ae9 Jan 22, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Argocd: Add Package (#305) Jan 22, 2020
apk
bin Auto update packages (#249) Nov 7, 2019
codefresh Add alpine:3.11 support (#313) Jan 9, 2020
contrib Pubkey (#216) Jul 5, 2019
docs
install
tasks Create helm2, helm3, and kubectl-1.15 packages (#319) Jan 18, 2020
tmp Parallelize builds (#165) Mar 17, 2019
uninstall Initial distro (#1) Apr 23, 2018
vendor Argocd: Add Package (#305) Jan 22, 2020
.dockerignore Refactor Makefiles for Efficiency (#209) Jun 13, 2019
.editorconfig Add Dockerfile (#11) Jun 15, 2018
.gitignore Refactor Makefiles for Efficiency (#209) Jun 13, 2019
.travis.yml [scenery] update to latest release (#179) Apr 10, 2019
Dockerfile Bump alpine from 3.10.3 to 3.11.2 (#308) Jan 9, 2020
LICENSE [helmfile] Upgrade to 0.73.1 (#204) Jun 7, 2019
Makefile
README.md Argocd: Add Package (#305) Jan 22, 2020
README.yaml Update dockerfiles to point to new alpine repo for 3.11 (#314) Jan 10, 2020
codefresh.yml

README.md

README Header

Cloud Posse

Packages TravisCI Build Status Codefresh Build Status Latest Release Slack Community

Cloud Posse distribution of awesome apps.


This project is part of our comprehensive "SweetOps" approach towards DevOps.

It's 100% Open Source and licensed under the APACHE2.

Introduction

Use this repo to easily install releases of popular Open Source apps. We provide a few ways to use it.

  1. Make Based Installer. This installer works regardless of your OS and distribution. It downloads packages directly from their GitHub source repos and installs them to your INSTALL_PATH.
  2. Alpine Linux Packages. Use our Alpine repository to install prebuilt packages that use the original source binary (where possible) from the maintainers' official GitHub repo releases.
  3. Docker Image. Use our docker image as a base-image or as part of a multi-stage docker build. The docker image always distributes the latest linux binaries for x86_64 architectures.

See examples below for usage.

Is one of our packages out of date?

Open up an issue or submit a PR (preferred). We'll review quickly!

Usage

Alpine Repository (recommended)

A public Alpine repository is provided by Cloud Posse. The repository is hosted on Amazon S3 and fronted by CloudFlare's CDN with end-to-end TLS. This ensures insane availability with DDoS mitigation and low-cost hosting. Using this alpine repository is ultimately more reliable than depending on GitHub for availability and provides an easier way to manage dependencies pinned at multiple versions.

The repository itself is managed using alpinist, which takes care of the heavy lifting of building repository indexes. You can self-host your own Alpine repository using this strategy.

Configure the alpine repository:

The Easy Way

We provide a bootstrap script to configure the alpine repository for your version of alpine.

curl -sSL https://apk.cloudposse.com/install.sh | sh

NOTE: Requires bash and curl to run:

For Docker

Add the following to your Dockerfile near the top.

# Install the cloudposse alpine repository
ADD https://apk.cloudposse.com/ops@cloudposse.com.rsa.pub /etc/apk/keys/
RUN echo "@cloudposse https://apk.cloudposse.com/3.11/vendor" >> /etc/apk/repositories

NOTE: we support alpine 3.7, 3.8, 3.9, 3.10, and 3.11 packages at this time

Installing Alpine Packages

When adding packages, we recommend using apk add --update $package to update the repository index before installing packages.

Simply install any package as normal:

apk add gomplate

But we recommend that you use version pinning:

apk add gomplate==3.0.0-r0

And maybe even repository pinning, so you know that you get our versions:

apk add gomplate@cloudposse==3.0.0-r0

Makefile Interface

The Makefile interface works on OSX and Linux. It's a great way to distribute binaries in an OS-agnostic way which does not depend on a package manager (e.g. no brew or apt-get).

This method is ideal for local development environments (which is how we use it) where you need the dependencies installed natively for your OS/architecture, such as installing a package on OSX.

See all available packages:

make -C install help

Install everything...

make -C install all

Install specific packages:

make -C install aws-vault chamber

Install to a specific folder:

make -C install aws-vault INSTALL_PATH=/usr/bin

Uninstall a specific package

make -C uninstall yq

Examples

Docker Multi-stage Build

Add this to a Dockerfile to install packages using a multi-stage build process:

FROM cloudposse/packages:latest AS packages

COPY --from=packages /packages/bin/kubectl /usr/local/bin/

Docker with Git Clone

Or... add this to a Dockerfile to easily install packages on-demand:

RUN git clone --depth=1 -b master https://github.com/cloudposse/packages.git /packages && \
    rm -rf /packages/.git && \
    make -C /packages/install kubectl

Makefile Inclusion

Sometimes it's necessary to install some binary dependencies when building projects. For example, we frequently rely on gomplate or helm to build chart packages.

Here's a stub you can include into a Makefile to make it easier to install binary dependencies.

export PACKAGES_VERSION ?= master
export PACKAGES_PATH ?= packages/
export INSTALL_PATH ?= $(PACKAGES_PATH)/bin

## Install packages
packages/install:
        @if [ ! -d $(PACKAGES_PATH) ]; then \
          echo "Installing packages $(PACKAGES_VERSION)..."; \
          rm -rf $(PACKAGES_PATH); \
          git clone --depth=1 -b $(PACKAGES_VERSION) https://github.com/cloudposse/packages.git $(PACKAGES_PATH); \
          rm -rf $(PACKAGES_PATH)/.git; \
        fi

## Install package (e.g. helm, helmfile, kubectl)
packages/install/%: packages/install
        @make -C $(PACKAGES_PATH)/install $(subst packages/install/,,$@)

## Uninstall package (e.g. helm, helmfile, kubectl)
packages/uninstall/%:
        @make -C $(PACKAGES_PATH)/uninstall $(subst packages/uninstall/,,$@)

Contributing Additional Packages

In addition to following the Contributing section, the following steps can be used to add new packages for review (via a PR).

  1. Clone an existing, similar, package within the vendors directory. Name the new folder with the same name as the binary package being installed.
  2. At a minimum, update the VERSION, DESCRIPTION, and Makefile to reflect the binary being installed. Ensure that a test task exist in the package Makefile.
  3. Test the install and ensure that it downloads and runs as expected (make -C install <your_package> INSTALL_PATH=/tmp)
  4. Test the apk build (see below)
  5. Update the README.md (make init readme/deps readme)

Testing apk builds

To validate that a new package will build into an apk you can use the following steps;

make docker/build/apk/shell
make -C vendor/<appname> apk
# Some temp build files in the volume mount set user/group to nobody/nobody for apk building.
# It is easier to remove them while within the docker container.
rm -rf ./tmp/build.*
exit

Makefile Targets

amtool                    0.20.0     Tool for interacting with the Alertmanager API
argocd                    1.4.0      Declarative GitOpts for Kubernetes
assume-role               0.3.2      Easily assume AWS roles in your terminal.
atlantis                  0.10.2     Terraform For Teams
awless                    0.1.11     A Mighty CLI for AWS
aws-iam-authenticator     0.4.0      A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster
aws-okta                  0.19.4     aws-okta allows users to authenticate with AWS using Okta credentials
aws-vault                 5.1.2      A vault for securely storing and accessing AWS credentials in development environments
cfssl                     1.4.1      Cloudflare's PKI and TLS toolkit
chamber                   2.7.5      CLI for managing secrets
cli53                     0.8.16     Command line tool for Amazon Route 53
cloudflared               2019.9.0   Argo Tunnel client
cloudposse-atlantis       0.9.0.3    Terraform For Teams, enhanced by Cloud Posse
codefresh                 0.41.11    Codefresh CLI
ctop                      0.7.3      Top-like interface for container metrics
direnv                    2.20.0     Unclutter your .profile
doctl                     1.37.0     A command line tool for DigitalOcean services
duffle                    0.3.5b1    CNAB installer
emailcli                  1.0.3      Command line email sending client written in Go.
fargate                   0.3.2      CLI for AWS Fargate
fetch                     0.3.7      fetch makes it easy to download files, folders, and release assets from a specific public git commit, branch, or tag
figurine                  1.0.1      Print your name in style
fzf                       0.20.0     A command-line fuzzy finder
ghr                       0.13.0     Upload multiple artifacts to GitHub Releases in parallel
github-commenter          0.5.0      Command line utility for creating GitHub comments on Commits, Pull Request Reviews or Issues
github-release            0.7.2      Commandline app to create and edit releases on Github (and upload artifacts)
github-status-updater     0.2.0      Command line utility for updating GitHub commit statuses and enabling required status checks for pull requests
gitleaks                  1.2.0      Audit git repos for secrets 🔑
gomplate                  3.6.0      A flexible commandline tool for template rendering. Supports lots of local and remote datasources.
goofys                    0.23.1     a high-performance, POSIX-ish Amazon S3 file system written in Go
gosu                      1.11       Simple Go-based setuid+setgid+setgroups+exec
gotop                     3.0.0      A terminal based graphical activity monitor inspired by gtop and vtop
helm                      3.0.2      The Kubernetes Package Manager
helm2                     2.16.1     The Kubernetes Package Manager
helm3                     3.0.2      The Kubernetes Package Manager
helmfile                  0.98.2     Deploy Kubernetes Helm Charts
htmltest                  0.11.0     :white_check_mark: Test generated HTML for problems
hugo                      0.62.2     The world’s fastest framework for building websites.
json2hcl                  0.0.6      Convert JSON to HCL, and vice versa
jx                        2.0.1136   Jenkins-X
k3d                       1.4.0      Little helper to run Rancher Lab's k3s in Docker
k6                        0.26.0     A modern load testing tool, using Go and JavaScript - https://k6.io
k9s                       0.12.0     Kubernetes CLI To Manage Your Clusters In Style
katafygio                 0.8.1      K8s continuous backup to git
kfctl                     0.7.1      Machine Learning Toolkit for Kubernetes
kind                      0.7.0      A tool for running local Kubernetes clusters using Docker
kops                      1.15.0     Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management
kops-1.12                 1.12.3     Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management
krew                      0.3.3      Kubectl plugin manager
kubecron                  1.0.2      Utilities to manage kubernetes cronjobs. Run a CronJob manually for test purposes. Suspend/unsuspend a CronJob
kubectl                   1.15.8     Production-Grade Container Scheduling and Management
kubectl-1.13              1.13.12    Production-Grade Container Scheduling and Management
kubectl-1.14              1.14.10    Production-Grade Container Scheduling and Management
kubectl-1.15              1.15.8     Production-Grade Container Scheduling and Management
kubectx                   0.7.1      Switch faster between clusters and namespaces in kubectl
kubens                    0.7.1      Switch faster between clusters and namespaces in kubectl
lazydocker                0.7.6      The lazier way to manage everything docker
lectl                     0.17       Script to check issued certificates by Let's Encrypt on CTL (Certificate Transparency Log) using https://crt.sh
misspell                  0.3.4      Correct commonly misspelled English words in source files
pack                      0.6.0      Create cloud native Buildpacks
packer                    1.5.0      Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
pandoc                    2.9.1.1    Universal markup converter
pgmetrics                 1.8.0      Postgres metrics
popeye                    0.6.1      A Kubernetes cluster resource sanitizer
promtool                  2.15.2     Prometheus CLI tool
rakkess                   0.4.2      Review Access - kubectl plugin to show an access matrix for all available resources
rancher                   2.3.2      Rancher CLI
rbac-lookup               0.5.0      Find Kubernetes roles and cluster roles bound to any user, service account, or group name.
retry                     3.3.0      ♻️ Functional mechanism based on channels to perform actions repetitively until successful.
scenery                   0.1.5      A Terraform plan output prettifier
sentry-cli                1.49.0     A command line utility to work with Sentry.
shellcheck                0.7.0      ShellCheck, a static analysis tool for shell scripts
shfmt                     3.0.1      A shell parser, formatter and interpreter (POSIX/Bash/mksh)
slack-notifier            0.2.0      Command line utility to send messages with attachments to Slack channels via Incoming Webhooks
sops                      3.5.0      Secrets management stinks, use some sops!
stern                     1.11.0     ⎈ Multi pod and container log tailing for Kubernetes
sudosh                    0.2.0      Shell wrapper to run a login shell with `sudo` as the current user for the purpose of audit logging
teleport                  4.1.8      Privileged access management for elastic infrastructure.
terraform                 0.12.19    Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.
terraform-0.11            0.11.14    Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.
terraform-0.12            0.12.10    Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.
terraform-docs            0.8.0      Generate docs from terraform modules
terragrunt                0.21.11    Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules.
terrahelp                 0.7.4      Terrahelp is as a command line utility that provides useful tricks like masking of terraform output.
tfenv                     0.4.0      Transform environment variables for use with Terraform (e.g. `HOSTNAME` ⇨ `TF_VAR_hostname`)
tfmask                    0.3.0      Terraform utility to mask select output from `terraform plan` and `terraform apply`
variant                   0.36.4     Variant is a Universal CLI tool that works like a task runner
venona                    0.29.0     Codefresh runtime-environment agent
yq                        2.4.1      yq is a portable command-line YAML processor

Share the Love

Like this project? Please give it a ★ on our GitHub! (it helps us a lot)

Are you using this project or any of our other projects? Consider leaving a testimonial. =)

Related Projects

Check out these related projects.

  • build-harness - Collection of Makefiles to facilitate building Golang projects, Dockerfiles, Helm charts, and more
  • geodesic - Geodesic is the fastest way to get up and running with a rock solid, production grade cloud platform built on strictly Open Source tools.

Help

Got a question? We got answers.

File a GitHub issue, send us an email or join our Slack Community.

README Commercial Support

DevOps Accelerator for Startups

We are a DevOps Accelerator. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.

Learn More

Work directly with our team of DevOps experts via email, slack, and video conferencing.

We deliver 10x the value for a fraction of the cost of a full-time engineer. Our track record is not even funny. If you want things done right and you need it done FAST, then we're your best bet.

  • Reference Architecture. You'll get everything you need from the ground up built using 100% infrastructure as code.
  • Release Engineering. You'll have end-to-end CI/CD with unlimited staging environments.
  • Site Reliability Engineering. You'll have total visibility into your apps and microservices.
  • Security Baseline. You'll have built-in governance with accountability and audit logs for all changes.
  • GitOps. You'll be able to operate your infrastructure via Pull Requests.
  • Training. You'll receive hands-on training so your team can operate what we build.
  • Questions. You'll have a direct line of communication between our teams via a Shared Slack channel.
  • Troubleshooting. You'll get help to triage when things aren't working.
  • Code Reviews. You'll receive constructive feedback on Pull Requests.
  • Bug Fixes. We'll rapidly work with you to fix any bugs in our projects.

Slack Community

Join our Open Source Community on Slack. It's FREE for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally sweet infrastructure.

Newsletter

Sign up for our newsletter that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.

Office Hours

Join us every Wednesday via Zoom for our weekly "Lunch & Learn" sessions. It's FREE for everyone!

zoom

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Developing

If you are interested in being a contributor and want to get involved in developing this project or help out with our other projects, we would love to hear from you! Shoot us an email.

In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull Request so that we can review your changes

NOTE: Be sure to merge the latest changes from "upstream" before making a pull request!

Copyright

Copyright © 2017-2020 Cloud Posse, LLC

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.

Trademarks

All other trademarks referenced herein are the property of their respective owners.

About

This project is maintained and funded by Cloud Posse, LLC. Like it? Please let us know by leaving a testimonial!

Cloud Posse

We're a DevOps Professional Services company based in Los Angeles, CA. We ❤️ Open Source Software.

We offer paid support on all of our projects.

Check out our other projects, follow us on twitter, apply for a job, or hire us to help with your cloud strategy and implementation.

Contributors

Erik Osterman
Erik Osterman
Igor Rodionov
Igor Rodionov
Andriy Knysh
Andriy Knysh

README Footer Beacon

You can’t perform that action at this time.