Skip to content

Commit 09af816

Browse files
authored
Merge pull request #65882 from gabriel-rh/docs-infra-improve-devcontainer3
DOCS Infrastructure improve devcontainer
2 parents 73b7cb0 + 6c8c3dc commit 09af816

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
{
2-
"name": "ruby 2",
3-
4-
"image": "mcr.microsoft.com/vscode/devcontainers/ruby:2.7",
5-
//"image": "quay.io/rhn_support_gmcgoldr/vscode-ruby27-asciibinder",
6-
7-
"postCreateCommand": "gem install asciidoctor asciidoctor-diagram ascii_binder && asciibinder build --distro=openshift-enterprise && BR=\"$(git branch --show-current)\" && cd _preview && ln -s openshift-enterprise/$BR/welcome/index.html openshift-enterprise/index.html && ruby -run -ehttpd . -p8000"
8-
//"postCreateCommand": "asciibinder build --distro=openshift-enterprise && cd _preview/openshift-enterprise/main && ln -s welcome/index.html index.html && ruby -run -ehttpd . -p8000"
9-
10-
// Features to add to the dev container. More info: https://containers.dev/features.a
11-
// "features": {},
12-
13-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14-
// "forwardPorts": [],
15-
16-
// Use 'postCreateCommand' to run commands after the container is created.
17-
// "postCreateCommand": "pip3 install --user -r requirements.txt",
18-
19-
// Configure tool-specific properties.
20-
// "customizations": {},
21-
22-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
23-
// "remoteUser": "root"
2+
"image":"mcr.microsoft.com/devcontainers/universal:2",
3+
"postCreateCommand": "sleep 30 && docker run --rm -it -v `pwd`:/docs:Z quay.io/openshift-cs/asciibinder sh -c \"git config --global --add safe.directory /docs && asciibinder build --distro openshift-rosa && asciibinder build --distro openshift-enterprise\" && python3 -m http.server -d ./_preview"
244
}

0 commit comments

Comments
 (0)