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
export CLICOLOR=1 | |
# Use "bold blue" instead of default blue for directories in 'ls'. | |
# This will result in a lighter and better readable blue for black | |
# backgrounds. See 'man ls' for more information. | |
export LSCOLORS=Exfxcxdxbxegedabagacad |
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
# | |
# Following the best practices described here: | |
# https://snyk.io/blog/best-practices-to-build-java-containers-with-docker/ | |
# | |
# Pinning the latest LTS (heree: '17-jre-alpine') | |
FROM eclipse-temurin:17.0.4.1_1-jre-alpine | |
RUN apk add dumb-init | |
RUN addgroup --system jvm && \ |
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
(ns app.service | |
(:require [domain.user :as user] | |
[support.app :as app])) | |
(defn ensure-user-exists! [username full-name] | |
(let [ctx (app/new-context)] | |
(if-let [user (user/find-user-by-username ctx username)] | |
user | |
(let [ctx (-> ctx | |
(user/create-user username full-name) |