Skip to content

Commit

Permalink
Workaround #46 Gitpod Internal: Cannot start apache
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena authored Mar 5, 2021
1 parent b892185 commit 560a807
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ RUN sudo touch /var/log/workspace-init.log \

RUN sudo touch /var/log/xdebug.log \
&& sudo chmod 666 /var/log/xdebug.log

RUN sudo mkdir /var/log/apache2 \

&& sudo chmod 755 /var/log/apache2

RUN sudo touch /var/log/apache2/access.log \

&& sudo chmod 666 /var/log/apache2/access.log

RUN sudo touch /var/log/apache2/error.log \

&& sudo chmod 666 /var/log/apache2/error.log

RUN sudo touch /var/log/apache2/other_vhosts_access.log \

&& sudo chmod 666 /var/log/apache2/other_vhosts_access.log

RUN sudo apt-get update -q \
&& sudo apt-get install -y rsync
Expand Down Expand Up @@ -42,4 +58,4 @@ COPY --chown=gitpod:gitpod bash/snippets/browser-functions /tmp
RUN echo "# BEGIN: custom code (not internal to gitpod)" \
&& cat /tmp/server-functions >> ~/.bashrc \
&& echo -e "\n" | cat /tmp/browser-functions >> ~/.bashrc \
&& echo "# END: custom code (not internal to gitpod)"
&& echo "# END: custom code (not internal to gitpod)"

0 comments on commit 560a807

Please sign in to comment.