Giter Club home page Giter Club logo

cloud-native-labs's People

Contributors

cescoffier avatar jlmayorga avatar jorgemoralespou avatar siamaksade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloud-native-labs's Issues

Lab 5 - build failures due to bower resolution issues for bootstrap

This error happens regardless of what version of openshift you're using.

Gives the following error:

Please note that,
bootstrap-switch#3.3.4 depends on jquery#~1.9.0 which resolved to jquery#1.9.1
patternfly#3.17.0 depends on jquery#~2.1.4 which resolved to jquery#2.1.4
datatables#1.10.19, datatables#1.10.19, datatables#1.10.19, datatables-colreorder#1.3.3, datatables-colvis#1.1.2 depends on jquery#>=1.7.0 which r
esolved to jquery#3.3.1
bootstrap-touchspin#3.1.2 depends on jquery#>=1.9.0 which resolved to jquery#3.3.1
patternfly-bootstrap-treeview#2.1.8 depends on jquery#>= 1.9.0 which resolved to jquery#3.3.1
bootstrap-select#1.10.0 depends on jquery#>=1.8 which resolved to jquery#3.3.1
eonasdan-bootstrap-datetimepicker#4.17.47 depends on jquery#>=1.8.3 which resolved to jquery#3.3.1
bootstrap-datepicker#1.6.4 depends on jquery#>=1.7.1 which resolved to jquery#3.3.1
bootstrap#3.3.7 depends on jquery#1.9.1 - 3 which resolved to jquery#3.3.1
Resort to using jquery#3.3.1 which resolved to jquery#3.3.1
Code incompatibilities may occur.

bower                                                   ECONFLICT Unable to find suitable version for bootstrap
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `bower --config.registry.search=${BOWER_MIRROR} install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /opt/app-root/src/.npm/_logs/2019-01-10T18_07_17_370Z-debug.log
error: build error: non-zero (13) exit code from docker-registry.default.svc:5000/openshift/nodejs@sha256:1a42ca9592ea96f1d9b6042cab05191e68ba7759
e98b25334bd6af04cd028b35

Using --force-latest with bower install makes the build complete, but the angular app doesn't render and has an error in the console.

Looking into it.

Users can scale up infinite pods and consume all resources

Scenario:
During workshop, one user scaled up the Inventory app up to 10,000 pods (just out of curiosity), this crashed 2/5 app nodes and took down Eclipse Che and many other user apps.

OCP recovered eventually after the pods had been scaled down to 1.

Shouldn't we have quota/resource limits on each app?

Where to start?

is there a tutorial one can walk through? I would like to use this lab for our next community meetup, I see the solutions, however, I do not see the problem statement or how to go about it and what each lab objective is? I heard about these labs from podctl podcast #40

mvn build for package target fails for the inventory-wildfly-swarm project

[INFO] --- wildfly-swarm-plugin:7.1.0.redhat-77:package (default) @ inventory ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.212 s
[INFO] Finished at: 2019-01-28T14:27:26-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wildfly.swarm:wildfly-swarm-plugin:7.1.0.redhat-77:package (default) on project inventory: Execution default of goal org.wildfly.swarm:wildfly-swarm-plugin:7.1.0.redhat-77:package failed: An API incompatibility was encountered while executing org.wildfly.swarm:wildfly-swarm-plugin:7.1.0.redhat-77:package: java.lang.AbstractMethodError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.wildfly.swarm:wildfly-swarm-plugin:7.1.0.redhat-77
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/praveenrajagopalan/.m2/repository/org/wildfly/swarm/wildfly-swarm-plugin/7.1.0.redhat-77/wildfly-swarm-plugin-7.1.0.redhat-77.jar
[ERROR] urls[1] = file:/Users/praveenrajagopalan/.m2/repository/org/wildfly/swarm/fraction-metadata/7.1.0.redhat-77/fraction-metadata-7.1.0.redhat-77.jar
[ERROR] urls[2] = file:/Users/praveenrajagopalan/.m2/repository/org/wildfly/swarm/meta-spi/7.1.0.redhat-77/meta-spi-7.1.0.redhat-77.jar
[ERROR] urls[3] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-javaee/2.0.0.redhat-122/shrinkwrap-descriptors-impl-javaee-2.0.0.redhat-122.jar
[ERROR] urls[4] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-base/2.0.0.redhat-122/shrinkwrap-descriptors-impl-base-2.0.0.redhat-122.jar
[ERROR] urls[5] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-spi/2.0.0.redhat-122/shrinkwrap-descriptors-spi-2.0.0.redhat-122.jar
[ERROR] urls[6] = file:/Users/praveenrajagopalan/.m2/repository/org/ow2/asm/asm/6.0.0.redhat-65/asm-6.0.0.redhat-65.jar
[ERROR] urls[7] = file:/Users/praveenrajagopalan/.m2/repository/com/eclipsesource/minimal-json/minimal-json/0.9.4/minimal-json-0.9.4.jar
[ERROR] urls[8] = file:/Users/praveenrajagopalan/.m2/repository/org/wildfly/swarm/tools/7.1.0.redhat-77/tools-7.1.0.redhat-77.jar
[ERROR] urls[9] = file:/Users/praveenrajagopalan/.m2/repository/org/wildfly/swarm/bootstrap/7.1.0.redhat-77/bootstrap-7.1.0.redhat-77.jar
[ERROR] urls[10] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/modules/jboss-modules/1.6.0.Final-redhat-1/jboss-modules-1.6.0.Final-redhat-1.jar
[ERROR] urls[11] = file:/Users/praveenrajagopalan/.m2/repository/org/yaml/snakeyaml/1.17.0.redhat-1/snakeyaml-1.17.0.redhat-1.jar
[ERROR] urls[12] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-api/1.2.6.redhat-118/shrinkwrap-api-1.2.6.redhat-118.jar
[ERROR] urls[13] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-spi/1.2.6.redhat-118/shrinkwrap-spi-1.2.6.redhat-118.jar
[ERROR] urls[14] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-impl-base/1.2.6.redhat-118/shrinkwrap-impl-base-1.2.6.redhat-118.jar
[ERROR] urls[15] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-jboss/2.0.0.redhat-122/shrinkwrap-descriptors-api-jboss-2.0.0.redhat-122.jar
[ERROR] urls[16] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-javaee/2.0.0.redhat-122/shrinkwrap-descriptors-api-javaee-2.0.0.redhat-122.jar
[ERROR] urls[17] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-base/2.0.0.redhat-122/shrinkwrap-descriptors-api-base-2.0.0.redhat-122.jar
[ERROR] urls[18] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-jboss/2.0.0.redhat-122/shrinkwrap-descriptors-impl-jboss-2.0.0.redhat-122.jar
[ERROR] urls[19] = file:/Users/praveenrajagopalan/.m2/repository/net/lingala/zip4j/zip4j/1.3.2/zip4j-1.3.2.jar
[ERROR] urls[20] = file:/Users/praveenrajagopalan/.m2/repository/org/wildfly/swarm/spi/7.1.0.redhat-77/spi-7.1.0.redhat-77.jar
[ERROR] urls[21] = file:/Users/praveenrajagopalan/.m2/repository/org/jboss/jandex/2.0.3.Final-redhat-1/jandex-2.0.3.Final-redhat-1.jar
[ERROR] urls[22] = file:/Users/praveenrajagopalan/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
[ERROR] urls[23] = file:/Users/praveenrajagopalan/.m2/repository/org/eclipse/aether/aether-util/1.0.0.v20140518-redhat-106/aether-util-1.0.0.v20140518-redhat-106.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

web-nodejs bower build failures due to bower resolutions for jquery

This happens with OCP 3.11

bower patternfly-bootstrap-combobox#~1.1.7                extract archive.tar.gz
--
  | bower patternfly-bootstrap-combobox#~1.1.7               resolved https://github.com/patternfly/patternfly-bootstrap-combobox.git#1.1.7
  | Please note that,
  | angular-route#1.5.10 depends on angular#1.5.10 which resolved to angular#1.5.10
  | angular-patternfly#3.17.0 depends on angular#1.3.0 - 1.5.* which resolved to angular#1.5.10
  | angular-bootstrap#0.14.3 depends on angular#>=1.3.0 which resolved to angular#1.5.10
  | angular-animate#1.5.11, angular-sanitize#1.5.11 depends on angular#1.5.11 which resolved to angular#1.5.11
  | Resort to using angular#1.5.10 which resolved to angular#1.5.10
  | Code incompatibilities may occur.
  | bower jquery                                           resolution Unsuitable resolution declared for jquery: 3.3.1
  | bower                                                   ECONFLICT Unable to find suitable version for jquery
  | npm ERR! code ELIFECYCLE
  | npm ERR! errno 1
  | npm ERR! [email protected] postinstall: `bower --config.registry.search=${BOWER_MIRROR} install`
  | npm ERR! Exit status 1
  | npm ERR!
  | npm ERR! Failed at the [email protected] postinstall script.
  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  | npm ERR! A complete log of this run can be found in:
  | npm ERR!     /opt/app-root/src/.npm/_logs/2019-04-17T14_50_18_852Z-debug.log

it is solved by changing bower.json to jquery 3.4.0

from

"resolutions": {
        "angular": "1.5.10",
        "jquery": "3.3.1",
        "bootstrap": "~3.3.7"
    }
}

to

"resolutions": {
        "angular": "1.5.10",
        "jquery": "3.4.0",
        "bootstrap": "~3.3.7"
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.