File tree Expand file tree Collapse file tree 7 files changed +4495
-29
lines changed
Expand file tree Collapse file tree 7 files changed +4495
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ FROM mcr.microsoft.com/devcontainers/base:ubuntu
2+
3+ # Install system dependencies
4+ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5+ && apt-get -y install --no-install-recommends \
6+ curl git build-essential libssl-dev zlib1g-dev \
7+ libbz2-dev libreadline-dev libsqlite3-dev wget llvm \
8+ libncurses5-dev libncursesw5-dev xz-utils tk-dev \
9+ liblzma-dev python3-pip
10+
11+ # Set user to vscode
12+ USER vscode
13+
14+ # Install ASDF
15+ RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.3; \
16+ echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc; \
17+ echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc; \
18+ echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc; \
19+ echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc; \
20+ echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc;
21+
22+ ENV PATH="$PATH:/home/vscode/.asdf/bin/:/workspaces/eps-assist-me/node_modules/.bin"
23+
24+ # Install ASDF plugins
25+ RUN asdf plugin add python; \
26+ asdf plugin add poetry https://github.com/asdf-community/asdf-poetry.git; \
27+ asdf plugin add direnv; \
28+ asdf plugin add actionlint; \
29+ asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
30+
31+ # Set working directory
32+ WORKDIR /workspaces/eps-assist-me
33+
34+ # Copy .tool-versions
35+ ADD .tool-versions /workspaces/prescriptionsforpatients/.tool-versions
36+ ADD .tool-versions /home/vscode/.tool-versions
37+
38+ # Install tools
39+ RUN asdf install; \
40+ asdf reshim python; \
41+ asdf reshim poetry; \
42+ asdf direnv setup --shell bash --version 2.32.2;
Original file line number Diff line number Diff line change 6565 }
6666 }
6767 },
68- "postCreateCommand" : " rm -f ~/.docker/config.json; git config --global --add safe.directory /workspaces/eps-assist-me; make install; direnv allow ."
68+ "postCreateCommand" : " rm -f ~/.docker/config.json; git config --global --add safe.directory /workspaces/eps-assist-me; make install; direnv allow .; docker build -f /workspaces/eps-workflow-quality-checks/dockerfiles/nhsd-git-secrets.dockerfile -t git-secrets . "
6969 // "features": {},
7070 // Use 'forwardPorts' to make a list of ports inside the container available locally.
7171 // "forwardPorts": [],
Original file line number Diff line number Diff line change 1+ token: ?"?\$\{\{\s*secrets\.GITHUB_TOKEN\s*\}\}"?
2+ github-token: ?"?\$\{\{\s*secrets\.GITHUB_TOKEN\s*\}\}"?
3+ token: ?"?\$\{\{\s*secrets\.DEPENDABOT_TOKEN\s*\}\}"?
4+ id-token: write
5+ self.token = token
6+ --token=\$\{\{\s*steps\.generate-token\.outputs\.token\s*\}\}
7+ --token=\$GITHUB-TOKEN
8+ --token="\$GITHUB-TOKEN"
9+ "accountId": "123456789012"
10+ accountId: "123456789012"
11+ console\.log\(`access token : \${access_token}`\)
12+ .*CidrBlock.*
13+ .*Gemfile\.lock.*
14+ .*\.gitallowed.*
15+ .*nhsd-rules-deny.txt.*
16+ .*\.venv.*
17+ .*node_modules.*
18+ .*\.whl
19+ sha256:[a-f0-9]{64}
20+ .*\bversion\s*=\s*"[0-9]+(\.[0-9]+){2,3}"
21+ .*platform_system\s*==\s*\\?"Linux\\?"
22+ .*=\s*\[\s*".*\(?[><=!~^]+.*\)?.*"\s*(,\s*".*")*\]
23+ .*=\s*"[><=!~^,0-9\s\.]+"
Original file line number Diff line number Diff line change 5353 language : system
5454
5555fail_fast : true
56- default_stages : [pre- commit]
56+ default_stages : [commit]
Original file line number Diff line number Diff line change 1+ python 3.12.7
2+ poetry 1.8.3
3+ shellcheck 0.10.0
4+ direnv 2.32.2
5+ actionlint 1.7.3
6+ ruby 3.3.0
You can’t perform that action at this time.
0 commit comments