In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
| codename=$(lsb_release -c | awk '{print $2}') | |
| sudo tee /etc/apt/sources.list.d/ddebs.list << EOF | |
| deb http://ddebs.ubuntu.com/ ${codename} main restricted universe multiverse | |
| deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse | |
| deb http://ddebs.ubuntu.com/ ${codename}-updates main restricted universe multiverse | |
| deb http://ddebs.ubuntu.com/ ${codename}-proposed main restricted universe multiverse | |
| EOF | |
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01 | |
| sudo apt-get update |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
| http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd | |
| http://xmlns.oracle.com/weblogic/weblogic-ejb-jar | |
| http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.2/weblogic-ejb-jar.xsd"> | |
| <!--weblogic-version:10.3.6--> | |
| <wls:weblogic-enterprise-bean> | |
| <wls:ejb-name>Calculator</wls:ejb-name> |
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
| ( function( $, plugin ) { | |
| "use strict"; | |
| // Working with promises to bubble event later than core. | |
| $.when( someObjectWithEvents ).done( function() { | |
| console.log( 'AJAX request done.' ); | |
| } ) | |
| .then( function() { | |
| setTimeout( function() { | |
| console.log( 'AJAX requests resolved.' ); |
| #!groovy | |
| // imports | |
| import jenkins.model.Jenkins | |
| import jenkins.model.JenkinsLocationConfiguration | |
| // parameters | |
| def jenkinsParameters = [ | |
| email: 'Jenkins Admin <admin@jenkins.com>', | |
| url: 'https://ci.jenkins.com:8083/' |
| jenkins.model.Jenkins.getInstance().getUpdateCenter().getSites().each { site -> | |
| site.updateDirectlyNow(hudson.model.DownloadService.signatureCheck) | |
| } | |
| hudson.model.DownloadService.Downloadable.all().each { downloadable -> | |
| downloadable.updateNow(); | |
| } | |
| def plugins = jenkins.model.Jenkins.instance.pluginManager.activePlugins.findAll { | |
| it -> it.hasUpdate() |
| "workbench.colorCustomizations": { | |
| // Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
| "contrastActiveBorder": "", | |
| "contrastBorder": "", | |
| // Base Colors | |
| "focusBorder": "", | |
| "foreground": "", | |
| "widget.shadow": "", | |
| "selection.background": "", | |
| "descriptionForeground": "", |
| deploy an application | |
| --------------------- | |
| curl -v \ | |
| -H X-Requested-By:MyClient \ | |
| -H Accept:application/json \ | |
| -H Content-Type:application/json \ | |
| -d "{ | |
| name: 'mwiapp', | |
| applicationPath : '/apps/oracle-weblogic/applications/mwiapp.war', | |
| targets: ['mwiCluster1'], |