Skip to content

Commit f590e5b

Browse files
Adopt community-ansible-dev-tools image (#1415)
* adopt community-ansible-dev-tools EE * Test fix for volume mounts * fix setup script * remove unused vars and instructions * debug als tests on ci * added ls command to check folder access * setup tmate session only for linux * Remove tmate session and revert unintended changes --------- Co-authored-by: Ajinkya <[email protected]>
1 parent 50c1dc4 commit f590e5b

File tree

14 files changed

+34
-26
lines changed

14 files changed

+34
-26
lines changed

.config/Containerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM ghcr.io/ansible/creator-ee:v24.2.0 as DEFAULT_EE
1+
FROM ghcr.io/ansible/community-ansible-dev-tools:latest as DEFAULT_EE
22
# This file is updated by dependabot and used to determine not only which
3-
# version of creator-ee we are supposed to use for testing execution
3+
# version of community-ansible-dev-tools we are supposed to use for testing execution
44
# environments but also to dynamically retrieve the same set of constraints
55
# for testing outside execution environments.

.config/requirements.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ mkdocstrings-python
2323
pillow
2424
pymdown-extensions
2525
slugify
26+
# for community-ansible-dev-tools image
27+
ansible-pylibssh==1.1.0

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"image": "ghcr.io/ansible/creator-ee:latest",
2+
"image": "ghcr.io/ansible/community-ansible-dev-tools:latest",
33
"workspaceFolder": "/workspace",
44
"workspaceMount": "source=remote-workspace,target=/workspace,type=volume"
55
}

docs/als/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Toggle usage of an execution environment
3737
## [`ansible.executionEnvironment.image`](#executionEnvironment.image) { #executionEnvironment.image data-toc-label=executionEnvironment.image }
3838
Name of the execution environment to be used
3939
. Default value:
40-
``ghcr.io/ansible/creator-ee:latest``
40+
``ghcr.io/ansible/community-ansible-dev-tools:latest``
4141

4242
## [`ansible.executionEnvironment.pull.policy`](#executionEnvironment.pull.policy) { #executionEnvironment.pull.policy data-toc-label=executionEnvironment.pull.policy }
4343
Image pull policy to be used. Valid values are &#x27;always&#x27;, &#x27;missing&#x27;, &#x27;never&#x27; and &#x27;tag&#x27;. always will always pull the image when extension is activated or reloaded. &#x27;missing&#x27; will pull if not locally available. &#x27;never&#x27; will never pull the image and &#x27;tag&#x27; will always pull if the image tag is &#x27;latest&#x27;, otherwise pull if not locally available.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@
542542
"ansible.executionEnvironment.image": {
543543
"scope": "resource",
544544
"type": "string",
545-
"default": "ghcr.io/ansible/creator-ee:latest",
545+
"default": "ghcr.io/ansible/community-ansible-dev-tools:latest",
546546
"markdownDescription": "Specify the name of the execution environment image.",
547547
"order": 3
548548
},

packages/ansible-language-server/.config/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM quay.io/ansible/creator-ee:v24.2.0 as DEFAULT_EE
1+
FROM ghcr.io/ansible/community-ansible-dev-tools:latest as DEFAULT_EE
22
# This file is updated by dependabot and used to determine not only which
3-
# version of creator-ee we are supposed to use for testing execution
3+
# version of community-ansible-dev-tools we are supposed to use for testing execution
44
# environments but also to dynamically retrieve the same set of constraints
55
# for testing outside execution environments.
66
#

packages/ansible-language-server/.config/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# testing and linting, do not put version constraints here as they
2-
# conflict with the locked version taken from creator-ee requirements.txt
2+
# conflict with the locked version taken from community-ansible-dev-tools EE requirements.txt
33
ansible-core
44
ansible-lint
55
# end-of dependencies for which we allow pre-releases

packages/ansible-language-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"watch": "tsc --watch -p .",
8585
"test": "sh -c \"nyc mocha ${MOCHA_OPTS:-}\"",
8686
"test-with-ee": "sh -c \"nyc mocha --grep @ee ${MOCHA_OPTS:-}\"",
87-
"test-without-ee": "sh -c \"nyc mocha --grep @ee --invert ${MOCHA_OPTS:-}\""
87+
"test-without-ee": "sh -c \"SKIP_PODMAN=1 SKIP_DOCKER=1 nyc mocha --grep @ee --invert ${MOCHA_OPTS:-}\""
8888
},
8989
"all": true
9090
}

packages/ansible-language-server/src/services/settingsManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class SettingsManager {
5353
description: "Toggle usage of an execution environment",
5454
},
5555
image: {
56-
default: "ghcr.io/ansible/creator-ee:latest",
56+
default: "ghcr.io/ansible/community-ansible-dev-tools:latest",
5757
description: "Name of the execution environment to be used",
5858
},
5959
pull: {

packages/ansible-language-server/test/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ try {
6060
}
6161

6262
const containers = new Set([
63-
`ghcr.io/ansible/creator-ee:${EE_VERSION}`,
63+
`ghcr.io/ansible/community-ansible-dev-tools:${EE_VERSION}`,
6464
DEFAULT_CONTAINER,
6565
]);
6666

0 commit comments

Comments
 (0)