Step 1 : Setup your project on gitlab
Step 1.1 : Host your project on GitLab
To be able to deploy your shiny app automatically and easily, your project must be hosted in gitlab.pasteur.fr.
Depending on your stage of development, you can either create a blank project or adapt an existing project (if you have already hosted your project on GitLab).
Important
In accordance with IT department recommendations and to comply with best practices in tool development, your project should not be hosted on your personal GitLab’s page but on your team GitLab’s page.
Option 1: Create a blank project
Go to GitLab, click on “New Project” in the top right corner of the page, and choose “Blank Project”.
On the next screen, choose where you want your project to be hosted. Here, we consider
that you are a member of ada-team and want to name your project my-project.
Caution
Please don’t use “_” in your project name
Note
More details in gitlab pasteur documentation at https://gitlab.pasteur.fr/help/user/public_access
Option 2: Use an existing GitLab project
Let us consider that a project already exists, available at https://gitlab.pasteur.fr/ada-team/my-project
Select the “Advanced” section
Follow the instructions in “Transfer” section, by selecting your team name in “Select your new namespace” :
Step 1.2 : Re-use skeleton from shiny-k8s-example
Note
We now considere that your project is hosted at https://gitlab.pasteur.fr/ada-team/my-project
Extract and put the content of zipped folder at the root of your GitLab project.
- The archive contains:
my_project: a shiny example project in the directory named .chart: yaml configurations files describing how your application should be deployed in kubernetes.gitlab-ci.yaml: a preconfigured CI/CD pipeline building the docker image wrapping your app. You will later adapt it to actually deploy you application in kubernetesand more…
Note
shiny-k8s-example is designed for shiny app developers, it applies the shiny-k8s toolkit. It contains only “values”, “parameters” and “files” that need to be customise by the user.shiny-k8s is designed for “developper” of the toolkit, kubernetes administrators and contains more informations. It contains recipies for building the docker image, the helm package, and the documentation.shiny-k8s project, please visit the Developper Guide.