Skip to content

Commit 377ed9e

Browse files
committed
Force rebuild for Gitpod
1 parent 94bf1d8 commit 377ed9e

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.github/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ EXPOSE 8080 8443 80 443
1818
# MySQL
1919
EXPOSE 3306 33060
2020

21+
# Install sudo (required for Gitpod)
22+
RUN apt-get install -y --no-install-recommends sudo
23+
2124
# Install MySQL
2225
COPY ./config/s6/mysql-init.d /etc/mysql-init.d/
2326
COPY ./config/mysql /etc/mysql/

.gitpod.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,19 @@ tasks:
1313
export APP_PRELOAD=off
1414
export APP_CACHE=off
1515
export APP_DEBUG=on
16+
export COMPOSER_NO_DEV=1
1617
command: |
1718
clear
1819
sudo -E /init
1920
2021
- name: Composer - Joomlatools Server
21-
command: /bin/bash -e /var/scripts/composer_install.sh
22+
command: sudo /bin/bash -e /var/scripts/composer_install.sh
23+
24+
- name: Install Latest Joomla
25+
command: sudo joomla site:create joomla --release=latest
26+
27+
- name: Install Latest Wordpress
28+
command: sudo folioshell site:create joomla --release=latest
2229

2330
- name: Terminal - Joomlatools Server
2431
command: |

.gitpod/Dockerfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Stage: base
33
#
44
# Build gitpod server
5-
# Version: 1.0.0-dev build 30
5+
# Version: 1.0.0-dev build 32
66

77
ARG IMAGE_TAG=latest
88
FROM ghcr.io/joomlatools/joomlatools-server:${IMAGE_TAG} as base
@@ -14,8 +14,6 @@ ENV APP_DATA=/srv/www \
1414
APP_HTTP=80 \
1515
APP_HTTPS=443
1616

17-
ENV MYSQL_USER=gitpod
18-
1917
ENV COMPOSER_ALLOW_SUPERUSER=1 \
2018
COMPOSER_HOME=/tmp
2119

@@ -31,8 +29,7 @@ RUN tar xvzf /tmp/mason-linux.tar.gz -C /tmp; \
3129
chmod 755 /usr/bin/mason
3230

3331
# User
34-
RUN apt-get install -y --no-install-recommends sudo; \
35-
useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod; \
32+
RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod; \
3633
usermod -a -G www-data gitpod; \
3734
usermod -a -G mysql gitpod; \
3835
sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers

config/s6/mysql-init.d/101-perm.sh

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ then
1212
CREATE USER IF NOT EXISTS '${MYSQL_USER}'@'localhost';
1313
ALTER USER '${MYSQL_USER}'@'localhost' IDENTIFIED WITH mysql_native_password BY '${MYSQL_PASS}';
1414
GRANT ALL ON *.* TO '${MYSQL_USER}'@'localhost';
15+
CREATE USER IF NOT EXISTS 'gitpod'@'localhost';
16+
ALTER USER 'gitpod'@'localhost' IDENTIFIED WITH auth_socket;
17+
GRANT ALL ON *.* TO 'gitpod'@'localhost';
1518
CREATE USER IF NOT EXISTS 'root'@'localhost';
1619
ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket;
1720
GRANT ALL ON *.* TO 'root'@'localhost';

0 commit comments

Comments
 (0)