Skip to content

Commit

Permalink
Merge pull request #19 from amansinghoriginal/main
Browse files Browse the repository at this point in the history
Configure locale for building-comfort container image
  • Loading branch information
amansinghoriginal authored Jan 3, 2025
2 parents 1746672 + 4ddf7c8 commit 58b2e23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .devcontainer/building-comfort/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
// Install Python
"ghcr.io/devcontainers/features/python:1": {}
},
// Configure environment variables
"containerEnv": {
"LANG": "en_US.UTF-8",
"LANGUAGE": "en_US:en",
"LC_ALL": "en_US.UTF-8"
},
"remoteEnv": {
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}",
"PGHOST": "localhost",
Expand All @@ -45,8 +51,6 @@
"PGPASSWORD" : "test"

},
// Use 'portsAttributes' to set default properties for specific forwarded ports.
// More info: https://containers.dev/implementors/json_reference/#port-attributes
"portsAttributes": {
"5432": {
"label": "postgres",
Expand Down
8 changes: 7 additions & 1 deletion .devcontainer/building-comfort/on-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@
# limitations under the License.

## Install Drasi CLI
curl -fsSL https://raw.githubusercontent.com/drasi-project/drasi-platform/main/cli/installers/install-drasi-cli.sh | /bin/bash
curl -fsSL https://raw.githubusercontent.com/drasi-project/drasi-platform/main/cli/installers/install-drasi-cli.sh | /bin/bash

## Setting up locale since `node:18-bookworm` does not have it configured
apt-get update
apt-get install -y locales
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen
locale-gen

0 comments on commit 58b2e23

Please sign in to comment.