generated from RedPillAnalytics/docker-cloudbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 945 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python
# Install hub
RUN apt-get update \
&& apt-get install -y wget apt-transport-https ca-certificates \
&& wget https://github.com/github/hub/releases/download/v2.14.2/hub-linux-amd64-2.14.2.tgz \
&& tar xvfz hub-linux-amd64-2.14.2.tgz \
&& rm hub-linux-amd64-2.14.2.tgz \
&& mv hub-linux-amd64-2.14.2/bin/hub /usr/bin/ \
&& chmod +x /usr/bin/hub \
&& alias git=hub
# Install commons
RUN apt install -y git software-properties-common
# Install gh CLI
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 \
&& apt-add-repository https://cli.github.com/packages \
&& apt update \
&& apt install gh
# Install lastversion
RUN pip3 install lastversion
# Install jx
RUN curl -L "https://github.com/jenkins-x/jx/releases/download/$(curl --silent "https://github.com/jenkins-x/jx/releases/latest" | sed 's#.*tag/\(.*\)\".*#\1#')/jx-linux-amd64.tar.gz" | tar xzv "jx" \
&& mv jx /usr/local/bin