workspace in gitlab build fail (#1429)
fix "sed: couldn't open temporary file /home/laradock/sed6KGnMb: Permission denied"
This commit is contained in:
parent
c5c4d19476
commit
f08c3bda4d
@ -149,15 +149,16 @@ RUN chmod -R 644 /etc/cron.d
|
||||
#####################################
|
||||
# User Aliases
|
||||
#####################################
|
||||
USER root
|
||||
|
||||
USER laradock
|
||||
COPY ./aliases.sh /home/laradock/aliases.sh
|
||||
RUN echo "" >> ~/.bashrc && \
|
||||
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
||||
echo "" >> ~/.bashrc && \
|
||||
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh
|
||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh && \
|
||||
chown laradock:laradock /home/laradock/aliases.sh
|
||||
|
||||
#####################################
|
||||
# xDebug:
|
||||
|
@ -146,15 +146,16 @@ RUN chmod -R 644 /etc/cron.d
|
||||
#####################################
|
||||
# User Aliases
|
||||
#####################################
|
||||
USER root
|
||||
|
||||
USER laradock
|
||||
COPY ./aliases.sh /home/laradock/aliases.sh
|
||||
RUN echo "" >> ~/.bashrc && \
|
||||
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
||||
echo "" >> ~/.bashrc && \
|
||||
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh
|
||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh && \
|
||||
chown laradock:laradock /home/laradock/aliases.sh
|
||||
|
||||
#####################################
|
||||
# xDebug:
|
||||
|
@ -141,15 +141,16 @@ RUN chmod -R 644 /etc/cron.d
|
||||
#####################################
|
||||
# User Aliases
|
||||
#####################################
|
||||
USER root
|
||||
|
||||
USER laradock
|
||||
COPY ./aliases.sh /home/laradock/aliases.sh
|
||||
RUN echo "" >> ~/.bashrc && \
|
||||
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
||||
echo "" >> ~/.bashrc && \
|
||||
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh
|
||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh && \
|
||||
chown laradock:laradock /home/laradock/aliases.sh
|
||||
|
||||
#####################################
|
||||
# xDebug:
|
||||
|
@ -141,15 +141,16 @@ RUN chmod -R 644 /etc/cron.d
|
||||
#####################################
|
||||
# User Aliases
|
||||
#####################################
|
||||
USER root
|
||||
|
||||
USER laradock
|
||||
COPY ./aliases.sh /home/laradock/aliases.sh
|
||||
RUN echo "" >> ~/.bashrc && \
|
||||
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
||||
echo "" >> ~/.bashrc && \
|
||||
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh
|
||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh && \
|
||||
chown laradock:laradock /home/laradock/aliases.sh
|
||||
|
||||
#####################################
|
||||
# xDebug:
|
||||
|
Loading…
Reference in New Issue
Block a user