Skip to content

Commit

Permalink
[teleport] add target (#60)
Browse files Browse the repository at this point in the history
* feat(install.teleport): add target

* docs(install.teleport): fix releases url

* refactor(docker): update tar package

to support all `tar` features like --wildcards, etc

* refactor(docker): fix tar xz
  • Loading branch information
alebabai authored Sep 12, 2018
1 parent 3637d37 commit fdcb800
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM alpine:3.8
ENV INSTALL_PATH=/packages/bin
ENV PATH=${INSTALL_PATH}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN mkdir -p ${INSTALL_PATH}
RUN apk add --update --no-cache bash make curl coreutils libc6-compat
RUN apk add --update --no-cache bash make curl coreutils libc6-compat tar xz

COPY --from=cfssl /go/bin/ ${INSTALL_PATH}/

Expand Down
9 changes: 8 additions & 1 deletion install/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ all: awless \
shfmt \
sops \
stern \
teleport \
terraform \
terraform-docs \
terragrunt \
Expand Down Expand Up @@ -228,7 +229,7 @@ export SHELLCHECK_VERSION ?= 0.5.0
# Releases: https://github.com/koalaman/shellcheck/releasess
## Install shellcheck static analysis tool for shell scripts
shellcheck:
$(CURL) -o - https://storage.googleapis.com/shellcheck/shellcheck-v$(SHELLCHECK_VERSION).$(OS).x86_64.tar.xz | tar -xOJ shellcheck-v$(SHELLCHECK_VERSION)/shellcheck > $(INSTALL_PATH)/shellcheck
$(CURL) -o - https://storage.googleapis.com/shellcheck/shellcheck-v$(SHELLCHECK_VERSION).$(OS).x86_64.tar.xz | tar -xJO shellcheck-v$(SHELLCHECK_VERSION)/shellcheck > $(INSTALL_PATH)/shellcheck
chmod +x $(INSTALL_PATH)/shellcheck

export SHFMT_VERSION ?= 2.5.1
Expand All @@ -248,6 +249,12 @@ export STERN_VERSION ?= 1.8.0
stern:
$(call github_download_binary_release,wercker,$(STERN_VERSION),$@_$(OS)_$(ARCH))

export TELEPORT_VERSION ?= 2.7.4
# Releases: https://github.com/gravitational/teleport/releases
## Install Teleport
teleport:
$(CURL) https://get.gravitational.com/teleport/$(TELEPORT_VERSION)/teleport-v$(TELEPORT_VERSION)-${OS}-$(ARCH)-bin.tar.gz -o - | tar -C $(INSTALL_PATH) -zx --wildcards --strip-components=1 --overwrite --mode='+x' */tsh */tctl */teleport

export TERRAFORM_VERSION ?= 0.11.7
# Releases: https://github.com/hashicorp/terraform/releases
## Install Terraform
Expand Down

0 comments on commit fdcb800

Please sign in to comment.