Skip to content

Commit

Permalink
#20 - Change permissions for /var/lib/mysql in Gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed Oct 11, 2021
1 parent 8bd8561 commit c9357ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitpod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ RUN tar xvzf /tmp/mason-linux.tar.gz -C /tmp; \
RUN apt-get install -y --no-install-recommends sudo; \
useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod; \
usermod -a -G www-data gitpod; \
usermod -a -G mysql gitpod; \
sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers

# Composer
Expand All @@ -52,7 +53,8 @@ RUN /bin/bash -e /var/scripts/composer_install.sh
# Permissions
RUN mkdir -p $APP_VOLUME; \
chown -R $APP_USER:$APP_USER $APP_VOLUME; \
chown -R $APP_USER:$APP_USER $APP_DATA
chown -R $APP_USER:$APP_USER $APP_DATA \
chown -R $APP_USER:$APP_USER /var/lib/mysql

USER gitpod
WORKDIR $APP_ROOT

0 comments on commit c9357ba

Please sign in to comment.