Skip to content

Commit

Permalink
#21-migration-fixing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishasoumya-02 committed Jan 14, 2025
1 parent 1813036 commit de9fd9e
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# syntax=docker/dockerfile:1
ARG VOLTO_VERSION
FROM plone/frontend-builder:${VOLTO_VERSION} as builder

ARG ADDON_NAME
ARG ADDON_PATH

COPY --chown=node:node ./ /app/src/addons/${ADDON_PATH}/

RUN <<EOT
/setupAddon
yarn install --network-timeout 1000000
yarn build
rm -rf cache omelette .yarn/cache
EOT

FROM plone/frontend-prod-config:${VOLTO_VERSION}

LABEL maintainer="Plone Community <[email protected]>" \
org.label-schema.name="volto-social-blocks" \
org.label-schema.description="Plone frontend image" \
org.label-schema.vendor="Plone Foundation"

COPY --from=builder /app/ /app/
35 changes: 35 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: "3"

services:

addon-dev:
build:
context: ../
dockerfile: ./dockerfiles/Dockerfile.dev
args:
ADDON_NAME: "${ADDON_NAME}"
ADDON_PATH: "${ADDON_PATH}"
VOLTO_VERSION: ${VOLTO_VERSION:-16}
volumes:
- ${CURRENT_DIR}:/app/src/addons/${ADDON_PATH}/
environment:
RAZZLE_INTERNAL_API_PATH: http://backend:8080/Plone
RAZZLE_API_PATH: http://localhost:8080/Plone
ports:
- 3000:3000
- 3001:3001
depends_on:
- backend
tty: true
profiles:
- dev

backend:
image: plone/plone-backend:${PLONE_VERSION:-6}
environment:
SITE: Plone
CORS_ALLOW_ORIGIN: '*'
ports:
- 8080:8080
profiles:
- dev
4 changes: 3 additions & 1 deletion packages/volto-heading-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"release-major-alpha": "release-it major --preRelease=alpha",
"release-alpha": "release-it --preRelease=alpha"
},
"dependencies": {},
"dependencies": {
"react-contenteditable": "3.3.6"
},
"peerDependencies": {
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down

0 comments on commit de9fd9e

Please sign in to comment.