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:
parent
3ef1f45349
commit
06a261ed0c
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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}-----------------------------------------------------"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue