-
Notifications
You must be signed in to change notification settings - Fork 1
Locally Develop CMS and TUP CMS
Wesley B edited this page Nov 2, 2023
·
16 revisions
In Core-CMS make changes. Snapshot the container. In TUP-UI, use the local CMS image.
Note If another CMS container is running, shut it down.
- if docker container is not already built:
docker-compose -f docker-compose.dev.yml build
docker-compose -f docker-compose.dev.yml up --detach
docker exec -it core_cms /bin/bash
npm run build:css && python manage.py collectstatic --no-input
exit
-
docker commit core_cms
Of the outputsha256:f33...
, copy thef33...
. It is your__IMAGE_ID__
. -
docker tag __IMAGE_ID__ __LOCAL_TAG_NAME__
You may choose any name you would like for__LOCAL_TAG_NAME__
.
The container snapshot steps are a streamlined version of (internal) How to Create Docker Image from Local Container.
Note If another CMS container is running, shut it down.
- Edit
apps/tup-cms/Dockerfile
. - Change
FROM taccwma/core-cms:...
toFROM __LOCAL_TAG_NAME__
. docker-compose -f apps/tup-cms/docker-compose.dev.yml build --no-cache
npx nx serve tup-cms
TACC ACI WMA Core-CMS Project Documentation