File tree 4 files changed +16
-6
lines changed
4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ EXPOSE 8080 8443 80 443
18
18
# MySQL
19
19
EXPOSE 3306 33060
20
20
21
+ # Install sudo (required for Gitpod)
22
+ RUN apt-get install -y --no-install-recommends sudo
23
+
21
24
# Install MySQL
22
25
COPY ./config/s6/mysql-init.d /etc/mysql-init.d/
23
26
COPY ./config/mysql /etc/mysql/
Original file line number Diff line number Diff line change @@ -13,12 +13,19 @@ tasks:
13
13
export APP_PRELOAD=off
14
14
export APP_CACHE=off
15
15
export APP_DEBUG=on
16
+ export COMPOSER_NO_DEV=1
16
17
command : |
17
18
clear
18
19
sudo -E /init
19
20
20
21
- 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
22
29
23
30
- name : Terminal - Joomlatools Server
24
31
command : |
Original file line number Diff line number Diff line change 2
2
# Stage: base
3
3
#
4
4
# Build gitpod server
5
- # Version: 1.0.0-dev build 30
5
+ # Version: 1.0.0-dev build 32
6
6
7
7
ARG IMAGE_TAG=latest
8
8
FROM ghcr.io/joomlatools/joomlatools-server:${IMAGE_TAG} as base
@@ -14,8 +14,6 @@ ENV APP_DATA=/srv/www \
14
14
APP_HTTP=80 \
15
15
APP_HTTPS=443
16
16
17
- ENV MYSQL_USER=gitpod
18
-
19
17
ENV COMPOSER_ALLOW_SUPERUSER=1 \
20
18
COMPOSER_HOME=/tmp
21
19
@@ -31,8 +29,7 @@ RUN tar xvzf /tmp/mason-linux.tar.gz -C /tmp; \
31
29
chmod 755 /usr/bin/mason
32
30
33
31
# 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; \
36
33
usermod -a -G www-data gitpod; \
37
34
usermod -a -G mysql gitpod; \
38
35
sed -i.bkp -e 's/%sudo\s\+ ALL=(ALL\( :ALL\)\? )\s\+ ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
Original file line number Diff line number Diff line change 12
12
CREATE USER IF NOT EXISTS '${MYSQL_USER} '@'localhost';
13
13
ALTER USER '${MYSQL_USER} '@'localhost' IDENTIFIED WITH mysql_native_password BY '${MYSQL_PASS} ';
14
14
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';
15
18
CREATE USER IF NOT EXISTS 'root'@'localhost';
16
19
ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket;
17
20
GRANT ALL ON *.* TO 'root'@'localhost';
You can’t perform that action at this time.
0 commit comments