Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fit devonfw-ide setup inside cobigen-cli tutorial #6

Open
markusschuh opened this issue Oct 4, 2020 · 0 comments
Open

fit devonfw-ide setup inside cobigen-cli tutorial #6

markusschuh opened this issue Oct 4, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@markusschuh
Copy link

Default set of components to be installed in devonfw-ide during setup is

DEVON_IDE_TOOLS=(java mvn eclipse vscode node npm ng)

The UI components in this list - eclipse and vscode - can't run within katacode environment due to missing X11 emulation there. Katacoda instead has its own vscode implementation as IDE - what is perfect for the tutorials, So best fit the setup of devonfw-ide a bit to avoid unnecessary resource usage and avoid setup errors like devonfw/ide#466

DEVON_IDE_TOOLS=(java mvn node npm ng)

N.B.: The devonfw-ide commandlet ng currently does not seem to resolve its dependencies correctly, so setup may fail, if node is removed from this list. Looks like a small bug inside devonfw-ide. Better keep node explicitly within the list.

And how to do this configuration, without too much complexity for the first time user?

As described inside devonfw-ide configuration the set of components included within setup can be modified by different means.
So either introduce a whole own settings-URL - I see you are already working on this at https://github.com/devonfw/katacoda-scenarios-ide-settings. Or for this use case of a configuration tuning in just one setting: Instruct the user, how to customize the components to install within the user-specific defaults file for devonfw-ide - which is ~/devon.properties.

Here is my proposal for a changed step1.md of the cobigen-cli tutorial

...
## devonfw setup

Fit the set of  `devonfw-ide` components to be installed for this tutorial. On your own desktop first time users skip this step and keep the default set, which also setup UI components as `eclipse` and `vscode`:

```
echo "DEVON_IDE_TOOLS=(java mvn node npm ng)" > ~/devon.properties
```{{execute}}

Create the directory where the devonfw ide will be installed.

```
mkdir devonfw

cd devonfw
```{{execute}}


Download the `devonfw-ide` archive and run `setup`. More information about setting up your ide on https://devonfw.com/website/pages/docs/devonfw-ide-introduction.asciidoc.html#setup.asciidoc

```
curl -L "https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.devonfw.tools.ide&a=devonfw-ide-scripts&p=tar.gz&v=LATEST" | tar -xz

./setup https://github.com/devonfw/ide-settings.git
```{{execute}}

The installation process may take a while.

Accept the licence agreements.
`yes`{{execute}}

You can negate the question, if you want to share anonymous data with the Angular Team.
`N`{{execute}}
```

@markusschuh markusschuh added the enhancement New feature or request label Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant