Skip to content

Commit e9397b6

Browse files
committed
cmsnav-747 Update dependencies
1 parent 770825c commit e9397b6

6 files changed

Lines changed: 289 additions & 64 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Python 3",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
6+
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bullseye",
77
"features": {
88
"ghcr.io/devcontainers/features/node:1": {
99
"nodeGypDependencies": true,
@@ -12,16 +12,16 @@
1212
"pnpmVersion": "latest",
1313
"nvmVersion": "latest"
1414
}
15-
}
15+
},
1616

1717
// Features to add to the dev container. More info: https://containers.dev/features.
1818
// "features": {},
1919

2020
// Use 'forwardPorts' to make a list of ports inside the container available locally.
21-
// "forwardPorts": [],
21+
"forwardPorts": [5000, 32201],
2222

2323
// Use 'postCreateCommand' to run commands after the container is created.
24-
// "postCreateCommand": "pip3 install --user -r requirements.txt",
24+
"postCreateCommand": "./.devcontainer/postCreateCommand.sh"
2525

2626
// Configure tool-specific properties.
2727
// "customizations": {},

.devcontainer/postCreateCommand.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# Install JVM
4+
5+
sudo apt update
6+
sudo apt install -y default-jdk
7+
8+
# Install poetry
9+
10+
#!/bin/bash
11+
curl -sSL https://install.python-poetry.org | python3 -
12+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
13+
14+
make install
15+
echo "..Now you can 'make lint', 'make publish', 'npm run serve'"

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ install-node:
1212
#Configures Git Hooks, which are scripts that run given a specified event.
1313
.git/hooks/pre-commit:
1414
cp scripts/pre-commit .git/hooks/pre-commit
15+
chmod +x .git/hooks/pre-commit
1516

1617
#Condensed Target to run all targets above.
1718
install: install-node install-python .git/hooks/pre-commit

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)