1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-03-09 23:38:54 +00:00

Create ansible-projects folder

Update yas3fs startup in background
This commit is contained in:
Mumshad Mannambeth 2017-07-12 10:50:16 -04:00
parent 3ef1f45349
commit 06a261ed0c
2 changed files with 3 additions and 1 deletions

View file

@ -92,3 +92,5 @@ RUN apt-get update -q && apt-get install -y python-pip fuse \
RUN pip install yas3fs RUN pip install yas3fs
RUN sed -i'' 's/^# *user_allow_other/user_allow_other/' /etc/fuse.conf # uncomment user_allow_other RUN sed -i'' 's/^# *user_allow_other/user_allow_other/' /etc/fuse.conf # uncomment user_allow_other
RUN chmod a+r /etc/fuse.conf # make it readable by anybody, it is not the default on Ubuntu RUN chmod a+r /etc/fuse.conf # make it readable by anybody, it is not the default on Ubuntu
RUN mkdir -p /opt/ansible-projects

View file

@ -17,7 +17,7 @@ if [[ ${MOUNT_S3} = "True" ]];
echo -e "${COLOR_GREEN}-----------------------------------------------------" echo -e "${COLOR_GREEN}-----------------------------------------------------"
echo " Mounting Amazon S3 Bucket to /opt/ansible-projects" echo " Mounting Amazon S3 Bucket to /opt/ansible-projects"
echo -e "-----------------------------------------------------${NC}" echo -e "-----------------------------------------------------${NC}"
yas3fs s3://${S3_PATH} /opt/ansible-projects -f yas3fs s3://${S3_PATH} /opt/ansible-projects -f &
fi fi
echo -e "${COLOR_GREEN}-----------------------------------------------------" echo -e "${COLOR_GREEN}-----------------------------------------------------"