Skip to content

Instantly share code, notes, and snippets.

@Wittline
Created June 12, 2022 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wittline/8f74e692c2f9d4dd27a2e2a437e7e546 to your computer and use it in GitHub Desktop.
Save Wittline/8f74e692c2f9d4dd27a2e2a437e7e546 to your computer and use it in GitHub Desktop.
Dockerfile for an Apache Livy server
FROM docker.io/bitnami/spark:2
USER root
ENV LIVY_HOME /opt/bitnami/livy
WORKDIR /opt/bitnami/
RUN install_packages unzip \
&& curl "https://downloads.apache.org/incubator/livy/0.7.1-incubating/apache-livy-0.7.1-incubating-bin.zip" -O \
&& unzip "apache-livy-0.7.1-incubating-bin" \
&& rm -rf "apache-livy-0.7.1-incubating-bin.zip" \
&& mv "apache-livy-0.7.1-incubating-bin" $LIVY_HOME \
&& mkdir $LIVY_HOME/logs \
&& chown -R 1001:1001 $LIVY_HOME
USER 1001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment