2 # Licensed to the Apache Software Foundation (ASF) under one or more
3 # contributor license agreements. See the NOTICE file distributed with
4 # this work for additional information regarding copyright ownership.
5 # The ASF licenses this file to You under the Apache License, Version 2.0
6 # (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
18 # Image for building HBase releases. Based on Ubuntu 18.04.
24 # Install extra needed repos and refresh.
26 # This is all in a single "RUN" command so that if anything changes, "apt update" is run to fetch
27 # the most current package versions (instead of potentially using old versions cached by docker).
28 RUN DEBIAN_FRONTEND=noninteractive apt-get -qq -y update \
29 && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends \
30 curl=7.58.0-2ubuntu3.8 \
31 git=1:2.17.1-1ubuntu0.5 \
32 gnupg=2.2.4-1ubuntu1.2 \
33 libcurl4-openssl-dev=7.58.0-2ubuntu3.8 \
34 libxml2-dev=2.9.4+dfsg1-6.1ubuntu1.3 \
36 maven=3.6.0-1~18.04.1 \
37 openjdk-8-jdk=8u242-b08-0ubuntu3~18.04 \
38 python-pip=9.0.1-2.3~ubuntu1.18.04.1 \
39 subversion=1.9.7-4ubuntu1 \
40 wget=1.19.4-1ubuntu2.2 \
42 && rm -rf /var/lib/apt/lists/* \
43 && update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java \
45 python-dateutil==2.8.1
47 WORKDIR /opt/hbase-rm/output
50 RUN useradd -m -s /bin/bash -p hbase-rm -u $UID hbase-rm
51 USER hbase-rm:hbase-rm
53 ENTRYPOINT [ "/opt/hbase-rm/do-release.sh" ]