Skip to content

Commit

Permalink
updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fabuzaid21 committed Apr 12, 2018
1 parent de03286 commit b39fab3
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,32 @@
FROM ubuntu:16.04

# Install dependencies, including Java 8 and Maven 3
RUN apt-get update -y
RUN apt-get install -y openjdk-8-jdk
RUN apt-get install -y maven
RUN apt-get install -y wget
RUN apt-get install -y curl
RUN apt-get install -y vim
RUN apt-get install -y pkg-config
RUN apt-get install -y cmake
RUN apt-get install -y build-essential
RUN apt-get install -y tmux
RUN apt-get install -y screen
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
curl \
git \
less \
man-db \
maven \
openjdk-8-jdk \
pkg-config \
screen \
sudo \
tmux \
vim \
wget

# Setup home environment
RUN useradd ubuntu
RUN mkdir /home/ubuntu && chown -R ubuntu: /home/ubuntu
# Setup home environment and password-less sudo access for user "ubuntu"
RUN adduser --home /home/ubuntu --disabled-password --gecos '' ubuntu
RUN adduser ubuntu sudo
RUN echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
WORKDIR /home/ubuntu
ENV HOME /home/ubuntu
ADD .bashrc /home/ubuntu/.bashrc
USER ubuntu

# Setup MacroBase
RUN cd /home/ubuntu && wget https://github.com/stanford-futuredata/macrobase/archive/v0.5.tar.gz
RUN cd /home/ubuntu && tar xvf v0.5.tar.gz
RUN cd /home/ubuntu/macrobase-0.5 && ./build.sh core sql

# Create a shared data volume. We need to create an empty file, otherwise the
# volume will belong to root. (This is probably a Docker bug.)
RUN mkdir /var/shared/
RUN touch /var/shared/placeholder
RUN chown -R ubuntu:ubuntu /var/shared
VOLUME /var/shared
RUN cd /home/ubuntu && wget https://github.com/stanford-futuredata/macrobase/archive/v1.0.tar.gz
RUN cd /home/ubuntu && tar xvf v1.0.tar.gz
RUN cd /home/ubuntu/macrobase-1.0 && ./build.sh core sql

0 comments on commit b39fab3

Please sign in to comment.