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

Fix readme #211

Merged
merged 3 commits into from
Aug 21, 2017
Merged
Changes from 1 commit
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
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
mkdir -p /home/pcloud/data/mysql
mkdir -p /home/pcloud/data/certs
```
- Copy Kubernetes CA files (ca.pem, ca-key.pem, ca.srl) to `pcloud_data/certs` folder
- Copy Kubernetes admin user key (admin.pem, admin-key.pem) to `pcloud_data/certs` folder
- Copy CephFS Key file(admin.secret) to `pcloud_data/certs` folder
- Copy `/paddlecloud/settings.py` file to `pcloud_data` folder
- Copy Kubernetes CA files (ca.pem, ca-key.pem, ca.srl) to `pcloud/data/certs` folder
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not put strict folders here, the folders are used by k8s/cloud_deployment.yaml, and these folders need to be full path begin from /. So users need to define their own hostpath for yaml files to use.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

- Copy Kubernetes admin user key (admin.pem, admin-key.pem) to `pcloud/data/certs` folder
- Copy CephFS Key file(admin.secret) to `pcloud/data/certs` folder
- Copy `/paddlecloud/settings.py` file to `pcloud/data` folder

- Configure `cloud_deployment.yaml`
- `spec.template.spec.containers[0].volumes` change the `hostPath` which match your data folder.
Expand Down Expand Up @@ -70,21 +70,30 @@ Then open your browser and visit http://cloud.paddlepaddle.org.
### Run locally
Make sure you are using a virtual environment of some sort (e.g. `virtualenv` or
`pyenv`).

```
virtualenv paddlecloudenv
# enable the virtualenv
source paddlecloudenv/bin/activate
```

To run for the first time, you need to:

```
cd paddlecloud
npm install
pip install -r requirements.txt
./manage.py migrate
./manage.py loaddata sites
npm run dev
```

If `npm` haven't been installed, you need to
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command may differ for different OSs, just add one line in Pre-Requirements: "nodejs"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


```
sudo apt-get install npm nodejs-legacy
```

Browse to http://localhost:8000/

If you are starting the server for the second time, just run:
Expand Down