<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>remies</author_name>
  <author_url>https://blog.hatena.ne.jp/remies/</author_url>
  <blog_title>森羅万象ガール</blog_title>
  <blog_url>https://remies.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>色々とハマったので。 昨今の Infrastructure as Code な時代では root ユーザがほげほげする処理が多いので、必然的に su コマンドが大活躍することになる。 rbenvの環境変数をユーザの.bashrcに書き出していて、Dockerfile内でRUN su - USER -c &quot;rbenv install 2.0.0-p481&quot; できない件でハマった。 結論としては、ユーザ個別の個人的なシェル設定は.bashrcに書いて、ユーザ個別の個人的でない環境変数などは.bash_profileに書いておくといいと思う。 suコマンドもハイフンあるか無いかでかなり違うので要注意…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fremies.hatenadiary.com%2Fentry%2F20140513%2F1400007728&quot; title=&quot;rootユーザがsuしたときの.bash_profileと.bashrc読み込みについて - 森羅万象ガール&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-05-13 04:02:08</published>
  <title>rootユーザがsuしたときの.bash_profileと.bashrc読み込みについて</title>
  <type>rich</type>
  <url>https://remies.hatenadiary.com/entry/20140513/1400007728</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
