Skip to content

Commit

Permalink
generate docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
wujia committed Aug 8, 2022
1 parent 29f7330 commit 3e0c693
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/livy-builder.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker
name: livy-builder

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
Expand Down
36 changes: 18 additions & 18 deletions images/livy-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ FROM openjdk:11-jdk-slim

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get -qq update && \
apt-get -qq upgrade -y && \
apt-get -qq install -y git wget && \
wget -q https://www-us.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp && \
tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /opt && \
ln -s /opt/apache-maven-3.6.3 /opt/maven && \
apt-get -qq install gnupg && \
echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 && \
apt-get -qq update && \
apt-get -qq install sbt && \
apt-get -qq install -y r-base && \
apt install -y python python-pip && \
apt install -y python3 python3-pip && \
# We remove ensurepip since it adds no functionality since pip is
# installed on the image and it just takes up 1.6MB on the image
rm -r /usr/lib/python*/ensurepip && \
pip install --upgrade pip setuptools
RUN apt-get -qq update
RUN apt-get -qq upgrade -y
RUN apt-get -qq install -y git wget
RUN wget -q https://www-us.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp
RUN tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /opt
RUN ln -s /opt/apache-maven-3.6.3 /opt/maven
RUN apt-get -qq install gnupg
RUN echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
RUN apt-get -qq update
RUN apt-get -qq install sbt
RUN apt-get -qq install -y r-base
RUN apt install -y python python-pip
RUN apt install -y python3 python3-pip
RUN # We remove ensurepip since it adds no functionality since pip is
RUN # installed on the image and it just takes up 1.6MB on the image
RUN rm -r /usr/lib/python*/ensurepip
RUN pip install --upgrade pip setuptools

ENV M2_HOME=/opt/maven
ENV MAVEN_HOME=/opt/maven
Expand Down

0 comments on commit 3e0c693

Please sign in to comment.