Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save taufiqibrahim/5e14f3900c6af56c1be6db777415d5b5 to your computer and use it in GitHub Desktop.
Save taufiqibrahim/5e14f3900c6af56c1be6db777415d5b5 to your computer and use it in GitHub Desktop.
Data Pipeline Service Graph Using AWS Neptune - Graphexp Dockerfile
FROM nginx:stable
LABEL maintainer="[email protected]"
ENV http_proxy $http_proxy
ENV https_proxy $https_proxy
ENV no_proxy $no_proxy
ENV PATH /usr/local/bin:$PATH
ENV GRAPHEXP_SOURCE_URL $GRAPHEXP_SOURCE_URL
RUN apt-get update && \
apt-get -y install wget unzip
WORKDIR /tmp
RUN wget -O master.zip https://github.com/bricaud/graphexp/archive/v0.8.0.zip
RUN cd /tmp/ && unzip 'master.zip'
RUN mv graphexp-0.8.0/ graphexp-master/
RUN sed 's/const HOST = "localhost"/const HOST = self.location.hostname/' graphexp-master/scripts/graphConf.js > graphConf.js && \
mv graphConf.js graphexp-master/scripts && \
mv graphexp-master/* /usr/share/nginx/html && \
rm -R /tmp/graphexp-master && \
apt-get remove -y wget && \
apt-get remove -y unzip && \
rm -R /var/lib/apt/lists/*
WORKDIR /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment