Skip to content

Commit

Permalink
connect to openshift local
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gilber committed Nov 9, 2023
1 parent 9726b3f commit 8852825
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .devcontainer/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
# Using Docker Compose for Dev Containers: https://containers.dev/guide/dockerfile#docker-compose-dockerfile
# Service top-level element reference: https://docs.docker.com/compose/compose-file/05-services/
services:
devcontainer:
image: mcr.microsoft.com/devcontainers/base:bullseye
# network_mode: host
volumes:
- ../..:/workspaces:cached # mounts the workspace folder from the local source tree into the Dev Container.
command: sleep infinity
extra_hosts:
- "api.crc.testing:host-gateway"
10 changes: 8 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
{
"name": "Kubernetes - Local Configuration",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
// "image": "mcr.microsoft.com/devcontainers/base:bullseye",

// Use Docker Compose File
"dockerComposeFile": "compose.yaml",
"service": "devcontainer",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

// Available features: https://containers.dev/features
"features": {
Expand All @@ -22,7 +27,8 @@
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {},
"ghcr.io/joshuanianji/devcontainer-features/github-cli-persistence:0": {},
"ghcr.io/mpriscella/features/kind:1": {},
"ghcr.io/paul-gilber/devcontainer-features/openshift-cli-homebrew:1": {}
"ghcr.io/paul-gilber/devcontainer-features/openshift-cli-homebrew:1": {},
"ghcr.io/paul-gilber/devcontainer-features/yamllint-homebrew:1": {}
},

"remoteEnv": {
Expand Down

0 comments on commit 8852825

Please sign in to comment.