Skip to content

Commit

Permalink
update devfile
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Kuznietsov <[email protected]>
  • Loading branch information
mkuznyetsov committed Sep 13, 2023
1 parent e1ebc29 commit 63ae5a0
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 16 deletions.
68 changes: 68 additions & 0 deletions .devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#
# Copyright (c) 2019-2021 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
#
schemaVersion: 2.2.0
metadata:
name: devspaces-images
# add components:, unless basic udi component is good enough?
components:
- name: tools
container:
image: quay.io/mkuznets/devspaces-images-tools:latest
memoryRequest: 1Gi
memoryLimit: 8Gi
cpuLimit: '4'
cpuRequest: '0.5'
env:
-
name: http_proxy
value: socks5h://localhost:9999
-
name: https_proxy
value: socks5h://localhost:9999
-
name: ftp_proxy
value: socks5h://localhost:9999
-
name: rsync_proxy
value: socks5h://localhost:9999
-
name: all_proxy
value: socks5h://localhost:9999
-
name: HTTP_PROXY
value: socks5h://localhost:9999
-
name: HTTPS_PROXY
value: socks5h://localhost:9999
-
name: FTPS_PROXY
value: socks5h://localhost:9999
-
name: RSYNC_PROXY
value: socks5h://localhost:9999
-
name: ALL_PROXY
value: socks5h://localhost:9999
-
name: NO_PROXY
value: socks5h://localhost:9999

# add commands: for building all of the containers?
commands:
- id: start-socks5-proxy
exec:
commandLine: |
read -p "ENTER Red Hat username: " REDHAT_USER &&
ssh -D 9999 ${REDHAT_USER}@bastion-rdu2.redhat.com -p 330
component: tools
label: Connect to Red Hat internal network
13 changes: 13 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "devfile",
"command": "read -p \"ENTER Red Hat username: \" REDHAT_USER &&\nssh -D 9999 ${REDHAT_USER}@bastion-rdu2.redhat.com -p 330\n",
"workdir": "${PROJECT_SOURCE}",
"component": "tools",
"problemMatcher": [],
"label": "devfile: Connect to Red Hat internal network"
}
]
}
16 changes: 0 additions & 16 deletions devfile.yaml

This file was deleted.

0 comments on commit 63ae5a0

Please sign in to comment.