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

Speed up slow docker build #503

Open
lens0021 opened this issue Apr 18, 2021 · 4 comments · Fixed by #504
Open

Speed up slow docker build #503

lens0021 opened this issue Apr 18, 2021 · 4 comments · Fixed by #504
Labels

Comments

@lens0021
Copy link
Member

Takes 35-40 minutes now: https://github.com/femiwiki/docker-mediawiki/actions/workflows/ci.yml

@lens0021
Copy link
Member Author

아직도 느림!

@lens0021 lens0021 reopened this Apr 19, 2021
@lens0021 lens0021 removed their assignment Jun 16, 2021
@simnalamburt
Copy link
Member

https://hub.docker.com/r/docker/dockerfile

# syntax = docker/dockerfile:1.3
FROM ubuntu
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
  apt update && apt-get --no-install-recommends install -y gcc

몬가 도커 자체에 캐싱기능이 있는듯하다?!

@lens0021 lens0021 moved this to To do in femiwiki.com Jan 14, 2023
@lens0021
Copy link
Member Author

lens0021 commented Mar 2, 2024

캐싱 뭔가 잘 작동 안 되어 다시 이미지를 여러 개로 쪼개는 해법으로 되돌아갔습니다

https://github.com/femiwiki/docker-mediawiki/tree/5de20b926d98f63f7f01fcfb9b592448110012d7/dockers

@lens0021 lens0021 closed this as completed Mar 2, 2024
@github-project-automation github-project-automation bot moved this from To do to In Progress in femiwiki.com Mar 2, 2024
@lens0021
Copy link
Member Author

lens0021 commented Aug 3, 2024

플랫폼 따라 빌드한 이미지 둘을 아래 처럼 하나로 묶는 게 된다고 하니
각각에서 캐싱 켜고 빌드해서 푸시하고 나중에 합쳐보는 것도 해볼만 할 것 같아 다시 엽니다

 docker push foo-bar:1.0.0-amd64
 docker push foo-bar:1.0.0-arm64
 
 docker manifest create foo-bar:1.0.0 \
   foo-bar:1.0.0-amd64 \
   foo-bar:1.0.0-arm64
 
 docker manifest push foo-bar:1.0.0

@lens0021 lens0021 reopened this Aug 3, 2024
@github-project-automation github-project-automation bot moved this from In Progress to To do in femiwiki.com Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To do
Development

Successfully merging a pull request may close this issue.

2 participants