@@ -143,6 +143,7 @@ RUN rm -rf /tmp/mysql-connector-java-5.1.47
143
143
RUN mkdir /dataset
144
144
COPY dataset/popularize_churn.sql /dataset/popularize_churn.sql
145
145
COPY dataset/popularize_iris.sql /dataset/popularize_iris.sql
146
+ COPY dataset/create_model_db.sql /dataset/create_model_db.sql
146
147
147
148
# Install the Go compiler.
148
149
RUN wget --quiet https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz
@@ -156,5 +157,28 @@ RUN mkdir -p /go/bin
156
157
ENV GOPATH /go
157
158
ENV PATH $PATH:$GOPATH/bin
158
159
160
+ # Install python and tensorflow env for run test
161
+ ARG CONDA_OS=Linux
162
+ RUN cd / && curl -sL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o mconda-install.sh && \
163
+ bash -x mconda-install.sh -b -p miniconda && \
164
+ rm mconda-install.sh
165
+ ENV PATH="/miniconda/bin:$PATH"
166
+
167
+ RUN ls /miniconda/bin && /miniconda/bin/conda create -y -q -n sqlflow-dev python=3.6 && \
168
+ echo ". /miniconda/etc/profile.d/conda.sh" >> ~/.bashrc && \
169
+ echo "source activate sqlflow-dev" >> ~/.bashrc && \
170
+ bash -c "source activate sqlflow-dev && python -m pip install \
171
+ tensorflow==2.0.0-alpha0 \
172
+ mysql-connector-python \
173
+ impyla \
174
+ jupyter"
175
+ # Install protobuf
176
+ RUN wget --quiet https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip && \
177
+ apt-get install -y unzip && \
178
+ unzip -qq protoc-3.6.1-linux-x86_64.zip -d /usr/local && \
179
+ rm protoc-3.6.1-linux-x86_64.zip && \
180
+ go get github.com/golang/protobuf/protoc-gen-go && \
181
+ mv /go/bin/protoc-gen-go /usr/local/bin/
182
+
159
183
RUN echo "go get -t sqlflow.org/gohive && go test -v sqlflow.org/gohive" > /build_and_test.bash
160
184
RUN chmod +x /build_and_test.bash
0 commit comments