Skip to content

Commit

Permalink
Merge pull request #91 from truemail-rb/develop
Browse files Browse the repository at this point in the history
Truemail rack docker image v0.10.0
  • Loading branch information
bestwebua authored Mar 2, 2024
2 parents 4552ef2 + 582df80 commit 767831c
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 5 deletions.
27 changes: 27 additions & 0 deletions .circleci/linter_configs/.commitspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---

enableGlobDot: true

patterns:
- name: GithubUser
pattern: /\[@.+\]/gmx

languageSettings:
- languageId: markdown
ignoreRegExpList:
- Email
- GithubUser

words:
- autoreleasing
- gitter
- trotsenko
- vladislav
- bestwebua
- codebases
- dockerhub
- dockerized
- healthcheck
- truemail
- lefthook
- commitspell
2 changes: 2 additions & 0 deletions .circleci/linter_configs/.lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ skip_output:

linters:
commands:
commitspell:
run: .circleci/scripts/commitspell.sh -c '.circleci/linter_configs/.commitspell.yml'
cspell:
run: cspell-cli lint -c '.circleci/linter_configs/.cspell.yml' '**/*.{txt,md}'
markdownlint:
Expand Down
22 changes: 22 additions & 0 deletions .circleci/scripts/commitspell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh
set -e

configuration=$(if [ "$2" = "" ]; then echo "$2"; else echo " $1 $2"; fi)
latest_commit=$(git rev-parse HEAD)

spellcheck_info() {
echo "Checking the spelling of the latest commit ($latest_commit) message..."
}

compose_cspell_command() {
echo "cspell-cli lint stdin$configuration"
}

cspell="$(compose_cspell_command)"

spellcheck_latest_commit() {
git log -1 --pretty=%B | $cspell
}

spellcheck_info
spellcheck_latest_commit
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.10.0] - 2024-03-02

### Switch to truemail-rack 0.10.0

## [0.9.0] - 2023-11-02

### Switch to truemail-rack 0.9.0
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ruby:3.2.0-alpine as Builder
FROM ruby:3.3.0-alpine as Builder
ENV APP_HOME="/var/lib/truemail-rack" \
TMP="/var/lib/truemail-rack/tmp"
RUN apk add --virtual build-dependencies git && \
git clone https://github.com/truemail-rb/truemail-rack.git $TMP -q && \
cd $TMP && git checkout v0.9.0 -q && \
cd $TMP && git checkout v0.10.0 -q && \
mv app config config.ru .ruby-version Gemfile* $APP_HOME && rm -rf $TMP && \
apk del build-dependencies
WORKDIR $APP_HOME
Expand All @@ -15,7 +15,7 @@ RUN apk add --virtual build-dependencies make cmake g++ && \
find /usr/local/bundle/gems/ -regex ".*\.[coh]" -delete && \
apk del build-dependencies

FROM ruby:3.2.0-alpine
FROM ruby:3.3.0-alpine
ENV INFO="Truemail lightweight rack based web API 🚀" \
APP_USER="truemail" \
APP_HOME="/var/lib/truemail-rack" \
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020-2023 Vladislav Trotsenko
Copyright (c) 2020-2024 Vladislav Trotsenko

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ version: "3.7"

services:
truemail:
image: truemail/truemail-rack:v0.9.0 # for latest version you can use just truemail/truemail-rack:latest
image: truemail/truemail-rack:v0.10.0 # for latest version you can use just truemail/truemail-rack:latest
ports:
- 9292:9292
environment:
Expand Down

0 comments on commit 767831c

Please sign in to comment.