Skip to content

Instantly share code, notes, and snippets.

View paul58914080's full-sized avatar

Paul Williams paul58914080

View GitHub Profile
@paul58914080
paul58914080 / jenkins.md
Created August 15, 2020 07:33
Jenkins setup and pipeline

Jenkins

Installing jenkins is quite simple. The easiest way to install it is through docker. You can check the official documentation for more details. In this documentation I will share with you what I did to install jenkins and setup my ci pipelines.

Installing with docker

There are two kinds of versioning supported by jenkins long term support and regular release. You can directly install and run jenkins as war. Here we will try to use the container concept and use docker to help us install jenkins and boot the same.

Checkout the documentation at https://www.jenkins.io/doc/book/installing/. I tried replicating the steps of On macOS and Linux

https://us04web.zoom.us/j/73793498313?pwd=ZWI5dHZqMlRMNXJ5YXlwZlYxOVBKdz09
@paul58914080
paul58914080 / MOM_FF4J_18_JUL_2020.md
Created July 18, 2020 09:19
FF4J Meeting Minutes
@paul58914080
paul58914080 / 01. generate-create-todo.md
Last active March 13, 2020 03:16
create-todo-micro-app

$ ng g application create-todo --style=scss --prefix=create --viewEncapsulation=ShadowDom --routing=false

@paul58914080
paul58914080 / 01. generate-view-todo.md
Last active March 13, 2020 03:16
view-todo-micro-app

$ ng g application view-todo --style=scss --prefix=view --viewEncapsulation=ShadowDom --routing=false

@paul58914080
paul58914080 / 01. generate-app-view-todo.sh
Created July 22, 2019 10:36
01.generate-app-view-todo.sh
ng g application view-todo --style=scss --prefix=view --viewEncapsulation=ShadowDom
# navigate to projects/view-todo/app
ng g module view-todo --flat=true
ng g component view-todo --module=view-todo --selector=view-todo --entryComponent=true --flat=true
ng g service view-todo --flat=true
@paul58914080
paul58914080 / 01.generate-app-create-todo.sh
Last active July 22, 2019 10:22
micro-frontend-codejam-create
ng g application create-todo --style=scss --prefix=create --viewEncapsulation=ShadowDom
# navigate to projects/create-todo/app
ng g module create-todo --flat=true
ng g component create-todo --module=create-todo --selector=create-todo --entryComponent=true --flat=true
ng g service create-todo --flat=true
export default class MapUtils {
static objectToMap(object: Object) {
return new Map(Object.entries(object));
}
}
@paul58914080
paul58914080 / Application.java
Last active February 22, 2019 20:47
FF4j spring boot starter workaround for spring boot 2
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
/**
* Created by Paul
*
* @author <a href="mailto:paul58914080@gmail.com">Paul Williams</a>
*/
@SpringBootApplication(exclude = ThymeleafAutoConfiguration.class)
@paul58914080
paul58914080 / ElasticQueryBuilder
Created August 27, 2017 18:49
Fix for ff4j elasticstore
public Search queryReadAllFeatures(Integer totalCount) {
return new Search.Builder(new SearchSourceBuilder().size(totalCount).toString()).addIndex(connection.getIndexName())
.addType(ElasticConstants.TYPE_FEATURE).build();
}