Skip to content

Commit 07b4ad2

Browse files
committed
use requirements file
1 parent 3afa9b6 commit 07b4ad2

9 files changed

Lines changed: 18 additions & 10 deletions

File tree

src/common_node_24/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ WORKDIR ${SCRIPTS_DIR}/${CONTAINER_NAME}
2121
RUN ./root_install.sh
2222

2323
COPY --chmod=755 scripts/vscode_install.sh ${SCRIPTS_DIR}/${CONTAINER_NAME}/vscode_install.sh
24+
# use glob pattern to copy requirements-user.txt if it exists, to avoid build failure if it doesn't
25+
COPY scripts/requirements-user.tx[t] ${SCRIPTS_DIR}/${CONTAINER_NAME}/requirements-user.txt
2426
USER vscode
2527

2628
WORKDIR ${SCRIPTS_DIR}/${CONTAINER_NAME}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
zizmor==1.23.1
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/usr/bin/env bash
22
set -e
3+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
34

45
asdf plugin add python
56
asdf plugin add poetry https://github.com/asdf-community/asdf-poetry.git
67

78
asdf install python
89
asdf install
9-
pip install --user zizmor@1.23.1
10+
11+
pip install --user -r "${SCRIPT_DIR}/requirements-user.txt"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
zizmor==1.23.1
2+
cfn-lint==1.47.1
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env bash
22
set -e
3+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
34

45
asdf plugin add python
56
asdf plugin add poetry https://github.com/asdf-community/asdf-poetry.git
67

78
asdf install python
89
asdf install
910

10-
# install cfn-lint
11-
pip install --user cfn-lint@1.47.1
12-
pip install --user zizmor@1.23.1
11+
pip install --user -r "${SCRIPT_DIR}/requirements-user.txt"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
zizmor==1.23.1
2+
cfn-lint==1.47.1
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env bash
22
set -e
3+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
34

45
asdf plugin add python
56
asdf plugin add poetry https://github.com/asdf-community/asdf-poetry.git
67

78
asdf install python
89
asdf install
910

10-
# install cfn-lint
11-
pip install --user cfn-lint@1.47.1
12-
pip install --user zizmor@1.23.1
11+
pip install --user -r "${SCRIPT_DIR}/requirements-user.txt"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
zizmor==1.23.1
2+
cfn-lint==1.47.1
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env bash
22
set -e
3+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
34

45
asdf plugin add python
56
asdf plugin add poetry https://github.com/asdf-community/asdf-poetry.git
67

78
asdf install python
89
asdf install
910

10-
# install cfn-lint
11-
pip install --user cfn-lint@1.47.1
12-
pip install --user zizmor@1.23.1
11+
pip install --user -r "${SCRIPT_DIR}/requirements-user.txt"

0 commit comments

Comments
 (0)