Skip to content

Commit

Permalink
Fix dev container (#4141)
Browse files Browse the repository at this point in the history
* fix issue with building container WRT sudo requiring a password

* cache layers in podman
  • Loading branch information
johrstrom authored Feb 13, 2025
1 parent 07f8d14 commit a943e65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ RUN dnf -y update && \
dnf install -y gcc gcc-c++ libyaml-devel nc && \
dnf clean all && rm -rf /var/cache/dnf/*

RUN chmod 600 /etc/shadow

RUN sed -i 's#^CREATE_MAIL_SPOOL=yes#CREATE_MAIL_SPOOL=no#' /etc/default/useradd; \
grep $GID /etc/group >/dev/null || groupadd -g $GID $USER; \
useradd -l -u $UID --create-home --gid $GID $USER && \
Expand Down
1 change: 1 addition & 0 deletions lib/tasks/rake_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def image_exists?(image_name)

def buildah_build_cmd(docker_file, image_name, image_tag: ood_image_tag, extra_args: [])
args = ['bud', '--build-arg', "VERSION=#{ood_version}"]
args.concat(['--layers'])
args.concat ['-t', "#{image_name}:#{image_tag}", '-f', docker_file]
args.concat extra_args

Expand Down

0 comments on commit a943e65

Please sign in to comment.