Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 .visual-studio-code -> .vscode #18

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ COPY src/opt/visual-studio-code/first-run-notice.txt /opt/visual-studio-code/fir
RUN cat <<EOF >> /home/analyticalplatform/.bashrc

# This is a first run notice for Visual Studio Code
if [ -t 1 ] && [[ "\${TERM_PROGRAM}" = "vscode" ]] && [ ! -f "/opt/visual-studio-code/first-run-notice-already-displayed" ]; then
if [ -t 1 ] && [[ "\${TERM_PROGRAM}" = "vscode" ]] && [ ! -f "/home/analyticalplatform/.vscode/first-run-notice-already-displayed" ]; then
cat /opt/visual-studio-code/first-run-notice.txt
# Mark first run notice as displayed after 10s to avoid problems with fast terminal refreshes hiding it
mkdir -p "~/.visual-studio-code"
((sleep 10s; touch "~/.visual-studio-code/first-run-notice-already-displayed") &)
mkdir --parents "/home/analyticalplatform/.vscode"
((sleep 10s; touch "/home/analyticalplatform/.vscode/first-run-notice-already-displayed") &)
fi

EOF
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Additionally the following tools are installed:
### Build

```bash
docker build --platform linux/amd64 --file Dockerfile --tag analytical-platform.service.justice.gov.uk/code:local .
docker build --platform linux/amd64 --file Dockerfile --tag analytical-platform.service.justice.gov.uk/visual-studio-code:local .
```

### Run
Expand All @@ -31,7 +31,7 @@ docker run -it --rm \
--publish 8080:8080 \
--hostname code \
--name analytical-platform-code \
analytical-platform.service.justice.gov.uk/code:local
analytical-platform.service.justice.gov.uk/visual-studio-code:local
```

## Versions
Expand Down