Skip to content

Instantly share code, notes, and snippets.

View jasonfb's full-sized avatar

Jason Fleetwood-Boldt jasonfb

View GitHub Profile
Ensure app can pass healthcheck...
INFO [fb2495d7] Running docker run --detach --name healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a --publish 3999:3000 --label service=healthcheck-helios-panoptes -e MRSK_CONTAINER_NAME="healthcheck-helios-panoptes" -e [REDACTED] --health-cmd "curl -f http://localhost:3000/up || exit 1" --health-interval "1s" jasonheliosdevshop/helios-panoptes:ced5507a0540030e4e3e9600aab273e110f8352a on 52.91.164.217
INFO [fb2495d7] Finished in 1.244 seconds with exit status 0 (successful).
INFO [68fa3132] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 52.91.164.217
INFO [68fa3132] Finished in 0.269 seconds with exit status 0 (successful).
INFO container not ready (unhealthy), retrying in 1s (attempt 1/7)...
INFO [4c4cb392] Running docker container ls --all --filter na
# Dockerfile
# syntax = docker/dockerfile:1
ARG RUBY_VERSION
FROM ruby:${RUBY_VERSION}-slim as base
# Rails app lives here
WORKDIR /rails
# Set production environment
@jasonfb
jasonfb / .zshrc
Last active December 9, 2022 15:52 — forked from callumlocke/.zshrc
ZSH function to auto-switch to correct Node version
####
# ZSH function to auto-switch to correct Node version
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5
#
# - Searches up your directory tree for the closest `.node-version`, just like `nvm use` does.
#
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
#
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".