OSC / ood-images

14 stars 8 forks source link

Docker build failing on the ood-setup.sh #25

Open andrejcermak opened 1 year ago

andrejcermak commented 1 year ago

Hi, I was trying to run the OOD in docker, I followed the instructions in the readme file, but I am getting this error.

 => ERROR [7/8] RUN /opt/ood/ood-setup.sh                                                                                                 3.3s
------
 > [7/8] RUN /opt/ood/ood-setup.sh:
2.169 Changing password for user ood.
2.169 passwd: all authentication tokens updated successfully.
2.669 undefined method `fetch' for true:TrueClass
2.669 Run 'update_ood_portal --help' to see a full list of available options.
2.678 sed: can't read /etc/systemd/system/httpd.service.d/ood-portal.conf: No such file or directory
2.683 Failed to get D-Bus connection: Operation not permitted
------
Dockerfile:14
--------------------
  12 |     RUN yum install -y ondemand ondemand-dex && yum clean all && rm -rf /var/cache/yum/*
  13 |
  14 | >>> RUN /opt/ood/ood-setup.sh
  15 |     COPY launch-httpd /usr/local/bin/
  16 |
--------------------
ERROR: failed to solve: process "/bin/sh -c /opt/ood/ood-setup.sh" did not complete successfully: exit code: 1

Any ideas what's causing this issue?

johrstrom commented 1 year ago

I'm not entirely sure as all these are very out of maintenance. If you're tyring to get something to hack around on I'd build the development image.

Here are the instructions to do so:

git clone https://github.com/OSC/ondemand
cd ondemand
bundle config --local path vendor/bundle
bundle install
bundle exec rake dev:start

When you issue bundle exec rake dev:start it'll prompt you for a password that you can use to login with.