Skip to content

Instantly share code, notes, and snippets.

View audomsak's full-sized avatar
🏠
Working from home

audomsak

🏠
Working from home
View GitHub Profile
@msauza
msauza / spring-boot-docker.md
Last active October 23, 2024 09:38
Multi-Layer, Multi-Stage: Spring Boot application with Docker.

Overview

Spring Boot applications can run within a container by Multi-Layer based approach. Each layer may contain different parts of the application such as dependencies, source code, resources and even snapshot dependencies.

In the other hand, with Multi-Stage Build approach, any application can be built at a separate image from the final image that will contain the runnable application.

Spring Boot Docker

Multi-Layer

@kevprice83
kevprice83 / README.md
Created March 11, 2019 16:43 — forked from nmasse-itix/README.md
Using a public certificate with Red Hat Single Sign On

Using a public certificate with Red Hat Single Sign On

Context

When deploying Red Hat Single Sign On for a test or PoC, most users will choose to use a self-signed certificate as explained in the official documentation. The setup instructions are straightforward but this self-signed certificate will trigger certificate error messages in your web browser and can also prevent some clients such as Postman from working properly. This guide explains how to get a public certificate for Red Hat Single Sign On.

Are you using a public certificate ?

# /etc/systemd/system/jstatd.service
#
# Install:
# - Put this file on /etc/systemd/system/jstatd.service
# - Rewrite <host ip>
#
# Usage:
# sudo systemctl enable jstatd
# sudo systemctl start jstatd
#
@nmasse-itix
nmasse-itix / README.md
Last active September 2, 2025 02:59
Dynamic documentation for the 3scale Developer Portal

Dynamic documentation for the 3scale Developer Portal

Goal

Generate a dynamic list of the exposed services on the 3scale Developer Portal.

How to install

Replace your built-in "Documentation" page (/docs) in the 3scale CMS with the attached content.

@fjudith
fjudith / kubernetes_service_session_affinity.md
Last active February 6, 2025 12:15
Enable Session Affinity (a.k.a Sticky Session) to Kubernetes service
@kevprice83
kevprice83 / README.md
Last active March 18, 2024 21:09
3scale Developer portal custom signup flows

Dynamic 3scale Developer Portal signup templates

There are 4 custom signup flows included in the parent homepage. These flows are included into the homepage using Liquid tags such as {% include 'partial name' %} because the flows are separated out into individual partials. The partials can be included in your 3scale portal individually or all together depending on which flows you want to enable in your portal and for ease of switching between flows as and when needed.

NOTE: If you prefer you can create a separate page to render the subscription forms to the different Services. This would be particularly useful if you want to allow multiple applications per account for the Custom Field & Group Membership Flows.

How does the 3scale signup work?

The Basics

A developer can sign up to subscribe to an API service in various ways

@kevprice83
kevprice83 / README.md
Last active October 26, 2022 03:41
Simple custom metric reporting for a SOAP service

How this works

This solution is based on a custom HTTP header being passed with all client requests, the value of that header should be the equivalent of the matching metric system name configured in 3scale.

This customisation has been tested with the following image of APIcast:

  • registry.access.redhat.com/3scale-amp20/apicast-gateway
@kevprice83
kevprice83 / README.md
Last active October 26, 2022 03:41
Developer portal solution for multiple services and scoped users

What is this?

  • This gist is a solution to build a developer portal in 3scale with a workflow that allows signup to services based on the scope of the user.
  • The template have been adapted from the default index.html page.
  • This solution is dependent on the correct settings being configured in the 3scale admin portal & the users being scoped by means of the Groups feature.
  • The Service Plan Features have been used in this solution instead of the Service system_name.
@kevprice83
kevprice83 / README.md
Last active February 21, 2024 09:27
APIcast with RH SSO integration on OpenShift

RH SSO installation & configuration

download rhsso from https://access.redhat.com/jbossnetwork/restricted/softwareDownload.html?softwareId=44851

  • unzip rh-sso-7.0.0.zip
  • ./add-user-keycloak.sh -u <username>
  • From the directory rh-sso-7.0 execute bin/standalone.sh This will start up the sso instance
  • To expose the console on a public domain follow the next steps
  • wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
  • unzip ngrok-stable-linux-amd64.zip