Skip to content

Commit 2020b2e

Browse files
authored
Merge pull request #55290 from gabriel-rh/github-codespaces-gitpod
Support for cloud development environments
2 parents 580561f + fc97e4e commit 2020b2e

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
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 && cd _preview/openshift-enterprise/main && ln -s welcome/index.html 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"
24+
}

.gitpod.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#image:
2+
# file: .gitpod.Dockerfile
3+
4+
tasks:
5+
- name: Dev Server
6+
# before: npm install --global http-server
7+
init: |
8+
rvm install 2.7.6
9+
gem install asciidoctor asciidoctor-diagram ascii_binder
10+
# pip3 install aura.tar.gz
11+
command: |
12+
asciibinder build --distro=openshift-enterprise
13+
cd _preview/openshift-enterprise/main
14+
ln -s welcome/index.html index.html
15+
python -m http.server

0 commit comments

Comments
 (0)