Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIGTOP-3996: Force a clean build of toolchain images #1178

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

guyuqi
Copy link
Member

@guyuqi guyuqi commented Sep 14, 2023

https://issues.apache.org/jira/browse/BIGTOP-3996

When I'm working on openEuler support (Bigtop toolchain images), some issues occurred:

++ sed -i -e 's|RUN bash /tmp/puppetize.sh|ENV PATH /usr/lib/jvm/java-1.8.0/bin:$PATH\nRUN bash /tmp/puppetize.sh|' Dockerfile
sed: preserving permissions for ‘./sedNQcfyR’: Operation not permitted
++ sed -i -e 's|RUN bash /tmp/puppetize.sh|RUN bash /tmp/puppetize.sh\nRUN dnf install -y initscripts|' Dockerfile
sed: preserving permissions for ‘./sedAbeaag’: Operation not permitted

After fixing the permisson issues above, I start to rebuild the image (bigtop/puppet) in the same node.

But the docker build process always adopt the cache one which was not built properly in the last time.
IMHO, it is reasonable to force Docker to rebuild a clean image without using the cache for Bigtop development or other use case scenarios.

The docker build process always adopt the cache one which was not built properly
in the last time. We should force Docker to rebuild a clean image without the cache.

Change-Id: Ifb4b660d2cb4a081d97e0fefc9edf5e5d6a80783
Signed-off-by: Yuqi Gu <[email protected]>
@guyuqi
Copy link
Member Author

guyuqi commented Sep 25, 2023

I confirmed that the relevant build has been verified.

@guyuqi guyuqi merged commit 17df51c into apache:master Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant