Skip to content

Commit

Permalink
Updated Ruby 3.1.5 -> 3.1.6; set tebako prefix to '/root/.tebako' (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx authored Jun 28, 2024
1 parent d53dac7 commit 0281a1b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions alpine-3.17.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ RUN apk --no-cache --upgrade add build-base cmake git bash sudo \
ENV CC=clang
ENV CXX=clang++

RUN gem install tebako

ENV HOME=/home/tebako
# https://github.com/actions/checkout/issues/1014
# RUN adduser --disabled-password --gecos "" --home $HOME tebako && \
# printf "\ntebako\tALL=(ALL)\tNOPASSWD:\tALL" > /etc/sudoers.d/tebako
# USER tebako
# ENV HOME=/home/tebako

# So we are running as root, HOME=/root, tebako prefix (default) /root/.tebako

COPY test $HOME/test
WORKDIR $HOME
COPY test /root/test

# Create packaging environment for Ruby 3.1.5, 3.2.4
# Create packaging environment for Ruby 3.1.6, 3.2.4
# Test and "warm up" since initialization is fully finished after the first packaging
RUN tebako setup -p .tebako -R 3.1.5 && \
tebako setup -p .tebako -R 3.2.4 && \
tebako press -p .tebako -R 3.1.5 -r test -e tebako-test-run.rb -o ruby-3.1.5-package && \
tebako press -p .tebako -R 3.2.4 -r test -e tebako-test-run.rb -o ruby-3.2.4-package && \
RUN gem install tebako && \
tebako setup -R 3.1.6 && \
tebako setup -R 3.2.4 && \
tebako press -R 3.1.6 -r /root/test -e tebako-test-run.rb -o ruby-3.1.6-package && \
tebako press -R 3.2.4 -r /root/test -e tebako-test-run.rb -o ruby-3.2.4-package && \
rm ruby-*-package

ENV PS1=PS1="\[\]\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\]"
Expand Down
20 changes: 10 additions & 10 deletions ubuntu-20.04.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ COPY tools /opt/tools
RUN /opt/tools/tools.sh install_cmake && \
/opt/tools/tools.sh install_ruby

RUN gem install tebako

ENV HOME=/home/tebako
# https://github.com/actions/checkout/issues/1014
# RUN adduser --disabled-password --gecos "" --home $HOME tebako && \
# printf "\ntebako\tALL=(ALL)\tNOPASSWD:\tALL" > /etc/sudoers.d/tebako
# USER tebako
# ENV HOME=/home/tebako

# So we are running as root, HOME=/root, tebako prefix (default) /root/.tebako

COPY test $HOME/test
WORKDIR $HOME
COPY test /root/test

# Create packaging environment for Ruby 3.1.5, 3.2.4
# Create packaging environment for Ruby 3.1.6, 3.2.4
# Test and "warm up" since initialization is fully finished after the first packaging
RUN tebako setup -p .tebako -R 3.1.5 && \
tebako setup -p .tebako -R 3.2.4 && \
tebako press -p .tebako -R 3.1.5 -r test -e tebako-test-run.rb -o ruby-3.1.5-package && \
tebako press -p .tebako -R 3.2.4 -r test -e tebako-test-run.rb -o ruby-3.2.4-package && \
RUN gem install tebako && \
tebako setup -R 3.1.6 && \
tebako setup -R 3.2.4 && \
tebako press -R 3.1.6 -r /root/test -e tebako-test-run.rb -o ruby-3.1.6-package && \
tebako press -R 3.2.4 -r /root/test -e tebako-test-run.rb -o ruby-3.2.4-package && \
rm ruby-*-package

ENV PS1=PS1="\[\]\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\]"
Expand Down

0 comments on commit 0281a1b

Please sign in to comment.