Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epo 8414 #173

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
ARG BASE_TAG=latest
# Composer dependencies
FROM composer:2 as vendor

LABEL maintainer="[email protected]"

COPY api/composer.json composer.json
COPY api/composer.lock composer.lock
COPY api/plugins ./plugins
RUN composer install --ignore-platform-reqs --no-interaction --prefer-dist

FROM us-central1-docker.pkg.dev/skyviewer/public-images/craft-base-image:$BASE_TAG

LABEL maintainer="[email protected]"

USER root

# Copy in custom code from the host machine.
WORKDIR /var/www/html
COPY --chown=www-data:www-data api/ ./

COPY --from=vendor --chown=www-data:www-data /app/vendor ./vendor
RUN mkdir /var/secrets && [ -d ./storage ] || mkdir storage

USER www-data

CMD ["supervisord"]
4 changes: 3 additions & 1 deletion api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@

# Miscellenious
/log
/tmp
/tmp

supervisor.log
5 changes: 5 additions & 0 deletions api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"craftcms/google-cloud": "^2.0.0",
"craftcms/redactor": "3.0.4",
"jamesedmonston/graphql-authentication": "2.4.0",
"lsst-epo/canto-dam-assets": "^4.0",
"lsst/canto-dam-integrator": "dev-EPO-7854#v0.3.2",
"rynpsc/craft-phone-number": "^2.1.0",
"sebastianlenz/linkfield": "^2.1.4",
Expand All @@ -23,6 +24,10 @@
"type": "vcs",
"url": "https://github.com/lsst-epo/craft-canto-dam-integrator.git"
},
{
"type": "vcs",
"url": "https://github.com/lsst-epo/canto-dam-assets.git"
},
{
"type": "path",
"url": "plugins/nextbuilds"
Expand Down
120 changes: 118 additions & 2 deletions api/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,19 @@ fieldLayouts:
uid: 3855f60e-a753-427f-9244-8979083a7f3b
userCondition: null
warning: null
width: 100
width: 50
-
elementCondition: null
fieldUid: 61b9d842-7365-4bbf-883c-1b6433dc15f4 # Caption - rich text
instructions: null
label: 'Hero Caption'
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 6b1526fd-da23-4704-a956-01ff8ed74f8b
userCondition: null
warning: null
width: 50
-
elementCondition: null
fieldUid: 75f0b770-5006-4359-848f-96415196bfe0 # Date
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
columnSuffix: vwsjafwg
contentColumnType:
- 'cantoId:string'
- 'cantoAlbumId:string'
- 'cantoAssetData:text'
- 'cantoAlbumData:string'
fieldGroup: df8c8d8a-c7d1-45bf-b551-ef790a5b59ad # Callouts
handle: cantoDamAsset
instructions: null
name: 'Canto DAM Asset'
searchable: false
translationKeyFormat: null
translationMethod: none
type: lsst\cantodamassets\fields\CantoDamAsset
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
columnSuffix: null
contentColumnType: text
fieldGroup: df8c8d8a-c7d1-45bf-b551-ef790a5b59ad # Callouts
fieldGroup: 9940892d-32f4-4399-acac-ab559ce1c82b # Common
handle: captionRichText
instructions: ''
instructions: null
name: 'Caption - rich text'
searchable: true
settings:
availableTransforms: '*'
availableTransforms: ''
availableVolumes: ''
cleanupHtml: true
columnType: text
configSelectionMode: choose
defaultTransform: ''
manualConfig: ''
purifierConfig: ''
purifyHtml: '1'
purifierConfig: null
purifyHtml: true
redactorConfig: Simple.json
removeEmptyTags: '1'
removeInlineStyles: '1'
removeNbsp: '1'
showHtmlButtonForNonAdmins: ''
removeEmptyTags: true
removeInlineStyles: true
removeNbsp: true
showHtmlButtonForNonAdmins: false
showUnpermittedFiles: false
showUnpermittedVolumes: false
uiMode: normal
Expand Down
9 changes: 7 additions & 2 deletions api/config/project/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dateModified: 1691512708
dateModified: 1694461991
email:
fromEmail: $EMAIL_FROM_ADDRESS
fromName: $EMAIL_SENDER_NAME
Expand Down Expand Up @@ -220,6 +220,7 @@ meta:
635a4a93-f10b-4d3c-bd44-2ea1474ad4cb: 'Vertical Alignment' # Vertical Alignment
644c6b87-ac0c-4cdf-88be-744a5ee684bb: Description # Description
657b9edd-b6d3-4b7f-af89-36117c5d98a8: 'Rich Text Description' # Rich Text Description
676da0d6-dc63-48fd-a5cd-7253c956974c: 'Canto DAM Asset' # Canto DAM Asset
753b10b6-e9e6-44f5-a9d9-4a07788733e1: 'Content Ratio' # Content Ratio
824d9ca2-e755-4e41-8f6a-18e573fec8e4: 'News Posts' # News Posts
831db889-442e-4553-9076-fc3bc2843c8c: 'Hide title' # Hide title
Expand Down Expand Up @@ -398,6 +399,10 @@ meta:
fcfd6cca-d4db-49ea-a864-b6582b85fbcf: 'End Date' # End Date
fea30fc7-fc92-4268-961f-d514c1b903b8: 'Supporters'' Logos Alt' # Supporters' Logos Alt
plugins:
_canto-dam-assets:
edition: standard
enabled: true
schemaVersion: 1.0.0
asset-metadata:
edition: standard
enabled: true
Expand Down Expand Up @@ -2366,7 +2371,7 @@ plugins:
schemaVersion: 2.0.0
universal-dam-integrator:
edition: standard
enabled: true
enabled: false
schemaVersion: 1.0.0
settings:
appId: $CANTO_APP_ID
Expand Down