Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] remove unnecessary pkgs in Dockerfile #41

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 $@