more ghaction fixes
This commit is contained in:
parent
c33fd1c2df
commit
404da582fe
4 changed files with 15 additions and 8 deletions
|
|
@ -7,12 +7,13 @@
|
|||
"mounts": [
|
||||
"source=${localWorkspaceFolder}/.devcontainer/start.sh,target=/start-lnbits.sh,type=bind",
|
||||
"source=${localWorkspaceFolder}/.devcontainer/setup.sh,target=/setup.sh,type=bind",
|
||||
"source=${localWorkspaceFolder}/.devcontainer/pre-setup.sh,target=/pre-setup.sh,type=bind",
|
||||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
|
||||
],
|
||||
"containerEnv": {
|
||||
"IS_DEV_CONTAINER": "true"
|
||||
},
|
||||
"postCreateCommand": "/bin/bash /setup.sh ${containerWorkspaceFolder}",
|
||||
"postCreateCommand": "/bin/bash /pre-setup.sh && /bin/bash /setup.sh ${containerWorkspaceFolder}",
|
||||
"postStartCommand": "/bin/bash /start-lnbits.sh",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
|
|
|
|||
10
.devcontainer/pre-setup.sh
Normal file
10
.devcontainer/pre-setup.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
sudo apt update -y
|
||||
sudo apt install -y curl
|
||||
sudo apt-get install -y docker.io
|
||||
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x -o /tmp/nodesource_setup.sh
|
||||
sudo bash /tmp/nodesource_setup.sh
|
||||
sudo apt-get install -y nodejs
|
||||
|
|
@ -1,14 +1,8 @@
|
|||
#!/bin/bash
|
||||
echo $PYTHONPATH
|
||||
set -e
|
||||
CONTAINER_WORKSPACE_FOLDER=$1
|
||||
cd $CONTAINER_WORKSPACE_FOLDER
|
||||
sudo apt update -y
|
||||
sudo apt install -y curl
|
||||
sudo apt-get install -y docker.io
|
||||
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x -o /tmp/nodesource_setup.sh
|
||||
sudo bash /tmp/nodesource_setup.sh
|
||||
sudo apt-get install -y nodejs
|
||||
|
||||
cd $HOME
|
||||
echo $PWD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue