-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix readme #211
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 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. | ||
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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" There was a problem hiding this comment. Choose a reason for hiding this commentThe 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: | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 foryaml
files to use.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done