Skip to content

Instantly share code, notes, and snippets.

View ericof's full-sized avatar
🌥️
I may be slow to respond.

Érico Andrei ericof

🌥️
I may be slow to respond.
View GitHub Profile
@ericof
ericof / docker-compose.yml
Created June 27, 2023 21:20
PortalBrasil.edu
version: "3"
services:
webserver:
image: traefik:v2.10
ports:
- 80:80
labels:
- traefik.enable=true
from foo import _
from plone import api
from plone.dexterity.content import Container
from plone.supermodel.model import Schema
from zope import schema
from zope.interface import implementer
ICONS = [
"building-columns",
FROM plone/plone-backend:6.0.0a4
# Add local code
COPY src ./src
RUN ./bin/pip install ./src
version: "3"
services:
frontend:
image: plone/plone-frontend:15.4.0
environment:
RAZZLE_INTERNAL_API_PATH: http://backend:8080/Plone
ports:
- "3000:3000"
depends_on:
@ericof
ericof / plone6.sh
Created April 14, 2022 20:29
Plone 6 and React in 3 Easy Steps
# Start Plone backend
docker run -d -p 8080:8080 plone/plone-backend:6.0.0a4
# Create a new frontend project
yo @plone/volto
# Start frontend
yarn start
@ericof
ericof / docker.sh
Last active April 26, 2022 14:03
Plone backend with Docker
# Start Plone on port 8080
docker run -it -e SITE=Plone -p 8080:8080 plone/plone-backend:6.0.0a4
@ericof
ericof / plone.sh
Created April 14, 2022 20:25
Plone pip installation
# Create a new Python virtual environment
python3 -m venv .
# Install Plone
./bin/pip install Plone -c https://dist.plone.org/release/6.0.0a4/constraints.txt
# Create a new instance
./bin/mkwsgiinstance -d .
# Start Plone
./bin/runwsgi -v etc/zope.ini
@ericof
ericof / keybase.md
Created March 24, 2016 14:39
keybase.md

Keybase proof

I hereby claim:

  • I am ericof on github.
  • I am ericof (https://keybase.io/ericof) on keybase.
  • I have a public key ASBSkC1a5pg6LrU-h_ZMlzECA4OTghEjRrUynyEgcFUPogo

To claim this, I am signing this object:

<ul class="list-central">
<li class="item-central item-videos first"><a class="link-central link-videos internal-link" href="resolveuid/bde905fcdd904ce0bd70d2d8e345aa78" target="_self" title="">Vídeos</a></li>
<li class="item-central item-audios"><a class="link-central link-audios internal-link" href="resolveuid/0b7269fba90e4e1ea5e9c68cf8364944" target="_self" title="">Áudios</a></li>
<li class="item-central item-infograficos"><a class="link-central link-infograficos internal-link" href="resolveuid/2552995189d84b999b2454536cbb55af" target="_self" title="">Infográficos</a></li>
<li class="item-central item-aplicativos"><a class="link-central link-aplicativos internal-link" href="http://www.aplicativos.gov.br/" target="_self" title="">Aplicativos</a></li>
<li class="item-central item-dadosabertos last-item"><a class="link-central link-dadosabertos internal-link" href="http://dados.gov.br/" target="_self" title="">Dados Abertos</a></li>
</ul>
@ericof
ericof / test_folder_constrains.robot
Created May 16, 2013 13:09
Robotframework test for the content type constrains form feature of Plone
*** Settings ***
Variables plone/app/testing/interfaces.py
Variables variables.py
Library Selenium2Library timeout=${SELENIUM_TIMEOUT} implicit_wait=${SELENIUM_IMPLICIT_WAIT}
Resource keywords.txt
Suite Setup Suite Setup