For example, I’ve written a tutorial in
.Rmd:
my_stac_r_tutorial/
├── stac-r-tutorial.Rmd
├── data/
├── docker-compose.yml(*optional)
└── README.md
A demonstration on YouTube
Creating Your First GitHub Repository and Pushing Code Youtube
# Initialize Git in your local directory (if not already initialized)
git init
# Add all files to the staging area
git add .
git config user.name username
git config user.email usermail@mail.com
# Commit the changes
git commit -m "Initial commit"
# Add the remote origin
git remote add origin https://github.com/username/stac-r-tutorial.git
# Push the changes to GitHub
git branch -M main
git push -u origin main
Creating Your First GitHub Repository and Pushing Code Youtube
Access the Service Configuration
Add Your GitHub Repository
GIT section add the url to your tutorial's github repository in the Repository fieldSet Resource Limits
1600m for CPU, 5Gi for memorySave the Configuration
Copy the URL in your browerdeployment_url
Launch the Service
Test Your Tutorial
In order to add our tutorial to the EDITO tutorials we need to add it to the tutorials.json list
https://gitlab.mercator-ocean.fr/pub/edito-infra/edito-tutorials-content/tutorials.json
We will clone this repository and add our tutorial to this list, using the the template provided in the README
EDITO GitLab Tutorials:
https://gitlab.mercator-ocean.fr/pub/edito-infra/edito-tutorials-content
Clone the Repo:
git clone https://gitlab.mercator-ocean.fr/pub/edito-infra/edito-tutorials-content.git
git checkout -b my-new-tutorial-branch
Push the New Branch:
git push origin my-new-tutorial-branch
Deployment URL from previous step
{
"name": {
"en": "My New Tutorial"
},
"abstract": {
"en": "A short description of your tutorial"
},
"authors": [
"The authors and contributors"
],
"types": [
"types": [
{
"en": "Tutorial"
}
],
"tags": [
"create",
],
"category": "training courses in data science", // "What-If applications", "Focus applications", "training courses in data science"
"imageUrl": "https://www.edito.eu/wp-content/uploads/2023/09/favicon.png",
"articleUrl": {
"en": "https://github.com/username/stac-r-tutorial", // Your github
}
"deploymentUrl": "https://datalab.dive.edito.eu/mydeployment.configuration.git.resources.etc"// DEPLOYMENT URL FROM PREVIOUS STEP
// parts: []
}
Ex. A tutorial on accessing data via STAC in R and how to subset ARCO data.
# Stage all changes
git add .
# Commit the changes with a descriptive message
git commit -m "Added my awesome tutorial to tutorials.json"
# Push the changes to your branch
git push origin my-new-tutorial-branch
Tutorial
.Rmd created and runs
GitHub repo is public and clean
Launch link tested
tutorials.json updated
Commited to Gitlab and passes Pipeline
Merge Request submitted
Once your Merge Request is approved
You’ve contributed to EDITO Datalab!
Your tutorial is now one click away from reproducible research!
Issues? Email edito-infra-dev@mercator-ocean.eu
Contribution Docs
<img src='../assets/images/editogitlabtutorials.png'>Tutorials Git Lab</img>
fit