This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Step by step how to pull a private DockerHub hosted image in a Kubernetes YML. | |
| export DOCKER_REGISTRY_SERVER=https://index.docker.io/v1/ | |
| export DOCKER_USER=Type your dockerhub username, same as when you `docker login` | |
| export DOCKER_EMAIL=Type your dockerhub email, same as when you `docker login` | |
| export DOCKER_PASSWORD=Type your dockerhub pw, same as when you `docker login` | |
| kubectl create secret docker-registry myregistrykey \ | |
| --docker-server=$DOCKER_REGISTRY_SERVER \ | |
| --docker-username=$DOCKER_USER \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| def label = "mypod-${UUID.randomUUID().toString()}" | |
| podTemplate(label: label, yaml: """ | |
| spec: | |
| containers: | |
| - name: mvn | |
| image: maven:3.3.9-jdk-8-alpine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Docker Daemon varsayilan olarak ag iletisimi olmadan | |
| # sadece Unix socket uzerinden calismaktadir. | |
| # Docker Client ve Daemon arasinda HTTPS uzerinden | |
| # guvenli iletisimin kurulmasi icin TLS aktif hale getirilmelidir. | |
| # Client ve Server/daemon arasindaki guvenli iletisim agi | |
| # icin gereken client ve server sertifikasyonlarini | |
| # olusturmaliyiz. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @(cloud: Map[String, Seq[(String, String)]]) | |
| @for((s,urls) <- cloud) { | |
| upstream @s { <-- problem | |
| @for(url <- urls) { | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rm -rf ~/.ammonite/cache | |
| rm -rf ~/.ivy2/cache | |
| rm -rf ~/.m2/* | |
| rm -rf ~/.coursier/cache | |
| rm -rf ~/.ammonite/cache | |
| find . -name target -type d -exec rm -rf {} \; | |
| find . -name project -type d -exec rm -rf {} \; | |
| sbt clean | |
| sbt clean-files | |
| sbt clean-lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@vlmgmt016 ~]# puppet agent -t --waitforcert=3 --no-daemonize --verbose --onetime --server puppet-test.dev.sei | |
| tenbau.net | |
| Info: Creating a new SSL key for vlmgmt016.dev.example.net | |
| Info: csr_attributes file loading from /etc/puppet/csr_attributes.yaml | |
| Info: Creating a new SSL certificate request for vlmgmt016.dev.example.net | |
| Info: Certificate Request fingerprint (SHA256): 24:80:3F:E8:55:14:35:A9:11:C7:F7:C1:37:7C:EC:D0:C9:6B:C6:6E:DF:07:30:8F | |
| :2B:8A:FB:31:76:CE:0A:4B | |
| Info: Caching certificate for vlmgmt016.dev.example.net | |
| Error: Could not |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [main] | |
| # The Puppet log directory. | |
| # The default value is '$vardir/log'. | |
| logdir = /var/log/puppet | |
| # Where Puppet PID files are kept. | |
| # The default value is '$vardir/run'. | |
| rundir = /var/run/puppet | |
| # Where SSL certificates are kept. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case class getBuildTagsObject(buildTagsProjectId: String) | |
| BuildTagsByProjectId.as(getBuildTagsObject) { pId: getBuildTagsObject => DoSmth } | |
| val buildTagsByProjectId = path("buildTags" / "projectId" / Segment) & (get | head) | |
| migrating from akka2.3 /spray -> akka2.4/akka.http | |
| error: | |
| [error] found : common.objects.databaseMessageType.getBuildTagsObject.type | |
| [error] required: akka.http.scaladsl.server.util.ConstructFromTuple[(String,),?] | |
| [error] buildTagsByProjectId.as(getBuildTagsObject) { pId: getBuildTagsObject => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >> val blargh = List(1 to 255).toList | |
| blargh: List[Range.Inclusive] = List( | |
| Range( | |
| 1, | |
| 2, | |
| >> val blargh = List(1 to 255).head.toList | |
| blargh: List[Int] = List( | |
| 1, | |
| 2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def getNewSrvIp(project: String, stage: String): Option[String] = { | |
| val ipList = dba.getServer.filter(_.project.equals(project)).map(x => x.ip) | |
| val subnet = dba.getSubnet.filter(_.project.equals(project)).head.subnet | |
| val prjRange = dba.getIpRanges.filter(_.project.equals(project)).filter(_.stage.equals(stage)).hea | |
| val upperBound = prjRange.upp | |
| val lowerBound = prjRange.low | |
| val ipInts = ipList.map(x => x.split("\\.").map(x => x.toInt)) | |
| val fourthOctetList = ipInts.map(x => x(3)).sorted | |
| val ipGap = getIntGap(fourthOctetList.toList) match { | |
| case Some(x: Int) => Some(subnet + "." + (x . toString)) |
NewerOlder