Compare commits
2 commits
85b2635da3
...
a2b7531ad4
Author | SHA1 | Date | |
---|---|---|---|
a2b7531ad4 | |||
04ee84d77e |
3 changed files with 9 additions and 4 deletions
|
@ -2,3 +2,5 @@
|
||||||
echo '* text=auto eol=lf' > $(git rev-parse --git-dir)/info/attributes
|
echo '* text=auto eol=lf' > $(git rev-parse --git-dir)/info/attributes
|
||||||
sudo rm -rf /var/www/html
|
sudo rm -rf /var/www/html
|
||||||
sudo ln -sT $(pwd)/test/website /var/www/html
|
sudo ln -sT $(pwd)/test/website /var/www/html
|
||||||
|
sudo chown vscode:vscode node_modules
|
||||||
|
sudo chown vscode:vscode vendor
|
||||||
|
|
|
@ -4,7 +4,10 @@ RUN apt-get update && \
|
||||||
apt-get -y install sudo && \
|
apt-get -y install sudo && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN adduser --disabled-password --gecos '' vscode && \
|
RUN userdel node; \
|
||||||
|
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/^%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' && \
|
||||||
sed -i /etc/sudoers -re 's/^root.*/root 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
|
echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||||
|
|
||||||
|
USER vscode
|
||||||
|
|
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
|
@ -23,9 +23,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "pwa-msedge",
|
"type": "pwa-chrome",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch Edge",
|
"name": "Launch Chrome",
|
||||||
"url": "http://localhost:3000",
|
"url": "http://localhost:3000",
|
||||||
"webRoot": "${workspaceFolder}/test/website/public",
|
"webRoot": "${workspaceFolder}/test/website/public",
|
||||||
"pathMapping": {
|
"pathMapping": {
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
{
|
{
|
||||||
"name": "Debug Theme",
|
"name": "Debug Theme",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
"Launch Edge",
|
"Launch Chrome",
|
||||||
"Listen for XDebug"
|
"Listen for XDebug"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue