Skip to content

Commit

Permalink
📂 Add workspace directory (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Woffenden <[email protected]>
  • Loading branch information
Jacob Woffenden authored Mar 12, 2024
1 parent 0628be3 commit ed20c78
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .devcontainer/devcontainer-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "2.10.1",
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:440bdb81cf8af43f3e922450d33db9775c1097340557a5b7b6fe705bc758c5ef",
"integrity": "sha256:440bdb81cf8af43f3e922450d33db9775c1097340557a5b7b6fe705bc758c5ef"
}
}
}
16 changes: 16 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "analytical-platform-visual-studio-code",
"image": "ghcr.io/ministryofjustice/devcontainer-base:latest",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"GitHub.vscode-github-actions",
"GitHub.vscode-pull-request-github"
]
}
}
}
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ indent_size = 2
[{*.yml,*.yaml}]
indent_style = space
indent_size = 2

# This file is autogenerated
[.devcontainer/devcontainer-lock.json]
end_of_line = unset
insert_final_newline = unset
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ENV CONTAINER_USER="analyticalplatform" \
CONTAINER_GROUP="analyticalplatform" \
CONTAINER_GID="1000" \
DEBIAN_FRONTEND="noninteractive" \
VISUAL_STUDIO_CODE_VERSION="1.87.0-1709078641" \
AWS_CLI_VERSION="2.15.25" \
VISUAL_STUDIO_CODE_VERSION="1.87.1-1709685762" \
AWS_CLI_VERSION="2.15.27" \
MINICONDA_VERSION="24.1.2-0" \
MINICONDA_SHA265="8eb5999c2f7ac6189690d95ae5ec911032fa6697ae4b34eb3235802086566d78" \
PATH="/opt/conda/bin:${PATH}"
Expand All @@ -38,6 +38,7 @@ RUN apt-get update --yes \
"git=1:2.34.1-1ubuntu1.10" \
"gpg=2.2.27-3ubuntu2.1" \
"jq=1.6-2.1ubuntu3" \
"mandoc=1.14.6-1" \
"python3.10=3.10.12-1~22.04.3" \
"python3-pip=22.0.2+dfsg-1ubuntu0.4" \
"unzip=6.0-26ubuntu3.2" \
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ docker run -it --rm \
analytical-platform.service.justice.gov.uk/visual-studio-code:local
```

### Use

Open a browser <https://localhost:8080/?folder=/home/analyticalplatform/workspace>

## Versions

### Ubuntu
Expand Down
2 changes: 2 additions & 0 deletions src/usr/local/bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

mkdir --parent /home/analyticalplatform/workspace

/usr/bin/code serve-web \
--without-connection-token \
--accept-server-license-terms \
Expand Down

0 comments on commit ed20c78

Please sign in to comment.