CoreMedia
18. März 2021 / Stephan Post
DEV /test (test.ce-em.es)
cdcr01
upcoming (upcoming.ce-em.es)
cdcr00
Reset cae-feeder-preview
root@cdcr0[0|1]:~# cd /home/gitlab-runner/builds/__BUILD_NUM__/0/cloudcms/coremedia-blueprints/global/deployment/docker
root@cdcr0[0|1]:docker# docker-compose logs cae-feeder-preview # check the log an then reset the feeder if neccessary
root@cdcr0[0|1]:docker# docker-compose run --entrypoint /bin/bash --rm management-tools
coremedia@a141a5a76ffa:~$ tools-context dev/management
coremedia@a141a5a76ffa:~$ cd tools/bin/
coremedia@a141a5a76ffa:~$ ./cm resetcaefeeder reset
-> Hit CTRL+D
root@cdcr0[0|1]:docker# docker-compose restart cae-feeder-preview
sudo bash
cd docker
docker-compose run --entrypoint /bin/bash --rm management-tools
tools-context dev/management
cd tools/bin/
./cm resetcaefeeder reset
exit
docker-compose restart cae-feeder-preview
Reset cae-feeder-live
root@cdcr0[0|1]:~# cd /home/gitlab-runner/builds/__BUILD_NUM__/0/cloudcms/coremedia-blueprints/global/deployment/docker
root@cdcr0[0|1]:docker# docker-compose logs cae-feeder-live # check the log an then reset the feeder if neccessary
root@cdcr0[0|1]:docker# docker-compose run --entrypoint /bin/bash --rm management-tools
coremedia@0b4d0260b0f4:~$ tools-context dev/master
coremedia@0b4d0260b0f4:~$ cd tools/bin/
coremedia@0b4d0260b0f4:~$ ./cm resetcaefeeder reset
-> Hit CTRL+D
root@cdcr0[0|1]:docker# docker-compose restart cae-feeder-live
sudo bash
cd docker
docker-compose run --entrypoint /bin/bash --rm management-tools
tools-context dev/master
cd tools/bin/
./cm resetcaefeeder reset
exit
docker-compose restart cae-feeder-live
Systeme
Martin, [31.03.2021, 10:57:03]:
cdadio ist CMS-9
Wir haben nur noch "cms development container runner".
Und das gitlab baut auf unserem "build runner" cbr00.
(https://gitlab.com/cloudcms/deployment/-/blob/master/envsrc/test/tenant.json)
cdcr01 -> test.ce-em.es (FUN mit Produktionsinhalt)
cdcr00 -> upcoming.ce-em.es (OTC mit Dev-Content)
Logfiles
ssh cdcr00
sudo su
cd docker
docker-compose logs -f studio-server (oder eine andere Komponente)
CAE
start CAE
cd $CM10/apps/cae/spring-boot/cae-preview-app
mvn spring-boot:run -Pdev -Dinstallation.host=localhost
maven
build without content and themes
cd $CM10/apps/cae/
mvn clean install -DskipTests=true -DskipContent=true -DskipThemes=true
Docker
mvn clean install -Pwith-docker
Content Export
docker
Beispiel für upcoming tools-context dev/management
ssh cdcr00
sudo su
cd docker
docker-compose run --entrypoint /bin/bash --rm management-tools
tools-context dev/management
export EXPORT_CONTENT_DIR=/coremedia/export
export BLOB_STORAGE_URL=/coremedia/export/blobs
mkdir /coremedia/export
./export-content /Sites/Development/Germany/German/Content/Homepage/SPO-Playground
copy files (from a new shell - keep the old one open). Archiv: export.gz im Home-Verzeichnis /coremedia
ssh cdcr00
sudo su
cd docker
# find container
docker ps | grep management-tools | awk '{print $NF}'
# cp archive from container to host
docker cp compose_management-tools_run_59202d2ef5c9:/coremedia/export.gz ./export.gz
k8s
DRAFT