Skip to content

Commit

Permalink
chore: docker compose dev (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Dec 2, 2022
1 parent 4ae28cb commit 2fc237d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 10 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Generate constraints.txt from constraint.cfg
run: |
cd docker
make constraints.txt
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand Down Expand Up @@ -56,7 +51,7 @@ jobs:
- name: Build and push container image
uses: docker/build-push-action@v3
with:
context: ./docker
context: .
push: true
tags: ${{ steps.get_image_id.outputs.IMAGE_ID }}:${{ steps.get_version.outputs.VERSION }}
platforms: linux/amd64,linux/arm64
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/src/*
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM plone/plone-backend:5.2.9
COPY docker/create-constraints.py docker/constraints.cfg docker/requirements.txt /app/
COPY versions.cfg /
RUN pip install -r https://dist.plone.org/release/5.2.9/requirements.txt ${PIP_PARAMS} && \
python create-constraints.py constraints.cfg constraints.txt && \
./bin/pip install --ignore-requires-python -r requirements.txt -c constraints.txt ${PIP_PARAMS} && \
find /app/lib -name LC_MESSAGES -exec chown -R plone:plone {} \;
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'

services:
backend:
build: .
ports:
- "8080:8080"
environment:
- SITE=Plone
- PROFILES=design.plone.policy:default
# TODO: improve this part
# i.e. develop redturtle.volto withd docker
# 1. run something like "cd src && git clone [email protected]:redturtle/redturtle.volto"
# 2. uncomment the line beloow
# - DEVELOP=/app/src/redturtle.volto
volumes:
- ./src:/app/src

4 changes: 0 additions & 4 deletions docker/Dockerfile

This file was deleted.

Empty file added src/.gitkeep
Empty file.

0 comments on commit 2fc237d

Please sign in to comment.