Step-by-Step Guide how to install CI/CD with Docker Registry On Ubuntu 14.04 LTS from scratch.
docker run -d -p 5000:5000 --restart=always --name registry registry:2
#!/usr/bin/env groovy | |
import java.util.* | |
import groovy.util.XmlParser | |
def pom = new File('pom.xml').getText('utf-8') | |
def doc = new XmlParser().parseText(pom) | |
def version = doc.version.text() | |
println(version) |
import org.jsoup.Jsoup | |
def document = Jsoup.connect('https://api.github.com/repos/saidsef/alpine-jenkins-dockerfile-demo/releases/latest')ignoreContentType(true).execute().body() | |
def json = new groovy.json.JsonSlurper().parseText(document) | |
println(json.tag_name) |
#!/usr/bin/env python | |
# Copyright (c) 2018, Said Sef. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
## | |
# You'll need to install pynput | |
# pip install pynput | |
## | |
from pynput.mouse import Button, Controller, Listener |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2018, Said Sef. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
__author__ = 'Said Sef' | |
import hcl | |
import json | |
import yaml |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2018, Said Sef. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
from flask import Flask, jsonify | |
app = Flask(__name__) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2018, Said Sef. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
import boto3 | |
import tempfile | |
import logging | |
from voices import Voices |
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "2017-11-17T04:40:23Z", | |
"title": "TestVPCLink" | |
}, | |
"basePath": "/", | |
"schemes": [ | |
"https" | |
], |
Step-by-Step Guide how to install CI/CD with Docker Registry On Ubuntu 14.04 LTS from scratch.
docker run -d -p 5000:5000 --restart=always --name registry registry:2
# As a prerequisite you'll need to install Docker and pip install aws-sam-cli | |
# Also, remeber to build you package `npm install` | |
sam init --runtime nodejs8.10 | |
sam local generate-event api -m GET -b "" | sam local invoke HelloWorldFunction | |
sam package \ | |
--template-file teamplate.yaml \ | |
--output-template-file package.yaml \ | |
--s3-bucket <s3-bucket-name> |
[Unit] | |
# Location: /usr/lib/systemd/system : systemctl enable swarm | |
Description=swarm service manager | |
Documentation=https://plugins.jenkins.io/swarm | |
Wants=network-online.target | |
After=network-online.target | |
StartLimitIntervalSec=0 | |
[Service] | |
Type=simple |