Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
48678001
Unverified
Commit
48678001
authored
Dec 21, 2022
by
Samruddhi Khandale
Committed by
GitHub
Dec 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Terraform: Update GPG_KEY_SERVERS (#353)
* Terraform: Update GPG_KEY_SERVERS * add check
parent
42e5a013
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
21 deletions
+3
-21
devcontainer-feature.json
src/terraform/devcontainer-feature.json
+1
-1
install.sh
src/terraform/install.sh
+1
-19
test.sh
test/terraform/test.sh
+1
-1
No files found.
src/terraform/devcontainer-feature.json
View file @
48678001
{
"id"
:
"terraform"
,
"version"
:
"1.1.
0
"
,
"version"
:
"1.1.
1
"
,
"name"
:
"Terraform, tflint, and TFGrunt"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/terraform"
,
"description"
:
"Installs the Terraform CLI and optionally TFLint and Terragrunt. Auto-detects latest version and installs needed dependencies."
,
...
...
src/terraform/install.sh
View file @
48678001
...
...
@@ -26,7 +26,7 @@ TERRAFORM_DOCS_SHA256="${TERRAFORM_DOCS_SHA256:-"automatic"}"
TERRAFORM_GPG_KEY
=
"72D7468F"
TFLINT_GPG_KEY_URI
=
"https://raw.githubusercontent.com/terraform-linters/tflint/master/8CE69160EB3F2FE9.key"
GPG_KEY_SERVERS
=
"keyserver hkp://keyserver.ubuntu.com
:80
GPG_KEY_SERVERS
=
"keyserver hkp://keyserver.ubuntu.com
keyserver hkps://keys.openpgp.org
keyserver hkp://keyserver.pgp.com"
...
...
@@ -44,26 +44,9 @@ if [ "$(id -u)" -ne 0 ]; then
exit
1
fi
# Get central common setting
get_common_setting
()
{
if
[
"
${
common_settings_file_loaded
}
"
!=
"true"
]
;
then
curl
-sfL
"https://aka.ms/vscode-dev-containers/script-library/settings.env"
2>/dev/null
-o
/tmp/vsdc-settings.env
||
echo
"Could not download settings file. Skipping."
common_settings_file_loaded
=
true
fi
if
[
-f
"/tmp/vsdc-settings.env"
]
;
then
local
multi_line
=
""
if
[
"
$2
"
=
"true"
]
;
then
multi_line
=
"-z"
;
fi
local
result
=
"
$(
grep
${
multi_line
}
-oP
"
$1
=
\"
?
\K
[^
\"
]+"
/tmp/vsdc-settings.env |
tr
-d
'\0'
)
"
if
[
!
-z
"
${
result
}
"
]
;
then
declare
-g
$1
=
"
${
result
}
"
;
fi
fi
echo
"
$1
=
${
!1
}
"
}
# Import the specified key in a variable name passed in as
receive_gpg_keys
()
{
get_common_setting
$1
local
keys
=
${
!1
}
get_common_setting GPG_KEY_SERVERS
true
local
keyring_args
=
""
if
[
!
-z
"
$2
"
]
;
then
keyring_args
=
"--no-default-keyring --keyring
$2
"
...
...
@@ -186,7 +169,6 @@ if [ "${TFLINT_VERSION}" != "none" ]; then
curl
-sSL
-o
/tmp/tf-downloads/
${
TFLINT_FILENAME
}
https://github.com/terraform-linters/tflint/releases/download/v
${
TFLINT_VERSION
}
/
${
TFLINT_FILENAME
}
if
[
"
${
TFLINT_SHA256
}
"
!=
"dev-mode"
]
;
then
if
[
"
${
TFLINT_SHA256
}
"
=
"automatic"
]
;
then
get_common_setting TFLINT_GPG_KEY_URI
curl
-sSL
-o
tflint_key
"
${
TFLINT_GPG_KEY_URI
}
"
gpg
-q
--import
tflint_key
curl
-sSL
-o
tflint_checksums.txt https://github.com/terraform-linters/tflint/releases/download/v
${
TFLINT_VERSION
}
/checksums.txt
...
...
test/terraform/test.sh
View file @
48678001
...
...
@@ -5,7 +5,7 @@ set -e
# Optional: Import test library
source
dev-container-features-test-lib
echo
'NO TESTS FOR ME YET!'
check
"terraform"
terraform
-version
# Report result
reportResults
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment