Skip to content

Instantly share code, notes, and snippets.

@fawix
Last active August 29, 2020 23:45
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 fawix/58ca14126a76d9c273137c98ec59c040 to your computer and use it in GitHub Desktop.
Save fawix/58ca14126a76d9c273137c98ec59c040 to your computer and use it in GitHub Desktop.
Dockerfile for HANA build container
# Licensing CC BY-SA 4.0
FROM ubuntu
WORKDIR /usr/src/app
RUN apt-get update && \
apt-get install -y apt-utils && \
apt-get install -y openjdk-8-jre && \
apt-get install -y git && \
apt-get install -y less && \
apt-get install -y vim && \
apt-get install -y nodejs && \
apt-get install -y npm && \
apt-get install ca-certificates-java;
RUN update-ca-certificates -f;
# Setup JAVA_HOME -- useful for docker commandline
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
RUN export JAVA_HOME
WORKDIR /usr/src/app
# download from https://tools.hana.ondemand.com/#hanatools
COPY hanaclient-2.4.177-linux-x64.tar.gz .
RUN tar xzf hanaclient-2.4.177-linux-x64.tar.gz
RUN client/hdbinst --path /usr/src/app
# setup Tom's CLI
# https://github.com/SAP-samples/hana-developer-cli-tool-example
RUN git clone https://github.com/SAP-samples/hana-developer-cli-tool-example
RUN cd hana-developer-cli-tool-example
RUN npm config set @sap:registry=https://npm.sap.com
RUN npm install && npm link
RUN ln -s /usr/src/app/hdbsql /usr/sbin/hdbsql
WORKDIR /usr/src/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment