Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchaoran2011 committed Feb 19, 2020
1 parent fa22471 commit 6350236
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,21 @@ RUN mkdir -p /opt/spark/work-dir && \
chmod -R u+x /opt/spark/bin && \
chmod -R u+x /opt/spark/sbin

FROM openjdk:8-alpine

COPY --from=0 /opt /opt

RUN set -ex && \
apt-get update && \
apk upgrade --no-cache && \
ln -s /lib /lib64 && \
apt install -y bash tini wget libc6 libpam-modules libnss3 && \
apk add --no-cache bash tini libc6-compat linux-pam nss && \
mkdir -p /opt/spark && \
mkdir -p /opt/spark/work-dir && \
touch /opt/spark/RELEASE && \
rm /bin/sh && \
ln -sv /bin/bash /bin/sh && \
echo "auth required pam_wheel.so use_uid" >> /etc/pam.d/su && \
chgrp root /etc/passwd && chmod ug+rw /etc/passwd && \
rm -rf /var/cache/apt/* && \
mkdir -p /etc/metrics/conf && \
mkdir -p /prometheus && \
wget https://s3-us-west-2.amazonaws.com/fdp-kubernetes-builds/spark/extra/metrics.properties -O /etc/metrics/conf/metrics.properties && \
Expand Down

0 comments on commit 6350236

Please sign in to comment.