Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 16 #17

Merged
merged 3 commits into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ ARG TERRAFORM_VERSION
ARG AZ_CLI_VERSION
ARG AWS_CLI_VERSION
ARG GCLOUD_VERSION
ARG GITHUB_BINARIES

WORKDIR /root/download

Expand Down Expand Up @@ -153,6 +154,12 @@ gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg \n\
yum install -y ${GCLOUD} && \
yum clean all || :

## github binaries
RUN test -n "${GITHUB_BINARIES}" && \
for GITHUB_BINARY in ${GITHUB_BINARIES}; do GITHUB_PACKAGE_VERSION="$(curl -sSL https://api.github.com/repos/${GITHUB_BINARY} | grep -Po '"browser_download_url": "\K.*linux_amd64.tar.gz?(?=\")')" && \
mkdir ./github && curl -SsL --retry 5 "${GITHUB_PACKAGE_VERSION}" | tar xz -C ./github && \
chmod -R +x ./github/* && mv ./github/* /usr/local/bin/; done || :

###################################### Tool Config ################################
ARG WORKDIR=/root
ARG PIP_REQUIREMENTS
Expand Down
25 changes: 13 additions & 12 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,19 @@ Further packages to install can be specified

Install needed Tools within Management Container

| ARG | Required | Default |
| ----------------- | -------- | ------- |
| ANSIBLE_VERSION | no | latest |
| DOCKER_VERSION | no | latest |
| NOMAD_VERSION | no | latest |
| CONSUL_VERSION | no | latest |
| KUBECTL_VERSION | no | latest |
| HELM_VERSION | no | latest |
| TERRAFORM_VERSION | no | latest |
| AZ_CLI_VERSION | no | latest |
| AWS_CLI_VERSION | no | latest |
| GCLOUD_VERSION | no | latest |
| ARG | Required | Default | Description | |
| ----------------- | -------- | ------- | -------------------------------- |
| ANSIBLE_VERSION | no | latest | |
| DOCKER_VERSION | no | latest | |
| NOMAD_VERSION | no | latest | |
| CONSUL_VERSION | no | latest | |
| KUBECTL_VERSION | no | latest | |
| HELM_VERSION | no | latest | |
| TERRAFORM_VERSION | no | latest | |
| AZ_CLI_VERSION | no | latest | |
| AWS_CLI_VERSION | no | latest | |
| GCLOUD_VERSION | no | latest | |
| GITHUB_BINARIES | no | latest | List of packages to be installed |

## Tool Configuration / Add Specific extension

Expand Down
1 change: 1 addition & 0 deletions examples/.docker_build
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ GCLOUD_VERSION=latest
PIP_REQUIREMENT="pip_requirement"
ANSIBLE_REQUIREMENTS="ansible_requirements"
AZ_CLI_EXTENSIONS="front-door"
GITHUB_BINARIES="remotemobprogramming/mob/releases/latest"