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

[PPML] Update Fl Demo Dockerfile #4078

Merged
Merged
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
5 changes: 4 additions & 1 deletion scala/ppml/demo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM intelanalytics/bigdl-ppml-trusted-big-data-ml-python-graphene:0.14.0-SNAPSHOT

ADD bigdl-ppml-spark_3.1.2-0.14.0-SNAPSHOT-jar-with-dependencies.jar $BIGDL_HOME/jars
RUN NIGHTLY_VERSION=$(echo $(echo `wget -qO - https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/bigdl/bigdl-ppml-spark_$SPARK_VERSION/$BIGDL_VERSION/maven-metadata.xml \
| sed -n '/<value>[0-9]*\.[0-9]*\.[0-9]*-[0-9][0-9]*\.[0-9][0-9]*-[0-9][0-9]*.*value>/p' | head -n1 | awk -F'>' '{print $2}' | tr '</value' ' '`)) && \
wget https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/bigdl/bigdl-ppml-spark_$SPARK_VERSION/$BIGDL_VERSION/bigdl-ppml-spark_$SPARK_VERSION-$NIGHTLY_VERSION-jar-with-dependencies.jar -O $BIGDL_HOME/jars/bigdl-ppml-spark_3.1.2-0.14.0-SNAPSHOT-jar-with-dependencies.jar

ADD ppml-conf.yaml /ppml/trusted-big-data-ml
ADD runFlServer.sh /ppml/trusted-big-data-ml
ADD runHflClient1.sh /ppml/trusted-big-data-ml
Expand Down
15 changes: 7 additions & 8 deletions scala/ppml/demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,18 @@ java -cp $SPARK_HOME/jars/*:../target/bigdl-ppml-spark_3.1.2-0.14.0-SNAPSHOT-jar
## Before running code

### Prepare Docker Image
#### Build jar from Source
Pull image from dockerhub.

```bash
cd ../.. && bash make-dist.sh -DskipTests -Pspark_3.x
mv ppml/target/bigdl-ppml-spark_3.1.2-0.14.0-SNAPSHOT-jar-with-dependencies.jar ppml/demo
cd ppml/demo
docker pull intelanalytics/bigdl-ppml-trusted-fl-graphene:0.14.0-SNAPSHOT
```

#### Build Image
Modify your `http_proxy` in `build-image.sh` then run:
Also, you can build image with `build-image.sh`. Configure environment variables in `build-image.sh`.

```bash
./build-image.sh
Build the docker image:

``` bash
bash build-image.sh
```

### Prepare the Key
Expand Down