Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbonte21 committed Nov 26, 2024
1 parent 8161e4d commit c5952d0
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,29 @@
# limitations under the License.
#

#FROM scratch
#ADD alpine-minirootfs-3.20.3-x86_64.tar.gz /
#FROM alpine:latest
FROM alpine:3.13
#FROM ubuntu:22.04
FROM scratch
FROM ubuntu:22.04
LABEL maintainer="[email protected]"
ARG VERSION=3.0.0-SNAPSHOT

COPY distro/target/apache-atlas-3.0.0-SNAPSHOT-server.tar.gz /apache-atlas-3.0.0-SNAPSHOT-server.tar.gz

RUN apk update \
&& apk upgrade --no-cache \
&& apk add --no-cache \
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install apt-utils \
&& apt-get -y install \
wget \
python2 \
openjdk8 \
openjdk-8-jdk-headless \
patch \
netcat-openbsd \
netcat \
curl \
&& cd / \
&& export MAVEN_OPTS="-Xms2g -Xmx2g" \
&& export JAVA_HOME="/usr/lib/jvm/java-1.8-openjdk" \
&& export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \
&& tar -xzvf /apache-atlas-3.0.0-SNAPSHOT-server.tar.gz -C /opt \
&& mv /opt/apache-atlas-${VERSION} /opt/apache-atlas \
&& apt-get clean \
&& rm -rf /apache-atlas-3.0.0-SNAPSHOT-server.tar.gz

# Copy the repair index jar file
Expand All @@ -50,26 +49,23 @@ RUN cd / \
&& mv /atlas-index-repair-tool-${VERSION}.jar /opt/apache-atlas/libext/ \
&& rm -rf /atlas-index-repair-tool-${VERSION}.tar.gz

#RUN ln -s /usr/bin/python2 /usr/bin/python
RUN /usr/bin/python --version
RUN ln -s /usr/bin/python2 /usr/bin/python

RUN ls
RUN ls /
RUN ls /atlas-hub
RUN ls atlas-hub
COPY atlas-hub/repair_index.py /opt/apache-atlas/bin/
RUN ls /opt/apache-atlas
RUN ls /opt/apache-atlas/bin

RUN chmod +x /opt/apache-atlas/bin/repair_index.py
COPY atlas-hub/repair_index.py /opt/apache-atlas/bin/

RUN ls
RUN ls /opt/apache-atlas/bin/
RUN ls atlas-hub
RUN ls /atlas-hub
RUN ls /opt/apache-atlas
RUN ls /opt/apache-atlas/bin

RUN chmod +x /opt/apache-atlas/bin/repair_index.py

COPY atlas-hub/atlas_start.py.patch atlas-hub/atlas_config.py.patch /opt/apache-atlas/bin/
RUN ls /opt/apache-atlas/bin
COPY atlas-hub/pre-conf/atlas-log4j.xml /opt/apache-atlas/conf/
COPY atlas-hub/pre-conf/atlas-log4j2.xml /opt/apache-atlas/conf/
COPY atlas-hub/pre-conf/atlas-auth/ /opt/apache-atlas/conf/
Expand Down

0 comments on commit c5952d0

Please sign in to comment.