This file contains 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
ARG MICRODIR=/microdir | |
ARG PACKAGES_TO_INSTALL="java-17-openjdk-devel" | |
FROM registry.access.redhat.com/ubi8-micro@sha256:eb4245271537034f69ee336a4a2b31d3fbae4048ec1db53ff89de749c35cf537 AS BASE | |
FROM registry.access.redhat.com/ubi8@sha256:83c0e63f5efb64cba26be647e93bf036b8d88b774f0726936c1b956424b1abf6 AS BUILD | |
ARG MICRODIR | |
ARG PACKAGES_TO_INSTALL | |
RUN mkdir ${MICRODIR} | |
COPY --from=BASE / ${MICRODIR} |
This file contains 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
services: | |
frontend: | |
container_name: frontend | |
build: | |
context: ../ | |
dockerfile: docker/base.dockerfile | |
target: frontend | |
args: |
This file contains 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
#!/usr/bin/env bash | |
shorten() { | |
if [[ -z ${1} ]]; then | |
echo "Please pass the string to split as 1st argument" | |
exit 1 | |
fi; | |
text="${1}" | |
if [[ -z ${2} ]]; then |
This file contains 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
@Override | |
protected void doStart() throws Exception { | |
super.doStart(); | |
transactionTemplate.execute(new TransactionCallback<Boolean>() { | |
@Override | |
public Boolean doInTransaction(TransactionStatus status) { | |
Savepoint savepoint = status.createSavepoint(): | |
try { | |
// we will receive an exception if the table doesn't exists or we cannot access it |
This file contains 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
MERGE INTO some_table AS saved | |
USING ( | |
VALUES (?, ?, ?, CURRENT_TIMESTAMP) | |
) AS param ( | |
servicename, | |
processorname, | |
messageId, | |
createdat | |
) | |
ON ( |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
function print_git_tree() { | |
git log \ | |
--graph \ | |
--no-color \ | |
--source \ | |
--all \ | |
--max-count=5 \ |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
shopt -s inherit_errexit | |
function die() { | |
if [[ -n "${1}" ]] | |
then | |
>&2 echo "${1}" | |
fi | |
exit "${2:-1}" |
This file contains 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
#!/usr/bin/env bash | |
echo "finding all poms" | |
readarray -t poms < <(find "${1:-${MVN_CLEAN_ROOT}}" -name "pom.xml" || true) | |
echo "found ${#poms[@]} poms." | |
echo "deduping poms" | |
projects_to_clean=() | |
for pom in "${poms[@]}" | |
do |
This file contains 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
function next_release_version() { | |
local current_version="${1}" | |
local first_part | |
first_part=$(echo "${current_version}" | sed -e 's/^\(.*\)\([[:digit:]]\+\)[^\.]*$/\1/g') | |
local last_digit | |
last_digit=$(echo "${current_version}" | sed -e 's/^\(.*\)\([[:digit:]]\+\)[^\.]*$/\2/g') | |
echo "${first_part}$((last_digit+1))" | |
} | |
function next_snapshot_version() { |
This file contains 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
package main | |
import ( | |
"fmt" | |
"time" | |
"fyne.io/fyne/v2" | |
"fyne.io/fyne/v2/app" | |
"fyne.io/fyne/v2/container" | |
"fyne.io/fyne/v2/data/binding" |
OlderNewer