Skip to content

Commit

Permalink
- remove unnecessary pkgs in Dockerfile
Browse files Browse the repository at this point in the history
- remove crete_model_db.sql
  • Loading branch information
weiguoz committed May 17, 2019
1 parent 7240393 commit 782ff65
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
24 changes: 0 additions & 24 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ RUN rm -rf /tmp/mysql-connector-java-5.1.47
RUN mkdir /dataset
COPY dataset/popularize_churn.sql /dataset/popularize_churn.sql
COPY dataset/popularize_iris.sql /dataset/popularize_iris.sql
COPY dataset/create_model_db.sql /dataset/create_model_db.sql

# Install the Go compiler.
RUN wget --quiet https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz
Expand All @@ -157,28 +156,5 @@ RUN mkdir -p /go/bin
ENV GOPATH /go
ENV PATH $PATH:$GOPATH/bin

# Install python and tensorflow env for run test
ARG CONDA_OS=Linux
RUN cd / && curl -sL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o mconda-install.sh && \
bash -x mconda-install.sh -b -p miniconda && \
rm mconda-install.sh
ENV PATH="/miniconda/bin:$PATH"

RUN ls /miniconda/bin && /miniconda/bin/conda create -y -q -n sqlflow-dev python=3.6 && \
echo ". /miniconda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "source activate sqlflow-dev" >> ~/.bashrc && \
bash -c "source activate sqlflow-dev && python -m pip install \
tensorflow==2.0.0-alpha0 \
mysql-connector-python \
impyla \
jupyter"
# Install protobuf
RUN wget --quiet https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip && \
apt-get install -y unzip && \
unzip -qq protoc-3.6.1-linux-x86_64.zip -d /usr/local && \
rm protoc-3.6.1-linux-x86_64.zip && \
go get github.com/golang/protobuf/protoc-gen-go && \
mv /go/bin/protoc-gen-go /usr/local/bin/

RUN echo "go get -t sqlflow.org/gohive && go test -v sqlflow.org/gohive" > /build_and_test.bash
RUN chmod +x /build_and_test.bash
1 change: 0 additions & 1 deletion docker/dataset/create_model_db.sql

This file was deleted.

1 change: 0 additions & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,5 @@ echo "waiting 30 seconds for hive to start..."
sleep 30
hive -f /dataset/popularize_churn.sql
hive -f /dataset/popularize_iris.sql
hive -f /dataset/create_model_db.sql

exec $@

0 comments on commit 782ff65

Please sign in to comment.