Skip to content

Instantly share code, notes, and snippets.

@paul121
Last active October 31, 2022 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paul121/a3fa4eb7a2773aa87906ddae4e3282db to your computer and use it in GitHub Desktop.
Save paul121/a3fa4eb7a2773aa87906ddae4e3282db to your computer and use it in GitHub Desktop.
farmOS platformsh template
# Platform.sh Project Initialization Template
#
# This file defines settings and workflow modifications that allow a git
# repository to be deployed to Platform.sh and its white-label partners. A
# project template can be a fully functioning ready-made application or a
# quick-start point for custom development work.
#
# It contains elements that affect the behaviour upon the initialisation of
# a new project (for example minimal plan sizes) as well as elements that
# allow Platform.sh to present it in a user interface (such as the description
# of the project, tags, an icon etc.).
# The schema is versioned so that we can establish code paths differently in the future if we need to change this.
version: 1
# Templates are a small amount of information supporting a template URL.
# Each template is selectable at the project-creation step.
info:
# Unique machine name, prefaced by a vendor or organization identifier.
# The vendor should be the lowercase name of your company, organization, or project, and the project name
# the lowercase name of the template. This may be the same as the vendor in a single-product case.
id: farmos/farmos
# The human-readable name of the template. This is how the template will be named in the user interface.
name: farmOS
# Human-readable descriptive text for the template. Supports limited HTML.
# This field should be 1-3 sentences describing how the project is setup, assuming the reader already knows what
# the application is.
description: |
<p>This template builds a base farmOS instance using a composer workflow. It is pre-configured to use PostgreSQL, php-geos and Drupal best practices.</p>
<p>farmOS is installed with default modules on first deploy. Use composer to include contrib moudles or build custom modules directly in the codebase.</p>
<p>farmOS is a web-based application for farm management, planning, and record keeping.</p>
# A list of tags associated with the template. These should be highly generic terms like "CMS", "Framework", and
# the language in which the application is written.
tags:
- Drupal
- PHP
- CMS
# An image URI (either base64-encoded or a URL) representing the template. Base64-encoded SVG strongly preferred.
image: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbEAAABpCAMAAACDFO11AAAAIVBMVEVMaXE0ZzMzZzMzZzM0aDNVmTE1aTMzZjM0aDMzZjMzZjMP8UbyAAAACnRSTlMAkGvKR/0j5K7yg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rUqHy/IrnfBMxTDUm9WE5cv1d6u74a8+5t1b4KmJVJ15VwLL1HpzGZSsxKG9lrN8YV7z0lxHjofXh4pkJlTNe1zDCTz4UctxVttXdysg/6XgrY2siPdu8Pnc/q90uaMZOaldqvilr3+Pvf7tRNN2vFP2f98v+ZvNk75+d3M/NMTTlw/2zz3DvtP7f/gEuhaHszE8m4wAAAABJRU5ErkJggg==
# Additional notes displayed in the template's detail view.
# Each note object is displayed as a small section heading with content below. Supports limited HTML.
# The most important is a section that lists the "Apps and Services" (container images) that the project uses.
# These are the name/version of the Platform.sh containers, not including the Nginx router.
notes:
- heading: "Apps & Services"
content: "PHP 7.4<br/>Postgresql 12"
- heading: "Features"
content: |
Drupal 9<br />
PHP 7.4<br />
PostgreSQL 12<br />
PHP-GEOS<br />
# This key describes the initialization call made to the master environment at
# project creation time. This is part of the full v2 UI operation mode, which
# places project schema/options selection early in the creation process, rather
# than later as it exits now. To allow this schema to be backwards-compatible,
# this key also gets mapped to the appropriate location in project.settings so
# that the current UI can have its own workflow overridden as well.
initialize:
repository: https://github.com/paul121/farmos-platform-template.git@main
config: null
files: []
profile: PHP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment