Skip to content

Commit

Permalink
update wedpr-site image
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull committed Dec 6, 2024
1 parent 1d3caf7 commit 1fa7d60
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-files/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04 as wedpr_image
FROM ubuntu:18.04 as wedpr-image

# install python and java
RUN apt-get update && apt-get install -y tzdata language-pack-zh* \
Expand Down
7 changes: 7 additions & 0 deletions docker-files/base/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

echo "* build image: wedpr-image"

docker build -t wedpr-image .

echo "* build image: wedpr-image success"
7 changes: 7 additions & 0 deletions docker-files/jupyter/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

echo "* build image: wedpr-jupyter-image"

docker build -t wedpr-jupyter-image .

echo "* build image: wedpr-jupyter-image success"
10 changes: 9 additions & 1 deletion docker-files/site/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ ENTRYPOINT ["/bin/bash", "/data/home/wedpr/wedpr-pir/start.sh", "true"]
FROM wedpr-image:latest as wedpr-site
LABEL maintainer [email protected]

# install the requirements
COPY depends/requirements.txt /root/requirements.txt
# install the requirements
RUN pip install --no-cache-dir -i https://pypi.mirrors.ustc.edu.cn/simple/ -r root/requirements.txt

# TODO: use the non-test pip after uploaded
RUN pip install --no-cache-dir -i https://test.pypi.org/simple/ wedpr_mpc_generator

RUN mkdir -p /data/home/wedpr
COPY --from=builder /WeDPR/wedpr-site/dist/ /data/home/wedpr/wedpr-site
# TODO: fetch the web package from github tag
ENTRYPOINT ["/bin/bash", "/data/home/wedpr/wedpr-site/start.sh", "true"]
ENTRYPOINT ["/bin/bash", "/data/home/wedpr/wedpr-site/start.sh", "true"]
14 changes: 14 additions & 0 deletions docker-files/site/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

echo "* build image: wedpr-jupyter-worker"
docker build --target wedpr-jupyter-worker -t wedpr-jupyter-worker .
echo "* build image: wedpr-jupyter-worker success"


echo "* build image: wedpr-pir"
docker build --target wedpr-pir -t wedpr-pir .
echo "* build image: wedpr-pir success"

echo "* build image: wedpr-site"
docker build --target wedpr-site -t wedpr-site .
echo "* build image: wedpr-site success"
2 changes: 2 additions & 0 deletions docker-files/site/depends/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sqlparse~=0.4.1
sqlvalidator==0.0.17

0 comments on commit 1fa7d60

Please sign in to comment.