Skip to content

Commit

Permalink
fix(deploy): change repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
GeneLiuXe committed Jan 14, 2024
1 parent 948d663 commit cc6e72a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion deploy/docker-compose/Dockerfile_admin
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:18-alpine as build

COPY Beiming-System/frontend /learnware-frontend/
COPY Beimingwu/frontend /learnware-frontend/
WORKDIR /learnware-frontend

RUN npm install -g pnpm
Expand Down
8 changes: 4 additions & 4 deletions deploy/docker-compose/Dockerfile_backend
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu20.04
# suppose current folder contains these files:
# miniconda_install.sh (required): conda install file, should be python3.8
# pip.conf (optional): pip config file, if you are in China, you may need this
# Beiming-System (required): Beiming-System source code folder
# Beimingwu (required): Beimingwu source code folder
# Learnware (required): Learnware source code folder
# config.json (optional): config file for a specific deployment
# swords.txt (optional): sensitive words file
Expand All @@ -19,16 +19,16 @@ RUN apt-get update && apt-get install -y libffi-dev libssl-dev \
ca-certificates sqlite3 xz-utils zlib1g-dev lsb-release wget gnupg

COPY ./pip.conf* /etc/
ADD ./Beiming-System/backend/requirements.txt /
ADD ./Beimingwu/backend/requirements.txt /

RUN sh -c 'echo "deb http:https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | tee /etc/apt/trusted.gpg.d/postgres.asc
RUN apt-get update && apt-get install -y postgresql-client

RUN echo ${PATH}
RUN python3 -m pip install -r /requirements.txt
COPY ./Beiming-System/backend /learnware-backend/
COPY ./Beiming-System/deploy/kubernetes/learnware-check.yaml /learnware-backend/
COPY ./Beimingwu/backend /learnware-backend/
COPY ./Beimingwu/deploy/kubernetes/learnware-check.yaml /learnware-backend/
COPY ./Learnware /learnware/

WORKDIR /learnware-backend
Expand Down
6 changes: 3 additions & 3 deletions deploy/docker-compose/Dockerfile_frontend
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:18-alpine as build

# suppose current folder contains these files:
# Beiming-System (required): Beiming-System source code folder
# Beimingwu (required): Beimingwu source code folder
# nginx.conf (optional): config file for a specific deployment


COPY ./Beiming-System/frontend /learnware-frontend/
COPY ./Beimingwu/frontend /learnware-frontend/
COPY env* /learnware-frontend/packages/main/.env
WORKDIR /learnware-frontend

Expand All @@ -16,7 +16,7 @@ RUN pnpm run build:main

RUN echo "https://mirrors.aliyun.com/alpine/v3.14/main" > /etc/apk/repositories
RUN apk --no-cache add zip
COPY ./Beiming-System/deploy/static /learnware-frontend/static
COPY ./Beimingwu/deploy/static /learnware-frontend/static
# COPY ./static/* /learnware-frontend/static/
RUN zip -j /learnware-frontend/static/learnware-template.zip /learnware-frontend/static/learnware-template/*

Expand Down
10 changes: 5 additions & 5 deletions deploy/docker-compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ wget https://repo.anaconda.com/miniconda/Miniconda3-py38_23.9.0-0-Linux-x86_64.s

Prepare source code
```shell
mkdir -p Beiming-System/deploy/
cp -r ../../backend Beiming-System/
cp -r ../../frontend Beiming-System/
cp -r ../static Beiming-System/deploy/
git clone https://github.com/Learnware-LAMDA/Learnware.git
mkdir -p Beimingwu/deploy/
cp -r ../../backend Beimingwu/
cp -r ../../frontend Beimingwu/
cp -r ../static Beimingwu/deploy/
git clone https://gitee.com/beimingwu/learnware
```

## Build Image
Expand Down

0 comments on commit cc6e72a

Please sign in to comment.