ros-infrastructure / robots.ros.org

The source for robots.ros.org
http://robots.ros.org
Other
75 stars 158 forks source link

problems with running ./test_bash.sh (Fatal: The configuration file '/tmp/jekyll/localtest_config.yml' could not be found.) #275

Closed jerrycowell96 closed 1 year ago

jerrycowell96 commented 1 year ago

I followed the necessary steps on the contribute page to get our robot added to the site, however when i run the ./test_bash.sh, i receive this error,

./test_site.bash
+ set -o errexit
+ ghrocker --config _config.yml localtest_config.yml -- .
Extension volume doesn't support default arguments. Please extend it.
Active extensions ['ghpages', 'network', 'user']
Writing dockerfile to /tmp/tmpjvasyh2z/Dockerfile
vvvvvv
# Preamble from extension [ghpages]

# Preamble from extension [network]

# Preamble from extension [user]

FROM ubuntu:jammy
USER root
# Snippet from extension [ghpages]
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -q -y curl net-tools python3 python3-yaml build-essential nodejs ruby-full autoconf automake libtool pkg-config zlib1g-dev
RUN echo "gem: --no-document" > ~/.gemrc
RUN gem install bundler
RUN gem install jekyll
RUN gem install github-pages
RUN gem install jekyll-include-cache

EXPOSE 4000

# Snippet from extension [network]

# Snippet from extension [user]
# make sure sudo is installed to be able to give user sudo access in docker
RUN if ! command -v sudo >/dev/null; then \
      apt-get update \
      && apt-get install -y sudo \
      && apt-get clean; \
    fi

RUN existing_user_by_uid=`getent passwd "1000" | cut -f1 -d: || true` && \
    if [ -n "${existing_user_by_uid}" ]; then userdel -r "${existing_user_by_uid}"; fi && \
    existing_user_by_name=`getent passwd "farm-ng" | cut -f1 -d: || true` && \
    existing_user_uid=`getent passwd "farm-ng" | cut -f3 -d: || true` && \
    if [ -n "${existing_user_by_name}" ]; then find / -uid ${existing_user_uid} -exec chown -h 1000 {} + || true ; find / -gid ${existing_user_uid} -exec chgrp -h 1000 {} + || true ; fi && \
    if [ -n "${existing_user_by_name}" ]; then userdel -r "${existing_user_by_name}"; fi && \
    existing_group_by_gid=`getent group "1000" | cut -f1 -d: || true` && \
    if [ -z "${existing_group_by_gid}" ]; then \
      groupadd -g "1000" "farm-ng"; \
    fi && \
    useradd --no-log-init --no-create-home --uid "1000" -s /bin/bash -c "Farm-ng Tech,,," -g "1000" -d "/home/farm-ng" "farm-ng" && \
    echo "farm-ng ALL=NOPASSWD: ALL" >> /etc/sudoers.d/rocker

# Making sure a home directory exists if we haven't mounted the user's home directory explicitly
RUN mkdir -p "$(dirname "/home/farm-ng")" && mkhomedir_helper farm-ng
# Commands below run as the developer user
USER farm-ng
WORKDIR /home/farm-ng

^^^^^^
Building docker file with arguments:  {'path': '/tmp/tmpjvasyh2z', 'rm': True, 'nocache': False, 'pull': False}
building > Step 1/15 : FROM ubuntu:jammy
building >  ---> 3b418d7b466a
building > Step 2/15 : USER root
building >  ---> Using cache
building >  ---> 8d496c6f515e
building > Step 3/15 : ENV DEBIAN_FRONTEND noninteractive
building >  ---> Using cache
building >  ---> 803ac9dfc2b4
building > Step 4/15 : RUN apt-get update && apt-get install -q -y curl net-tools python3 python3-yaml build-essential nodejs ruby-full autoconf automake libtool pkg-config zlib1g-dev
building >  ---> Using cache
building >  ---> cccc6fa9fa31
building > Step 5/15 : RUN echo "gem: --no-document" > ~/.gemrc
building >  ---> Using cache
building >  ---> 3cb3d94d10db
building > Step 6/15 : RUN gem install bundler
building >  ---> Using cache
building >  ---> 2ac972de163a
building > Step 7/15 : RUN gem install jekyll
building >  ---> Using cache
building >  ---> 0515b66f1b57
building > Step 8/15 : RUN gem install github-pages
building >  ---> Using cache
building >  ---> ceb3d033bb00
building > Step 9/15 : RUN gem install jekyll-include-cache
building >  ---> Using cache
building >  ---> 699ad29f0808
building > Step 10/15 : EXPOSE 4000
building >  ---> Using cache
building >  ---> 4f1d9c0f94f0
building > Step 11/15 : RUN if ! command -v sudo >/dev/null; then       apt-get update       && apt-get install -y sudo       && apt-get clean;     fi
building >  ---> Using cache
building >  ---> c41ff659532b
building > Step 12/15 : RUN existing_user_by_uid=`getent passwd "1000" | cut -f1 -d: || true` &&     if [ -n "${existing_user_by_uid}" ]; then userdel -r "${existing_user_by_uid}"; fi &&     existing_user_by_name=`getent passwd "farm-ng" | cut -f1 -d: || true` &&     existing_user_uid=`getent passwd "farm-ng" | cut -f3 -d: || true` &&     if [ -n "${existing_user_by_name}" ]; then find / -uid ${existing_user_uid} -exec chown -h 1000 {} + || true ; find / -gid ${existing_user_uid} -exec chgrp -h 1000 {} + || true ; fi &&     if [ -n "${existing_user_by_name}" ]; then userdel -r "${existing_user_by_name}"; fi &&     existing_group_by_gid=`getent group "1000" | cut -f1 -d: || true` &&     if [ -z "${existing_group_by_gid}" ]; then       groupadd -g "1000" "farm-ng";     fi &&     useradd --no-log-init --no-create-home --uid "1000" -s /bin/bash -c "Farm-ng Tech,,," -g "1000" -d "/home/farm-ng" "farm-ng" &&     echo "farm-ng ALL=NOPASSWD: ALL" >> /etc/sudoers.d/rocker
building >  ---> Using cache
building >  ---> 672e9212cd4f
building > Step 13/15 : RUN mkdir -p "$(dirname "/home/farm-ng")" && mkhomedir_helper farm-ng
building >  ---> Using cache
building >  ---> 072bd24989f2
building > Step 14/15 : USER farm-ng
building >  ---> Using cache
building >  ---> d3d204cf2c16
building > Step 15/15 : WORKDIR /home/farm-ng
building >  ---> Using cache
building >  ---> b0ce919a3d77
building > Successfully built b0ce919a3d77
Executing command: 
docker run --rm -it -w /tmp/jekyll -v /home/farm-ng/robots.ros.org:/tmp/jekyll --network host  b0ce919a3d77 jekyll serve -w --config=_config.yml,localtest_config.yml
Configuration file: /tmp/jekyll/_config.yml
             Fatal: The configuration file '/tmp/jekyll/localtest_config.yml' could not be found.
/var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:181:in `rescue in read_config_file': The Configuration file '/tmp/jekyll/localtest_config.yml' could not be found. (LoadError)
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:165:in `read_config_file'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:198:in `block in read_config_files'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:195:in `each'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:195:in `read_config_files'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll.rb:118:in `configuration'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:44:in `configuration_from_options'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/serve.rb:83:in `block (2 levels) in init_with_program'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/exe/jekyll:15:in `<top (required)>'
        from /usr/local/bin/jekyll:25:in `load'
        from /usr/local/bin/jekyll:25:in `<main>'
/var/lib/gems/3.0.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in `initialize': No such file or directory @ rb_sysopen - /tmp/jekyll/localtest_config.yml (Errno::ENOENT)
        from /var/lib/gems/3.0.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in `open'
        from /var/lib/gems/3.0.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in `load_file'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:129:in `safe_load_file'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:167:in `read_config_file'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:198:in `block in read_config_files'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:195:in `each'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:195:in `read_config_files'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll.rb:118:in `configuration'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:44:in `configuration_from_options'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/serve.rb:83:in `block (2 levels) in init_with_program'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
        from /var/lib/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
        from /var/lib/gems/3.0.0/gems/jekyll-4.3.2/exe/jekyll:15:in `<top (required)>'
        from /usr/local/bin/jekyll:25:in `load'
        from /usr/local/bin/jekyll:25:in `<main>'

Could you please assist with this?