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