Skip to content

Commit b39fab3

Browse files
committed
updated Dockerfile
1 parent de03286 commit b39fab3

File tree

1 file changed

+22
-25
lines changed

1 file changed

+22
-25
lines changed

Dockerfile

+22-25
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,32 @@
22
FROM ubuntu:16.04
33

44
# Install dependencies, including Java 8 and Maven 3
5-
RUN apt-get update -y
6-
RUN apt-get install -y openjdk-8-jdk
7-
RUN apt-get install -y maven
8-
RUN apt-get install -y wget
9-
RUN apt-get install -y curl
10-
RUN apt-get install -y vim
11-
RUN apt-get install -y pkg-config
12-
RUN apt-get install -y cmake
13-
RUN apt-get install -y build-essential
14-
RUN apt-get install -y tmux
15-
RUN apt-get install -y screen
5+
RUN apt-get update && apt-get install -y \
6+
build-essential \
7+
cmake \
8+
curl \
9+
git \
10+
less \
11+
man-db \
12+
maven \
13+
openjdk-8-jdk \
14+
pkg-config \
15+
screen \
16+
sudo \
17+
tmux \
18+
vim \
19+
wget
1620

17-
# Setup home environment
18-
RUN useradd ubuntu
19-
RUN mkdir /home/ubuntu && chown -R ubuntu: /home/ubuntu
21+
# Setup home environment and password-less sudo access for user "ubuntu"
22+
RUN adduser --home /home/ubuntu --disabled-password --gecos '' ubuntu
23+
RUN adduser ubuntu sudo
24+
RUN echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
2025
WORKDIR /home/ubuntu
2126
ENV HOME /home/ubuntu
22-
ADD .bashrc /home/ubuntu/.bashrc
2327
USER ubuntu
2428

2529
# Setup MacroBase
26-
RUN cd /home/ubuntu && wget https://github.com/stanford-futuredata/macrobase/archive/v0.5.tar.gz
27-
RUN cd /home/ubuntu && tar xvf v0.5.tar.gz
28-
RUN cd /home/ubuntu/macrobase-0.5 && ./build.sh core sql
29-
30-
# Create a shared data volume. We need to create an empty file, otherwise the
31-
# volume will belong to root. (This is probably a Docker bug.)
32-
RUN mkdir /var/shared/
33-
RUN touch /var/shared/placeholder
34-
RUN chown -R ubuntu:ubuntu /var/shared
35-
VOLUME /var/shared
30+
RUN cd /home/ubuntu && wget https://github.com/stanford-futuredata/macrobase/archive/v1.0.tar.gz
31+
RUN cd /home/ubuntu && tar xvf v1.0.tar.gz
32+
RUN cd /home/ubuntu/macrobase-1.0 && ./build.sh core sql
3633

0 commit comments

Comments
 (0)