cspec in Hitcher-0.1.2 vs cspec in Hitcher-0.1.3
- old
+ new
@@ -8,11 +8,21 @@
interactive true
tty true
dockerfile do_plain
FROM ruby-2_7_1
-RUN apt-get update && apt-get install -y yarn
+
+RUN apt-get update && apt-get install -y yarn #sudo && chmod u+s /usr/bin/sudo
+RUN groupadd -g $GID $USER && useradd -m $USER --uid=$UID --gid=$GID && passwd -d -u $USER && usermod -aG sudo $USER
+
+RUN cp /root/.bash_profile /home/$USER/.bash_profile && chown $USER:$USER /home/$USER/.bash_profile
+RUN cp /root/.bashrc /home/$USER/.bashrc && chown $USER:$USER /home/$USER/.bashrc
+RUN cp /root/.profile /home/$USER/.profile && chown $USER:$USER /home/$USER/.profile
+
+#USER $UID:$GID
+#WORKDIR /home/$USER
+
CMD ["/bin/bash","--login"]
#CMD ["/usr/share/rvm/rubies/ruby-2.7.1/bin/irb"]
end
#expose 3000
@@ -22,6 +32,7 @@
$PWD:/opt/raising/raising
../rails6:/opt/raising/rails6
../../stateful_gem:/opt/dev-deps/stateful_gem
../lib/acts_as_tree:/opt/dev-deps/acts_as_tree
end
+