Coffee Script not found when compiling

Hi Gitlab-CE,

I have experimented problem when I try to install Gitlab-CE on a Docker Image based on Alpine Linux.

When I run the following command: sudo -u git bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production

I get the following error:

I, [2017-08-02T14:40:17.485299 #1622]  INFO -- : Writing /home/git/gitlab/public/assets/solarized-light-scheme-preview-c65e32b38abddf809082e2820e70eccc8fa82d4c4e17455c89f1843cd1b809ae.png
I, [2017-08-02T14:40:17.488018 #1622]  INFO -- : Writing /home/git/gitlab/public/assets/swipemode_sprites-522fecbb380f3edfa9b09006e88a51fbcb5c26d95dba87d2e09a363a863cd4e4.gif
I, [2017-08-02T14:40:17.491615 #1622]  INFO -- : Writing /home/git/gitlab/public/assets/touch-icon-ipad-retina-8ebe416f5313483d9c1bc772b5bbe03ecad52a54eba443e5215a22caed2a16a2.png
I, [2017-08-02T14:40:17.494673 #1622]  INFO -- : Writing /home/git/gitlab/public/assets/touch-icon-ipad-a6eec6aeb9da138e507593b464fdac213047e49d3093fc30e90d9a995df83ba3.png
I, [2017-08-02T14:40:17.497468 #1622]  INFO -- : Writing /home/git/gitlab/public/assets/touch-icon-iphone-retina-72e2aadf86513a56e050e7f0f2355deaa19cc17ed97bbe5147847f2748e5a3e3.png
I, [2017-08-02T14:40:17.500623 #1622]  INFO -- : Writing /home/git/gitlab/public/assets/touch-icon-iphone-5a9cee0e8a51212e70b90c87c12f382c428870c0ff67d1eb034d884b78d2dae7.png
I, [2017-08-02T14:40:17.503389 #1622]  INFO -- : Writing /home/git/gitlab/public/assets/white-scheme-preview-ce2e9957bbb5c9b6bdbb554984e1af877c89615db7e866aa9022430a6aba618f.png
rake aborted!
LoadError: cannot load such file -- coffee_script
/usr/bin/bundle:22:in `load'
/usr/bin/bundle:22:in `<main>'
Tasks: TOP => gitlab:assets:compile => assets:precompile
(See full trace by running task with --trace)

I am also attaching my local Gemfile, the Dockerfile, docker-compose.yml and the entrypoint.sh.

GemfileLocal

Dockerfile

docker-compose.yml

entrypoint.sh

I am also attaching the output from the command:

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true

Here it is:

Checking GitLab Shell ...

GitLab Shell version >= 5.4.0 ? ... OK (5.6.2)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... no
  Try fixing it:
  sudo chmod -R ug+rwX,o-rwx /home/git/repositories
  sudo chmod -R ug-s /home/git/repositories
  sudo find /home/git/repositories -type d -print0 | sudo xargs -0 chmod g+s
  For more information see:
  doc/install/installation.md in section "GitLab Shell"
  Please fix the error above and rerun the checks.
hooks directories in repos are links: ... can't check, you have no projects
Running /home/git/gitlab-shell/bin/check
FAILED: Failed to connect to internal API
Check GitLab API access: gitlab-shell self-check failed
  Try fixing it:
  Make sure GitLab is running;
  Check the gitlab-shell configuration file:
  sudo -u git -H editor /home/git/gitlab-shell/config.yml
  Please fix the error above and rerun the checks.

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... no
  Try fixing it:
  sudo -u git -H RAILS_ENV=production bin/background_jobs start
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  see log/sidekiq.log for possible errors
  Please fix the error above and rerun the checks.

Checking Sidekiq ... Finished

Checking Reply by email ...

Reply by email is disabled in config/gitlab.yml

Checking Reply by email ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet)
Init script exists? ... yes
Init script up-to-date? ... yes
Projects have namespace: ... can't check, you have no projects
Redis version >= 2.8.0? ... no
  Try fixing it:
  Update your redis server to a version >= 2.8.0
  For more information see:
  gitlab-public-wiki/wiki/Trouble-Shooting-Guide in section sidekiq
  Please fix the error above and rerun the checks.
Ruby version >= 2.3.3 ? ... yes (2.4.1)
Git version >= 2.7.3 ? ... yes (2.13.0)
Active users: ... 1

Checking GitLab ... Finished

How can I solve this problem?

I hope to hearing,

Edited Jun 30, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading