Skip to content

Commit 3f11a9f

Browse files
authored
fix tools in prebuild
1 parent 0977346 commit 3f11a9f

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

.gitpod.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM gitpod/workspace-full:latest
2+
3+
RUN sudo apt-get update && \
4+
sudo apt-get install -y php8.1-fpm \
5+
brew install symfony-cli/tap/symfony-cli FriendsOfShopware/tap/shopware-cli

.gitpod.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
14
tasks:
25
- name: Shopware
3-
init: |
6+
before: |
47
echo 'alias admin-watch="APP_URL=http://localhost:8000 composer run watch:admin"' >> ~/.bashrc
5-
8+
init: |
69
EXTENSION_NAME=$(basename $PWD)
710
TMP_DIR=$(mktemp -d)
811
912
mv * .* "$TMP_DIR" || true
1013
11-
git clone https://github.com/shopware/platform .
14+
git clone https://github.com/shopware/platform --depth=1 .
1215
1316
# Run MySQL
1417
docker run --restart always -d --name=mysql -p 127.0.0.1:3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql:8
1518
docker run --restart always -d --link mysql:mysql -p 5000:8080 -e ADMINER_DESIGN=pepa-linha -e ADMINER_DEFAULT_SERVER=mysql -e ADMINER_PLUGINS="tables-filter table-structure json-column version-noverify" ghcr.io/shyim/shopware-docker/adminer
16-
sudo apt update
17-
18-
# Needed to improve performance in Symfony CLI
19-
sudo apt install -y php8.1-fpm
20-
21-
# Install Symfony CLI + Shopware CLI
22-
brew install symfony-cli/tap/symfony-cli FriendsOfShopware/tap/shopware-cli
23-
19+
2420
# Configure Shopware
2521
composer install
2622
./bin/console system:setup -n --database-url "mysql://root:root@127.0.0.1:3306/shopware" --app-url "$(gp url 8000)" --app-env dev

0 commit comments

Comments
 (0)