The objective of this is to document the work, progress and efforts of the team during the Codefest. Members of the team should be able to check in to this document to find project details, instructions, design descriptions, etc. as needed for the Codefest activities.
Name | Organization | Contact | Time Zone |
---|---|---|---|
Lacey Sanderson | Univ. of Saskatchewan | lacey.sanderson@usask.ca | Regina, Canada |
Name | Organization | Contact | Time Zone |
---|---|---|---|
Risharde Ramnath | Univ. of Connecticut & Washington State Univ. | risharde@gmail.com | Atlantic |
Josh Burns | Washington State Univ. | josh.burns@wsu.edu | US Pacific |
Sean Buehler | Univ. of Tennessee & i5K & Univ. of Connecticut | sean.buehler@uconn.edu | US Eastern |
Blake Inderski | United States Swine Pathogen Database | blake.inderski@usda.gov | US Central |
Carolyn Caron | Univ. of Saskatchewan | carolyn.caron@usask.ca | Regina, Canada |
Katheryn Buble | Washington State Univ. | katheryn.buble@wsu.edu | US Pacific |
Reynold Tan | Univ. of Saskatchewan | rlt002@mail.usask.ca | Regina, Canada |
Yichao Shen | Univ. of Saskatchewan | yis412@mail.usask.ca | Regina, Canada |
Peter Richter | Univ. of Connecticut | peter.richter@uconn.edu | US Eastern |
Team leaders should reach out prior to Jan 11-15th to schedule team meetings when members can meet to discuss project objectives and divide work.
Date | Time | Where |
---|---|---|
Everyday this week | 17:00 UTC | GatherTown Tripal4 Room |
Please add your name beside which you prefer.
Add your availability and the amount of time you have to devote to this working group.
You should have a recent Drupal 8, Tripal 4 development site available for development. I highly recommend using the TripalDocker! Instructions for installation are here: https://tripal4.readthedocs.io/en/latest/install/docker.html
1. Install Docker for your system. I highly recommend Docker Desktop (I use the one for Mac OS X).
2. Clone the most recent version of Tripal 4 keeping track of where you cloned it.
3. Create a docker container based on the most recent TripalDocker image with your cloned version of Tripal4 mounted inside it.
The first time you run this command you will see Unable to find image 'tripalproject/tripaldocker:latest' locally
. This is not an error! It's just a warning and the command will automatically pull the image from the docker cloud :-)
So, what does this command mean? I'll try to explain the parts below for users new to docker :-) If you are familar with docker, feel free to ignore the next points!
docker run
command creates a container from a docker image. You can think of a dockerfile as instructions, an image as an OS and a container as a running machine.--name=t4d8
is how you will access the container later using docker exec
commands as shown in the usage section.-tid
part runs the container in the background with an interactive terminal ready to be accessed using exec.--publish=9000:80
opens port 9000 on your computer and ensures when you access localhost:9000 you will see the website inside the container.--volume=[localpath]:[containerpath]
ensures that your local changes will be sync'd with that directory inside the container. This makes development in the container a lot easier!The command above was written for linux or mac users. Here is some information for Windows users.
pwd
needs to be replaced with the absolute path in including the t4d8 directory. For example: docker run --publish=9000:80 --name=t4d8 -tid --volume=C:\Users\yourusername\Dockers\t4d8:/var/www/drupal8/web/modules/contrib/tripal tripalproject/tripaldocker:latest
4. Start the PostgreSQL database.
This will create a persistent Drupal/Tripal site for you to play with! Data is stored even when your computer restarts and Tripal will already be enabled with Chado installed.
Furthermore, the --volume
part of the run command ensures any changes made in your local directory are automatically copied into the docker container so you can live edit your website.
TripalDocker | |
---|---|
URL | http://localhost:9000 |
Administrative User | drupaladmin |
Administrative Password | some_admin_password |
Run Drupal Core PHP Unit Tests:
Run Drush to rebuild the cache
Query the database
Open a terminal to look inside the container
Wipe the container
Since Tripal 4 is under rapid development, there will likely be changes to the main branch during the course of your development on a single task. It is recommended that you pull these changed into your branch to ensure there will not be merge conflicts and that you are working with the most recent version.
How do you do this?
The above commands pull the most recent changes from github into your clone focused on the 9.x-4.x branch. Then you checkout your branch again and merge the changes into it.
When merging you will likely get a vi window pop-up asking for a commit message -the default message is fine.
Always use git status
after a merge to make sure there are no merge conflicts. If there are merge conflicts, check out this guide for how to resolve them and ask for help if in doubt!
NOTE: We are not currently making upgrade hooks to keep development rapid. As such you should check the recent changes to see if you need to uninstall and reinstall any of the modules. If you do, use docker exec -it t4d8 drush pm-uninstall tripal_chado
to uninstall and docker exec -it t4d8 drush en tripal_chado
to reinstall.
Add any questions/errors you come across while setting up your environment here -Even if you find the fix yourself! This will help others get their environments up and running and could help us find bugs that need fixing!
Carolyn: For some reason I had trouble using git on my Mac, received the error xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)...
, but running sudo xcode-select --reset
fixed it :)
#code-dev
channel.Pick a topic below to work on by adding your name after the item!
Feel free to team up :-)
Once the Codefest week is over, here is where the team documents the accomplishments that were made during the week!