Skip to content

Commit

Permalink
devcontainer: Update devcontainer config
Browse files Browse the repository at this point in the history
Signed-off-by: Schubert Anselme <[email protected]>
  • Loading branch information
sanselme committed Nov 3, 2024
1 parent 809a766 commit eaeacd2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "devcontainer",
"dockerComposeFile": ["${localWorkspaceFolder}/compose-dev.yaml"],
"service": "devcontainer",
"workspaceFolder": "/workspace",
"workspaceFolder": "/home/devcontainer",
"postCreateCommand": "${containerWorkspaceFolder}/scripts/configure.sh",
"remoteUser": "devcontainer"
}
14 changes: 11 additions & 3 deletions hack/boilerplate.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0
# source scripts/alias.sh
# source scripts/environment.sh

DIR="$(dirname $(realpath $(dirname "${0}")))"
. "${DIR}/scripts/aliases.sh"
. "${DIR}/scripts/environment.sh"
# export $(yq --output-format shell '.' config/versions.yaml | tr -d "'")

export os="$(uname | tr '[:upper:]' '[:lower:]')"
export arch="$(uname -m)"

echo """
os: ${os}
arch: ${arch}
"""
5 changes: 5 additions & 0 deletions scripts/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ if ! ssh-add -l >>/dev/null; then
fi

# Functions
get_env_var() {
local key="${1}"
env | awk -F "=" "/${key}/ { print \$2 }"
}

cache() {
CACHE_DIR=".cache"

Expand Down

0 comments on commit eaeacd2

Please sign in to comment.