Hi team, we are exploring how to rebuild images fo...
# all-things-deployment
b
Hi team, we are exploring how to rebuild images for some custom code changes. Can I check whatโ€™s the suggested approach to rebuild below 4 images?
Copy code
linkedin/datahub-gms
linkedin/datahub-frontend-react
linkedin/datahub-mae-consumer
linkedin/datahub-mce-consumer
Do we run
docker build
command with the corresponding Dockerfile?
p
Hey @boundless-student-48844, You can download the source code and execute the following command in the main folder. For GMS:
Copy code
docker build -t linkedin/datahub-gms:custom-tag -f docker/datahub-gms/Dockerfile .
You can apply the same convention for the other services as well.
b
Thanks @polite-flower-25924, i tried that command but seems below step takes lots of time to finish (> 1224 seconds)
Copy code
RUN cd /datahub-src && ./gradlew :metadata-service:war:build -x test
So i terminated it. Maybe lemme try again and let it run. Do you know how long it take for the build step to finish for datahub-gms?
however, when i run via
Copy code
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -p datahub build
it gets built quite fast (535 seconds)
oh i tried again, it works! Not sure if it was because i ran multiple docker build concurrently so it stuck just now ๐Ÿ˜…
๐ŸŽ‰ 2
๐Ÿ™Œ 1