Failed to build 12.0.12 version
I want to get docker-gitlab version 12.0.12 image. But I can not found . So ,i clone source code and checkout to 12.0.4, edit Dockerfile . like this:
ARG VERSION=12.0.12
then, docker build -t gitlabce:12.0.12 .
then failed. the error told this:
Fetching gem metadata from https://rubygems.org/........ Your bundle is locked to mimemagic (0.3.2), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of mimemagic (0.3.2) has removed it. You'll need to update your bundle to a version other than mimemagic (0.3.2) that hasn't been removed in order to install. The command '/bin/sh -c bash ${GITLAB_BUILD_DIR}/install.sh' returned a non-zero code: 7
how to handle this problem? plz
You cannot do that in a normal way. If the reason you want to use older GitLab is to use mysql, I simply recommend you to migrate database.
GitLab depends on Rails, Rails depends on activestorage, activestorage depends on mimemagic.
mimemagic had a license issue (see details on https://github.com/rails/rails/issues/41750). Everything have been passed for about 4~5 month ago.
All of old releases (less than 0.3.5) have been yanked.
Again, You cannot do that. The build will fail.
NOTE : If you really do need older version of gitlab, try to modify assets/build/install.sh to modify Gemfile to use older mimemagic cloned to local path (but I'm not sure it works)