Skip to content

Instantly share code, notes, and snippets.

@vndee
Created September 9, 2021 15:03
Show Gist options
  • Save vndee/6521c0f6e71bfce73079b7076de09ec4 to your computer and use it in GitHub Desktop.
Save vndee/6521c0f6e71bfce73079b7076de09ec4 to your computer and use it in GitHub Desktop.
Hadoop Distributed File System
# Simulated HDFS
ARG debian_buster_image_tag=8-jre-slim
FROM openjdk:${debian_buster_image_tag}
# -- Layer: OS + Python 3.7
ARG shared_workspace=/opt/workspace
RUN mkdir -p ${shared_workspace} && \
apt-get update -y && \
apt-get install -y python3 && \
ln -s /usr/bin/python3 /usr/bin/python && \
rm -rf /var/lib/apt/lists/*
ENV SHARED_WORKSPACE=${shared_workspace}
# -- Runtime
VOLUME ${shared_workspace}
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment