Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Infrastructure GitOps
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shivering-Isles
Infrastructure GitOps
Commits
570f8158
Verified
Commit
570f8158
authored
3 years ago
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
Adjust koolbox to new requirements
parent
49bb6f4c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cli/Dockerfile
+6
-23
6 additions, 23 deletions
cli/Dockerfile
with
6 additions
and
23 deletions
cli/Dockerfile
+
6
−
23
View file @
570f8158
FROM
docker.io/hashicorp/terraform:1.0.0
AS
terraform
FROM
docker.io/hashicorp/packer:1.7.3
AS
packer
# kubectl CLI cache
# kubectl CLI cache
FROM
docker.io/library/fedora:3
4
as
kubectl
FROM
docker.io/library/fedora:3
5
as
kubectl
ARG
KUBECTL_RELEASE=v1.22.0
ARG
KUBECTL_RELEASE=v1.22.0
ENV
KUBECTL_RELEASE=${KUBECTL_RELEASE}
ENV
KUBECTL_RELEASE=${KUBECTL_RELEASE}
...
@@ -17,17 +13,8 @@ RUN curl -LO "https://dl.k8s.io/release/${KUBECTL_RELEASE}/bin/linux/amd64/kubec
...
@@ -17,17 +13,8 @@ RUN curl -LO "https://dl.k8s.io/release/${KUBECTL_RELEASE}/bin/linux/amd64/kubec
&&
install
-o
root
-g
root
-m
0755 kubectl /usr/local/bin/kubectl
\
&&
install
-o
root
-g
root
-m
0755 kubectl /usr/local/bin/kubectl
\
&&
install
-o
root
-g
root
-m
0755 kubectl-convert /usr/local/bin/kubectl-convert
&&
install
-o
root
-g
root
-m
0755 kubectl-convert /usr/local/bin/kubectl-convert
# hcloud CLI cache
FROM
docker.io/library/fedora:34
as
hcloud
ARG
HCLOUD_RELEASE=v1.26.1
ENV
HCLOUD_RELEASE=${HCLOUD_RELEASE}
RUN
curl
-L
"https://github.com/hetznercloud/cli/releases/download/
${
HCLOUD_RELEASE
}
/hcloud-linux-amd64.tar.gz"
|
tar
xvzf - hcloud
\
&&
install
-o
root
-g
root
-m
0755 hcloud /usr/local/bin/hcloud
# Helm CLI cache
# Helm CLI cache
FROM
docker.io/library/fedora:3
4
as
helm
FROM
docker.io/library/fedora:3
5
as
helm
ARG
HELM_RELEASE=v3.6.3
ARG
HELM_RELEASE=v3.6.3
ENV
HELM_RELEASE=${HELM_RELEASE}
ENV
HELM_RELEASE=${HELM_RELEASE}
...
@@ -36,16 +23,16 @@ RUN curl -L "https://get.helm.sh/helm-${HELM_RELEASE}-linux-amd64.tar.gz" | tar
...
@@ -36,16 +23,16 @@ RUN curl -L "https://get.helm.sh/helm-${HELM_RELEASE}-linux-amd64.tar.gz" | tar
&&
install
-o
root
-g
root
-m
0755 helm /usr/local/bin/helm
&&
install
-o
root
-g
root
-m
0755 helm /usr/local/bin/helm
# Flux CLI cache
# Flux CLI cache
FROM
docker.io/library/fedora:3
4
as
flux
FROM
docker.io/library/fedora:3
5
as
flux
ARG
FLUX_RELEASE=0.
16.2
ARG
FLUX_RELEASE=0.
24.1
ENV
FLUX_RELEASE=${FLUX_RELEASE}
ENV
FLUX_RELEASE=${FLUX_RELEASE}
RUN
curl
-L
https://github.com/fluxcd/flux2/releases/download/v
${
FLUX_RELEASE
}
/flux_
${
FLUX_RELEASE
}
_linux_amd64.tar.gz |
tar
xvzf - flux
\
RUN
curl
-L
https://github.com/fluxcd/flux2/releases/download/v
${
FLUX_RELEASE
}
/flux_
${
FLUX_RELEASE
}
_linux_amd64.tar.gz |
tar
xvzf - flux
\
&&
install
-o
root
-g
root
-m
0755 flux /usr/local/bin/flux
&&
install
-o
root
-g
root
-m
0755 flux /usr/local/bin/flux
# SOPS CLI cache
# SOPS CLI cache
FROM
docker.io/library/fedora:3
4
as
sops
FROM
docker.io/library/fedora:3
5
as
sops
ARG
SOPS_RELEASE=v3.7.1
ARG
SOPS_RELEASE=v3.7.1
ENV
SOPS_RELEASE=${SOPS_RELEASE}
ENV
SOPS_RELEASE=${SOPS_RELEASE}
...
@@ -54,7 +41,7 @@ RUN curl -L https://github.com/mozilla/sops/releases/download/${SOPS_RELEASE}/so
...
@@ -54,7 +41,7 @@ RUN curl -L https://github.com/mozilla/sops/releases/download/${SOPS_RELEASE}/so
&&
install
-o
root
-g
root
-m
0755 sops /usr/local/bin/sops
&&
install
-o
root
-g
root
-m
0755 sops /usr/local/bin/sops
# Actual start of container build
# Actual start of container build
FROM
docker.io/library/fedora:3
4
FROM
docker.io/library/fedora:3
5
ARG
MAINTAINER="unmaintained"
ARG
MAINTAINER="unmaintained"
LABEL
maintainer=$MAINTAINER
LABEL
maintainer=$MAINTAINER
...
@@ -88,11 +75,8 @@ RUN dnf install -y \
...
@@ -88,11 +75,8 @@ RUN dnf install -y \
COPY
koolbox.dummy /usr/local/bin/koolbox
COPY
koolbox.dummy /usr/local/bin/koolbox
# External tools
# External tools
COPY
--from=terraform /bin/terraform /usr/local/bin/terraform
COPY
--from=packer /bin/packer /usr/local/bin/packer
COPY
--from=kubectl /usr/local/bin/kubectl /usr/local/bin/kubectl
COPY
--from=kubectl /usr/local/bin/kubectl /usr/local/bin/kubectl
COPY
--from=kubectl /usr/local/bin/kubectl-convert /usr/local/bin/kubectl-convert
COPY
--from=kubectl /usr/local/bin/kubectl-convert /usr/local/bin/kubectl-convert
COPY
--from=hcloud /usr/local/bin/hcloud /usr/local/bin/hcloud
COPY
--from=helm /usr/local/bin/helm /usr/local/bin/helm
COPY
--from=helm /usr/local/bin/helm /usr/local/bin/helm
COPY
--from=flux /usr/local/bin/flux /usr/local/bin/flux
COPY
--from=flux /usr/local/bin/flux /usr/local/bin/flux
COPY
--from=sops /usr/local/bin/sops /usr/local/bin/sops
COPY
--from=sops /usr/local/bin/sops /usr/local/bin/sops
...
@@ -101,7 +85,6 @@ RUN true \
...
@@ -101,7 +85,6 @@ RUN true \
&&
echo
"command -v flux >/dev/null && . <(flux completion bash)"
>>
/root/.bashrc
\
&&
echo
"command -v flux >/dev/null && . <(flux completion bash)"
>>
/root/.bashrc
\
&&
echo
"command -v kubectl >/dev/null && . <(kubectl completion bash)"
>>
/root/.bashrc
\
&&
echo
"command -v kubectl >/dev/null && . <(kubectl completion bash)"
>>
/root/.bashrc
\
&&
echo
"command -v helm >/dev/null && . <(helm completion bash)"
>>
/root/.bashrc
\
&&
echo
"command -v helm >/dev/null && . <(helm completion bash)"
>>
/root/.bashrc
\
&&
echo
"command -v hcloud >/dev/null && . <(hcloud completion bash)"
>>
/root/.bashrc
\
&&
true
&&
true
# Create workspace
# Create workspace
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment