Skip to content

Commit e4587cf

Browse files
vibhathachaojun-zhang
authored andcommitted
feat(docker): adding initial docker setup (wip)
1 parent 77037f4 commit e4587cf

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

docker/Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM ubuntu:20.04
2+
3+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
4+
5+
WORKDIR /substrait
6+
7+
RUN DEBIAN_FRONTEND=noninteractive TZ=America/New_York apt-get update -y && apt-get upgrade -y \
8+
&& apt-get install -y sudo apt-utils tzdata
9+
RUN dpkg-reconfigure tzdata
10+
11+
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y git build-essential cmake
12+
13+
RUN echo "Cloning Substrait-CPP"
14+
15+
RUN git clone https://github.com/substrait-io/substrait-cpp.git \
16+
&& cd substrait-cpp \
17+
&& git submodule sync --recursive \
18+
&& git submodule update --init --recursive
19+
20+
RUN echo $(pwd)
21+
22+
RUN cd substrait-cpp && echo $(ls)
23+
24+
RUN echo $(pwd)
25+
26+
#RUN useradd -ms /bin/bash substrait && adduser substrait sudo
27+
28+
#RUN chown substrait /substrait/substrait-cpp
29+
30+
#USER substrait
31+
RUN apt-get install wget
32+
33+
RUN cd substrait-cpp && ./scripts/setup-ubuntu.sh
34+
35+
ENTRYPOINT ["/bin/bash"]
36+
37+
38+

scripts/setup-ubuntu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ DEPENDENCY_DIR=${DEPENDENCY_DIR:-$(pwd)}
1313

1414
# Install all dependencies.
1515
sudo --preserve-env apt install -y \
16+
wget \
1617
g++ \
1718
cmake \
1819
ccache \

0 commit comments

Comments
 (0)