Skip to content

Commit

Permalink
Installing kubectl and kompose on jenkins/jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
missingcharacter committed Oct 14, 2021
1 parent 9f5fef6 commit d7e956b
Show file tree
Hide file tree
Showing 21 changed files with 40 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apache-airflow/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/python37:v0.0.8
FROM nxtlytics/python37:v0.0.9-test00

# Airflow
ENV AIRFLOW_USER_HOME=/usr/local/airflow
Expand Down
8 changes: 4 additions & 4 deletions apache-airflow/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
# - ./pgdata:/var/lib/postgresql/data/pgdata

webserver:
image: nxtlytics/apache-airflow:v0.0.8
image: nxtlytics/apache-airflow:v0.0.9-test00
restart: always
depends_on:
- postgres
Expand All @@ -33,7 +33,7 @@ services:
retries: 3

flower:
image: nxtlytics/apache-airflow:v0.0.8
image: nxtlytics/apache-airflow:v0.0.9-test00
restart: always
depends_on:
- redis
Expand All @@ -45,7 +45,7 @@ services:
- "5555:5555"

scheduler:
image: nxtlytics/apache-airflow:v0.0.8
image: nxtlytics/apache-airflow:v0.0.9-test00
restart: always
depends_on:
- webserver
Expand All @@ -55,7 +55,7 @@ services:
- dev.env

worker:
image: nxtlytics/apache-airflow:v0.0.8
image: nxtlytics/apache-airflow:v0.0.9-test00
restart: always
depends_on:
- scheduler
Expand Down
2 changes: 1 addition & 1 deletion base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# - Base APT repos for Nexus
# Ensure this image is built with --squash to reduce layer bloat!

FROM ubuntu:focal-20210827
FROM ubuntu:focal-20210921

ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=C.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion datadog-agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.8
FROM nxtlytics/base:v0.0.9-test00

ADD utils /opt/utils/
RUN echo "===> Moving docker-entrypoint.sh to /usr/local/bin and making it exec" \
Expand Down
2 changes: 1 addition & 1 deletion jdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.8
FROM nxtlytics/base:v0.0.9-test00

ARG JAVA_MAJOR_VERSION=11
ENV MAVEN_HOME=/usr/share/maven
Expand Down
18 changes: 17 additions & 1 deletion jenkins/jdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM nxtlytics/jdk:v0.0.8
FROM nxtlytics/jdk:v0.0.9-test00

ENV user=jenkins
ENV group=jenkins
ENV uid=1000
ENV gid=1000
ENV AGENT_WORKDIR=/home/${user}/agent
ENV DOCKER_VERSION=20.10.5
ENV KUBECTL_VERSION=v1.22.0
ENV KOMPOSE_VERSION=v1.22.0

# Ensure system is up to date and install tools
COPY jenkins-agent /usr/local/bin/jenkins-agent
Expand Down Expand Up @@ -51,6 +53,20 @@ RUN echo '===> Make jenkins-agent executable' && \
-o /usr/local/bin/yq && \
chmod +x /usr/local/bin/yq && \
yq --version && \
echo '===> Installing kubectl' && \
#KUBECTL_VERSION="$(curl -sL https://dl.k8s.io/release/stable.txt)" && \
curl -sL \
"https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
-o /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl && \
kubectl --help && \
echo '===> Installing kompose' && \
#KOMPOSE_VERSION="$(curl -s 'https://api.github.com/repos/kubernetes/kompose/releases/latest' | jq -r .tag_name)" && \
curl -sL \
"https://github.com/kubernetes/kompose/releases/download/${KOMPOSE_VERSION}/kompose-linux-amd64" \
-o /usr/local/bin/kompose && \
chmod +x /usr/local/bin/kompose && \
kompose version && \
echo '===> Installing docker-compose' && \
DOCKER_COMPOSE_VERSION="$(curl -s 'https://api.github.com/repos/docker/compose/releases/latest' | jq -r .tag_name)" && \
curl -sL \
Expand Down
2 changes: 1 addition & 1 deletion jenkins/nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/jenkins-jdk:v0.0.8
FROM nxtlytics/jenkins-jdk:v0.0.9-test00

# Install tools
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
Expand Down
2 changes: 1 addition & 1 deletion jenkins/python37/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/jenkins-jdk:v0.0.8
FROM nxtlytics/jenkins-jdk:v0.0.9-test00

# Ensure system is up to date and install tools
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ focal-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/focal-proposed.list && \
Expand Down
2 changes: 1 addition & 1 deletion jenkins/python38/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/jenkins-jdk:v0.0.8
FROM nxtlytics/jenkins-jdk:v0.0.9-test00

# Ensure system is up to date and install tools
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ focal-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/focal-proposed.list && \
Expand Down
2 changes: 1 addition & 1 deletion jenkins/python39/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/jenkins-jdk:v0.0.8
FROM nxtlytics/jenkins-jdk:v0.0.9-test00

# Ensure system is up to date and install tools
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ focal-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/focal-proposed.list && \
Expand Down
2 changes: 1 addition & 1 deletion jenkins/ruby-jemalloc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/jenkins-jdk:v0.0.8
FROM nxtlytics/jenkins-jdk:v0.0.9-test00

ENV RUBY_INSTALL_VERSION=0.8.1
ENV RUBY_VERSION=2.7.2
Expand Down
2 changes: 1 addition & 1 deletion jenkins/ruby-truffle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/jenkins-jdk:v0.0.8
FROM nxtlytics/jenkins-jdk:v0.0.9-test00

ENV RUBY_INSTALL_VERSION=0.8.1
ENV TRUFFLERUBY_VERSION=21.0.0
Expand Down
2 changes: 1 addition & 1 deletion jenkins/ruby/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/jenkins-jdk:v0.0.8
FROM nxtlytics/jenkins-jdk:v0.0.9-test00

ENV RUBY_INSTALL_VERSION=0.8.1
ENV RUBY_VERSION=2.7.2
Expand Down
2 changes: 1 addition & 1 deletion jupyterhub-singleuser-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/python38:v0.0.8
FROM nxtlytics/python38:v0.0.9-test00

COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh \
Expand Down
2 changes: 1 addition & 1 deletion nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.8
FROM nxtlytics/base:v0.0.9-test00

# Install tools
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
Expand Down
2 changes: 1 addition & 1 deletion python37/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.8
FROM nxtlytics/base:v0.0.9-test00

# Ensure system is up to date and install tools
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ focal-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/focal-proposed.list && \
Expand Down
2 changes: 1 addition & 1 deletion python38/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.8
FROM nxtlytics/base:v0.0.9-test00

# Ensure system is up to date and install tools
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ focal-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/focal-proposed.list && \
Expand Down
2 changes: 1 addition & 1 deletion python39/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.8
FROM nxtlytics/base:v0.0.9-test00

# Ensure system is up to date and install tools
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ focal-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/focal-proposed.list && \
Expand Down
2 changes: 1 addition & 1 deletion ruby-jemalloc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.8
FROM nxtlytics/base:v0.0.9-test00

ENV RUBY_INSTALL_VERSION=0.8.1
ENV RUBY_VERSION=2.7.2
Expand Down
2 changes: 1 addition & 1 deletion ruby-truffle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.8
FROM nxtlytics/base:v0.0.9-test00

ENV RUBY_INSTALL_VERSION=0.8.1
ENV TRUFFLERUBY_VERSION=21.0.0
Expand Down
2 changes: 1 addition & 1 deletion ruby/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.8
FROM nxtlytics/base:v0.0.9-test00

ENV RUBY_INSTALL_VERSION=0.8.1
ENV RUBY_VERSION=2.7.2
Expand Down

0 comments on commit d7e956b

Please sign in to comment.