Commit b6ecaab1 authored by Matthias Stegmann's avatar Matthias Stegmann
Browse files

Merge branch '#21-node-version' into 'main'

[TASK] Use fixed node version, include in web docker image

See merge request !58
parents 1a464780 d35a010d
Pipeline #10561 passed with stages
in 6 minutes and 25 seconds
ARG BASE_IMAGE
FROM $BASE_IMAGE
ENV NODE_VERSION=14
RUN sudo apt-get remove -y nodejs
RUN curl -sSL --fail https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash -
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests nodejs
......@@ -53,7 +53,7 @@ build:php:
# compile and build JS / CSS
# should be used in conjunction with an artifact
.frontend_bootstrap: &frontend-bootstrap
image: node:12.19-buster
image: node:14.16-buster
variables:
node_path: src/webpack
script:
......
......@@ -25,13 +25,14 @@ To set up the TYPO3 Demo Project for local development
1. Download code `git clone ssh://git@gitlab.typo3.org:2222/services/demo.typo3.org/site.git`
2. Install composer packages `ddev composer install`
3. Download database/fileadmin: Go to the [Generic Packages](https://gitlab.typo3.org/services/demo.typo3.org/site/-/packages) section in Gitlab, select the "site"-Package and download the latest "demo-data.zip"
4. Extract the downloaded file
5. Copy the `fileadmin` folder to `<document root>web/fileadmin`
6. Import database: `ddev import-db --src=/path/to/database/dump.sql.gz`
7. Update schema: `ddev exec bin/typo3cms database:updateschema`
8. Create a backend user `ddev exec bin/typo3cms backend:createadmin username password`
9. Start the project running `ddev start`
3. Build the frontend `ddev composer frontend-builds`
4. Download database/fileadmin: Go to the [Generic Packages](https://gitlab.typo3.org/services/demo.typo3.org/site/-/packages) section in Gitlab, select the "site"-Package and download the latest "demo-data.zip"
5. Extract the downloaded file
6. Copy the `fileadmin` folder to `<document root>web/fileadmin`
7. Import database: `ddev import-db --src=/path/to/database/dump.sql.gz`
8. Update schema: `ddev exec bin/typo3cms database:updateschema`
9. Create a backend user `ddev exec bin/typo3cms backend:createadmin username password`
10. Start the project running `ddev start`
## License
......
......@@ -73,7 +73,8 @@
"@php bin/typo3cms install:generatepackagestates"
],
"frontend-builds": [
"cd src/webpack; nvm use; yarn install; yarn build-prod"
"if [ \"$IS_DDEV_PROJECT\" != \"1\" ]; then export PATH=$HOME/.nvm/versions/node/v14.16.1/bin:$PATH; fi",
"cd src/webpack; yarn install; yarn build-prod"
],
"post-update-cmd": [
"@typo3-setup"
......
......@@ -4,8 +4,8 @@
"private": true,
"version": "1.0.0",
"engines": {
"node": "^12.19",
"yarn": "^1.13.0"
"node": "^14.16.0",
"yarn": "^1.22.0"
},
"author": {
"name": "b13 GmbH",
......@@ -51,8 +51,6 @@
"webpack-merge": "^4.2.2"
},
"devDependencies": {
"sass-lint": "^1.13.1",
"sass-lint-config": "https://code.b13.com/public-projects/sass-lint-config.git",
"webpack-dev-server": "^3.1.4"
}
}
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment