Skip to content

Commit

Permalink
Merge branch 'PecanProject:develop' into CNN-Advance-2
Browse files Browse the repository at this point in the history
  • Loading branch information
sambhavnoobcoder authored Aug 15, 2024
2 parents b732903 + 5f7115b commit 6843b95
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 12 deletions.
45 changes: 45 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Contributor Covenant Code of Conduct

**Our Pledge**

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

**Our Standards**

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting



**Our Responsibilities**

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

**Scope**

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

**Enforcement**

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at pecanproj[at]gmail.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

**Attribution**

This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org/) version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).
15 changes: 7 additions & 8 deletions DEV-INTRO.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ You can copy the [`docker/env.example`](docker/env.example) file as .env in your
cp docker/env.example .env
```


The variables we want to modify are:

- `COMPOSE_PROJECT_NAME`, the prefix for all containers. Set this to "pecan".
Expand Down Expand Up @@ -181,13 +180,13 @@ Next copy the R packages from a container to volume `pecan_lib`. This is not rea

You can copy all the data using the following command. This will copy all compiled packages to your local machine.

```
```bash
docker run -ti --rm -v pecan_R_library:/rlib pecan/base:develop cp -a /usr/local/lib/R/site-library/. /rlib/
```

If you have set a custom UID or GID in your `.env`, change ownership of these files as described above for the data volume. E.g. if you use the same UID in the containers as on your host machine, run:

```
```bash
docker run -ti --rm -v pecan_R_library:/rlib pecan/base:develop chown -R "$(id -u):$(id -g)" /rlib/
```

Expand All @@ -210,7 +209,7 @@ For Windows
copy docker\web\config.docker.php web\config.php
```

## PEcAn Development
## PEcAn Development Setup

To begin development we first have to bring up the full PEcAn stack. This assumes you have done once the steps above. You don\'t need to stop any running containers, you can use the following command to start all containers. At this point you have PEcAn running in docker.

Expand Down Expand Up @@ -239,13 +238,13 @@ R CMD ../web/workflow.R --settings docker.sipnet.xml

A better way of doing this is developed as part of GSOC, in which case you can leverage of the restful interface defined, or using the new R PEcAn API package.

# PEcAn URLs
## PEcAn URLs

You can check the RabbitMQ server used by pecan using <https://rabbitmq.pecan.localhost> on the same server that the docker stack is running on. You can use rstudio either with <http://server/rstudio> or at <http://rstudio.pecan.localhost>. To check the traefik dashboard you can use <http://traefik.pecan.localhost>.

If the stack is running on a remote machine, you can use ssh and port forwarding to connect to the server. For example `ssh -L 8000:localhost:80` will allow you to use <http://rabbitmq.pecan.localhost:8000/> in your browser to connect to the remote PEcAn server RabbitMQ.

# Directory Structure
## Directory Structure

Following are the main folders inside the pecan repository.

Expand Down Expand Up @@ -281,9 +280,9 @@ Some of the docker build files. The Dockerfiles for each model are placed in the

Small scripts that are used as part of the development and installation of PEcAn.

# Advanced Development Options
## Advanced Development Options

## Reset all containers/database
### Reset all containers/database

If you want to start from scratch and remove all old data, but keep your pecan checked out folder, you can remove the folders where you have written the data (see `folders` below). You will also need to remove any of the docker managed volumes. To see all volumes you can do `docker volume ls -q -f name=pecan`. If you are sure, you can either remove them one by one, or remove them all at once using the command below. **THIS DESTROYS ALL DATA IN DOCKER MANAGED VOLUMES.**.

Expand Down
6 changes: 3 additions & 3 deletions models/sipnet/model_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"creator": "Rob Kooper <[email protected]>",
"contributors": [],
"links": {
"source": "http://someurl/code",
"issues": "http://someurl/issues",
"documentation": "http://someurl/wiki"
"source": "https://github.com/PecanProject/sipnet",
"issues": "https://github.com/PecanProject/sipnet/issues",
"documentation": "https://github.com/PecanProject/sipnet/tree/master/docs"
},
"inputs": {},
"bibtex": []
Expand Down
1 change: 0 additions & 1 deletion scripts/Makefile.depends

This file was deleted.

0 comments on commit 6843b95

Please sign in to comment.