Compare commits
5 commits
983ce40397
...
85b2635da3
Author | SHA1 | Date | |
---|---|---|---|
85b2635da3 | |||
99a7eb3b53 | |||
bb217047a1 | |||
9782d3499c | |||
5b96fa38c2 |
7 changed files with 12114 additions and 33 deletions
|
@ -3,6 +3,7 @@
|
|||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "silverstripe",
|
||||
"workspaceFolder": "/shared-workspaces/mantra",
|
||||
"remoteUser": "vscode",
|
||||
"extensions": [
|
||||
"adrianhumphreys.silverstripe",
|
||||
"bmewburn.vscode-intelephense-client",
|
||||
|
|
|
@ -2,7 +2,9 @@ version: '3'
|
|||
|
||||
services:
|
||||
silverstripe:
|
||||
image: manuth/silverstripe-dev
|
||||
build:
|
||||
context: .
|
||||
dockerfile: web.Dockerfile
|
||||
env_file: devcontainer.env
|
||||
environment:
|
||||
- SS_ENVIRONMENT_TYPE=dev
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#!/bin/bash
|
||||
echo '* text=auto eol=lf' > $(git rev-parse --git-dir)/info/attributes
|
||||
rm -rf /var/www/html
|
||||
ln -sT `pwd`/test/website /var/www/html
|
||||
chown -R www-data:www-data ./test/website
|
||||
chown -R www-data:www-data /var/www/html
|
||||
sudo rm -rf /var/www/html
|
||||
sudo ln -sT $(pwd)/test/website /var/www/html
|
||||
|
|
10
.devcontainer/web.Dockerfile
Normal file
10
.devcontainer/web.Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM manuth/silverstripe-dev
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y install sudo && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN adduser --disabled-password --gecos '' vscode && \
|
||||
sed -i /etc/sudoers -re 's/^%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' && \
|
||||
sed -i /etc/sudoers -re 's/^root.*/root ALL=(ALL:ALL) NOPASSWD: ALL/g' && \
|
||||
echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
@ -84,5 +84,10 @@
|
|||
"composer --working-dir=./test/website install"
|
||||
]
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"neronmoon/scriptsdev": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
12114
package-lock.json
generated
12114
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -42,7 +42,12 @@
|
|||
]
|
||||
},
|
||||
"config": {
|
||||
"process-timeout": 600
|
||||
"process-timeout": 600,
|
||||
"allow-plugins": {
|
||||
"composer/installers": true,
|
||||
"silverstripe/recipe-plugin": true,
|
||||
"silverstripe/vendor-plugin": true
|
||||
}
|
||||
},
|
||||
"prefer-stable": true,
|
||||
"minimum-stability": "dev"
|
||||
|
|
Loading…
Reference in a new issue