forked from cloudfoundry/app-autoscaler-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docker images with latest versions
- Loading branch information
1 parent
8571585
commit f6efee4
Showing
2 changed files
with
66 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,65 @@ | ||
FROM ubuntu:18.04 | ||
|
||
MAINTAINER qiye | ||
MAINTAINER autoscaler-team | ||
|
||
ENV DEBIAN_FRONTEND="noninteractive" TZ="Europe/London" | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get -qqy install --fix-missing \ | ||
build-essential \ | ||
inetutils-ping \ | ||
vim \ | ||
curl \ | ||
wget \ | ||
unzip \ | ||
zip \ | ||
gcc \ | ||
&& \ | ||
apt-get clean | ||
# get maven 3.5.4 | ||
RUN wget --no-verbose -O /tmp/apache-maven-3.5.4.tar.gz http://archive.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz | ||
|
||
# verify checksum | ||
#RUN echo "87e5cc81bc4ab9b83986b3e77e6b3095 /tmp/apache-maven-3.5.4.tar.gz" | md5sum -c | ||
git \ | ||
openjdk-11-jdk \ | ||
gnupg \ | ||
gnupg2 \ | ||
ruby \ | ||
ruby-dev | ||
|
||
# install maven | ||
RUN tar xzf /tmp/apache-maven-3.5.4.tar.gz -C /opt/ | ||
RUN ln -s /opt/apache-maven-3.5.4 /opt/maven | ||
RUN ln -s /opt/maven/bin/mvn /usr/local/bin | ||
RUN rm -f /tmp/apache-maven-3.5.4.tar.gz | ||
ENV MAVEN_HOME /opt/maven | ||
RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O- | apt-key add - | ||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main" | tee /etc/apt/sources.list.d/postgresql.list | ||
|
||
# install openjdk10 | ||
#RUN \ | ||
# wget -q -O openjdk-10.0.1_linux-x64_bin.tar.gz https://download.java.net/java/GA/jdk10/10.0.1/fb4372174a714e6b8c52526dc134031e/10/openjdk-10.0.1_linux-x64_bin.tar.gz \ | ||
# && tar -xvf openjdk-10.0.1_linux-x64_bin.tar.gz \ | ||
# && export PATH=$PATH:/jdk-10.0.1/bin \ | ||
# && rm -f openjdk-10.0.1_linux-x64_bin.tar.gz \ | ||
# && java -version | ||
#ENV PATH /jdk-10.0.1/bin:$PATH | ||
#ENV JAVA_HOME /jdk-10.0.1 | ||
RUN apt-get install -y openjdk-8-jdk | ||
ENV POSTGRES_VERSION 10 | ||
RUN \ | ||
apt-get update && \ | ||
apt-get install -y postgresql-${POSTGRES_VERSION} && \ | ||
apt-get clean | ||
|
||
# install nodejs | ||
ENV NPM_CONFIG_LOGLEVEL info | ||
ENV NODE_VERSION 8.11.2 | ||
RUN wget -q -O node-v8.11.2-linux-x64.tar.gz https://nodejs.org/dist/v8.11.2/node-v8.11.2-linux-x64.tar.gz | ||
RUN tar -xvf node-v8.11.2-linux-x64.tar.gz | ||
RUN export PATH=$PATH:/node-v8.11.2-linux-x64/bin | ||
ENV PATH /node-v8.11.2-linux-x64/bin:$PATH | ||
RUN rm -f node-v8.11.2-linux-x64.tar.gz | ||
# get maven | ||
ENV MAVEN_VERSION 3.6.3 | ||
RUN wget --no-verbose -O /tmp/apache-maven-${MAVEN_VERSION}.tar.gz http://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz && \ | ||
tar xzf /tmp/apache-maven-${MAVEN_VERSION}.tar.gz -C /opt/ && \ | ||
ln -s /opt/apache-maven-${MAVEN_VERSION} /opt/maven && \ | ||
ln -s /opt/maven/bin/mvn /usr/local/bin && \ | ||
rm -f /tmp/apache-maven-${MAVEN_VERSION}.tar.gz | ||
ENV MAVEN_HOME /opt/maven | ||
|
||
# install golang | ||
ENV GO_VERSION 1.15.13 | ||
ENV GOPATH $HOME/go | ||
ENV PATH $HOME/go/bin:/usr/local/go/bin:$PATH | ||
RUN \ | ||
wget -q https://dl.google.com/go/go1.11.linux-amd64.tar.gz -P /tmp && \ | ||
tar xzvf /tmp/go1.11.linux-amd64.tar.gz -C /usr/local && \ | ||
wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz -P /tmp && \ | ||
tar xzvf /tmp/go${GO_VERSION}.linux-amd64.tar.gz -C /usr/local && \ | ||
mkdir $GOPATH && \ | ||
rm -rf /tmp/* | ||
|
||
# install postgres10 | ||
RUN apt-get install -y gnupg gnupg2 | ||
ENV PGDATA /var/lib/postgresql/10/main | ||
ENV PGCONFIG /etc/postgresql/10/main | ||
RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O- | apt-key add - | ||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main" | tee /etc/apt/sources.list.d/postgresql.list | ||
RUN apt-get update \ | ||
&& apt-get install -y postgresql-10 \ | ||
&& sed -i 's/peer/trust/' ${PGCONFIG}/pg_hba.conf \ | ||
&& sed -i 's/md5/trust/' ${PGCONFIG}/pg_hba.conf | ||
# Install bosh_cli | ||
ENV BOSH_VERSION 6.4.4 | ||
RUN wget -q https://github.com/cloudfoundry/bosh-cli/releases/download/v${BOSH_VERSION}/bosh-cli-${BOSH_VERSION}-linux-amd64 && \ | ||
mv bosh-cli-* /usr/local/bin/bosh && \ | ||
chmod +x /usr/local/bin/bosh | ||
# Install uaac | ||
RUN gem install cf-uaac | ||
|
||
# install postgres | ||
ENV PGDATA /var/lib/postgresql/${POSTGRES_VERSION}/main | ||
ENV PGCONFIG /etc/postgresql/${POSTGRES_VERSION}/main | ||
RUN sed -i 's/peer/trust/' ${PGCONFIG}/pg_hba.conf \ | ||
&& sed -i 's/md5/trust/' ${PGCONFIG}/pg_hba.conf |