Rails assets missing after building UBI images for CE
Summary
Trying to build the CE UBI images does not complete due to an asset problem
Steps to reproduce
- manually fill in all the required variables with v12.8.8 values (I got versions from https://gitlab.com/gitlab-org/gitlab-foss/-/tree/v12.8.8)
- since there is no CE assets available, I added a step to build them. For example, I added
RUN tar -czf gitlab-unicorn-ce.tar.gz /assets
at the end ofgitlab-unicorn/Dockerfile.build.ubi8
- docker build
Dockerfile.build.ubi8
for rails based images (gitlab-rails, workhorse, unicorn, etc.) -
docker cp
the assets tar.gz to my host machine, and use it as the build context for buildingDockerfile.ubi8
- docker build
Dockerfile.ubi8
successfully - lastly, I deploy the images to a k8s cluster
Configuration used
(Please provide a sanitized version of the configuration used wrapped in a code block (```yaml))
(Paste sanitized configuration here)
Current behavior
- The assets I build from
*.tar.gz
do not extract correctly. e.g. AfterADD gitlab-workhorse-ce.tar.gz /
, I need additional steps to copy assets from/assets/
to/usr
or/srv/gitlab
. - I can verify that unicorn container has assets that belong to
git:git
undersrv/gitlab/public/assets/
. However, unicorn cannot load them when I start the gitlab application.
Expected behavior
- I shouldn't need the additional
copy
s to extract all the assets - unicorn should be able to find all the assets provided by workhorse
Versions
- Chart: 3.0.4
- Kubernetes: (
kubectl version
)
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.5", GitCommit:"e6503f8d8f769ace2f338794c914a96fc335df0f", GitTreeState:"clean", BuildDate:"2020-06-27T00:38:11Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.11+IKS", GitCommit:"c33b093e937d1f9eee340f9bddfa14e1e54ad1a4", GitTreeState:"clean", BuildDate:"2020-06-17T21:37:54Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
- Helm: (
helm version
)version.BuildInfo{Version:"v3.2.1", GitCommit:"fe51cd1e31e6a202cba7dead9552a6d418ded79a", GitTreeState:"clean", GoVersion:"go1.13.10"}
Relevant logs
(Please provide any relevant log snippets you have collected, using code blocks (```) to format)
[gitlab-unicorn-55d8c976d7-bqdw7 gitlab-workhorse] "GET /assets/application-dc6b3e9c0fad345e7c45a569f4c34c3e94730c33743ae8ca055aa6669ad6ac56.css HTTP/1.1" 404 19 "<home_page>" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15" 0