Skip to content
Permalink
Browse files

ensure .profile is created and sourced in all images. Fixes #5 tempor…

…arily until better solution is found.
  • Loading branch information...
theferrit32 committed Jan 31, 2018
1 parent 668b3e0 commit f96624c8a55f5ded5ac60f4f54182a59be92e66d
@@ -20,11 +20,13 @@ RUN chmod +x /usr/bin/venv
RUN groupadd datacommons \
&& useradd -m dockeruser -g datacommons -s /bin/bash \
&& echo "dockeruser ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/datacommons

USER dockeruser
WORKDIR /home/dockeruser

COPY ./base_postinstall.sh ./entrypoint.sh /home/dockeruser/
RUN bash base_postinstall.sh
RUN touch /home/dockeruser/.profile \
&& bash base_postinstall.sh

EXPOSE 80

@@ -1,5 +1,13 @@
#!/bin/bash

# fixes issue in docker for mac where fuse permissions are restricted to root:root
# https://github.com/theferrit32/data-commons-workspace/issues/5
if [ -f /dev/fuse ]; then sudo chmod 666 /dev/fuse; fi


cd ~/
. ~/.profile

if [ ! -f ~/.irods/.irodsA ]; then
# irods not initialized

@@ -1,5 +1,11 @@
#!/bin/bash

# fixes issue in docker for mac where fuse permissions are restricted to root:root
# https://github.com/theferrit32/data-commons-workspace/issues/5
if [ -f /dev/fuse ]; then sudo chmod 666 /dev/fuse; fi

cd ~/
. ~/.profile
#source ~/.bashrc


@@ -1,7 +1,11 @@
#!/bin/bash

# fixes issue in docker for mac where fuse permissions are restricted to root:root
# https://github.com/theferrit32/data-commons-workspace/issues/5
if [ -f /dev/fuse ]; then sudo chmod 666 /dev/fuse; fi

cd ~/
. ~/.profile
echo "in entrypont.sh"

if [ ! -f ~/.irods/.irodsA ]; then
# irods not initialized

0 comments on commit f96624c

Please sign in to comment.
You can’t perform that action at this time.