https://github.com/acdh-oeaw/drupal-default
A repository for our default Drupal setup.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.1%) to scientific vocabulary
Repository
A repository for our default Drupal setup.
Basic Info
- Host: GitHub
- Owner: acdh-oeaw
- Language: Dockerfile
- Default Branch: main
- Size: 138 KB
Statistics
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Information
For creating and populating Drupal instance.
We do have a default Dockerfile and docker-compose (currently work in progress) that is derived as a fork.
The website port is hard coded on 5000.
Workflow for creating a Drupal on k8s-cluster
- Create a fork and work in it
- Set the secrets in the production environment
- Adapt the starter.yaml and change the
APP_name - Adapt the
composer/composer.jsonor move it (see secton move Drupal) - Create the namespace on rancher
- Activate the actions in the settings
- Push and deploy, wait for the action to be run successful
- Create a persistent storage for the files and map to the files-directory (todo: add it to the values.yaml of the autodeply)
- Chown the files-directory to www-data
Move Drupal
If you move an old Drupal:
* Copy the files into the persistent storage files-directory
* Update the composer.json to Drupal 10 (set the used modules/themes to a Drupal 10 compliant version) in the composer-directory in the repo
* Move the custom modules and themes to custom-directory in the repo
Secrets to set
(when using the ACDH-CH starter worklfow add K8S_SECRET_ at the beginning)
| Name | Variable/Secret | Value |
| ------ | ------ | ------ |
| DBHOST | Variable | Database host name - text |
| DBNAME | Variable | Database name - text |
| DBPORT | Variable | Database port - text |
| DBPREFIX | Variable | Database prefix - text |
| DBUSER | Variable | Database user - text |
| DRUPALTRUSTEDHOST | Variable | Trusted host settings for Drupal (set to your domain) - specific JSON, e.g. '^mydomain\.at$', '^.+\.mydomain\.at$', |
| DBPSWD | Secret | Database password - text |
| DRUPALHASH | Secret | Drupal hash to identify website - text |
Import configuration
Config is used to upgrade Drupal websites. Always run a drush cex on the development instance and push it, so that changes are synced with the production instance. Don't do changes in the production instance! The config-directory is outside the web-environment.
For the basic instance, configs are not used, but the forks will use it. When merging the fork be aware that changes in config and custom may be overwritten (depending on the timeline). For the default-repo it is important, to leave the directories config and custom as they are, otherwise there may be problems when merging changes from drupal-default to the forks.
Local development
For local development run docker-compose up -d (adapt the container-name in the docker-compose.yml) but before create a .env-file holding the necessary environment variables. There is a default.env that you can take as a blueprint.
If you like to test an already existing Drupal, you also need to get a database dump and put it in the local MariaDB (use drush sql:dump and drush sql:cli to create and import the dump). You probably also need to run a drush cr.
Owner
- Name: Austrian Centre for Digital Humanities & Cultural Heritage
- Login: acdh-oeaw
- Kind: organization
- Email: acdh@oeaw.ac.at
- Location: Vienna, Austria
- Website: https://www.oeaw.ac.at/acdh
- Repositories: 476
- Profile: https://github.com/acdh-oeaw
GitHub Events
Total
- Issues event: 1
- Push event: 4
Last Year
- Issues event: 1
- Push event: 4
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 4
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 4
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- KlausIllmayer (4)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- ubuntu focal build
- composer/installers ^2.0
- drupal/core-composer-scaffold ^10.0
- drupal/core-project-message ^10.0
- drupal/core-recommended ^10.0
- drupal/smtp ^1.2
- drush/drush ^11.4