update dev environment
This commit is contained in:
parent
c9a7c41e1f
commit
0559a1b8dc
2 changed files with 5 additions and 8 deletions
|
|
@ -1,20 +1,18 @@
|
|||
{
|
||||
"name": "lnbits_nwc_provider",
|
||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.9-bullseye",
|
||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.12",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
|
||||
},
|
||||
"mounts": [
|
||||
"source=${localWorkspaceFolder}/.devcontainer/start.sh,target=/start-lnbits.sh,type=bind",
|
||||
"source=${localWorkspaceFolder}/.devcontainer/setup.sh,target=/setup.sh,type=bind",
|
||||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
|
||||
"source=${localWorkspaceFolder}/.devcontainer/setup.sh,target=/setup.sh,type=bind"
|
||||
],
|
||||
"containerEnv": {
|
||||
"IS_DEV_CONTAINER": "true"
|
||||
},
|
||||
"postCreateCommand": "/bin/bash /setup.sh ${containerWorkspaceFolder}",
|
||||
"postStartCommand": "/bin/bash /start-lnbits.sh",
|
||||
"forwardPorts": [5000],
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@ echo $PYTHONPATH
|
|||
CONTAINER_WORKSPACE_FOLDER=$1
|
||||
cd $CONTAINER_WORKSPACE_FOLDER
|
||||
sudo apt update -y
|
||||
sudo apt install -y python3.9-distutils curl
|
||||
sudo apt-get install -y docker.io
|
||||
sudo apt install -y curl
|
||||
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x -o /tmp/nodesource_setup.sh
|
||||
sudo bash /tmp/nodesource_setup.sh
|
||||
|
|
@ -17,8 +16,8 @@ if [ ! -d ./lnbits ] ; then
|
|||
fi
|
||||
cd lnbits
|
||||
echo $PWD
|
||||
git checkout 0.12.8
|
||||
poetry env use python3.9
|
||||
git checkout v1.0.0-rc7
|
||||
poetry env use 3.12
|
||||
POETRY_PYTHON_PATH=$(poetry env info -p)/bin/python
|
||||
ln -sf $POETRY_PYTHON_PATH /home/vscode/python
|
||||
make bundle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue