Skip to content

Commit a688574

Browse files
authored
Merge pull request #1184 from gliderlabs/master
Release 0.9.1
2 parents 9a49a5c + 9823d06 commit a688574

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.9.1](https://github.com/gliderlabs/herokuish/compare/v0.9.0...v0.9.1) - 2024-04-01
6+
7+
- #1181 @josegonzalez: fix: do not unnecessarily create/change files when starting a process
8+
- #1182 @josegonzalez: fix: invert disable-chown check
9+
- #1183 @josegonzalez: fix: create the profile.d directory during the build process
10+
511
## [0.9.0](https://github.com/gliderlabs/herokuish/compare/v0.8.0...v0.9.0) - 2024-03-31
612

713
- #1177 @dependabot: Update php to version v248

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ REPOSITORY = herokuish
44
DESCRIPTION = 'Herokuish uses Docker and Buildpacks to build applications like Heroku'
55
HARDWARE = $(shell uname -m)
66
SYSTEM_NAME = $(shell uname -s | tr '[:upper:]' '[:lower:]')
7-
VERSION ?= 0.9.0
7+
VERSION ?= 0.9.1
88
IMAGE_NAME ?= $(NAME)
99
BUILD_TAG ?= dev
1010
PACKAGECLOUD_REPOSITORY ?= dokku/dokku-betafish

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://github.com/gliderlabs/herokuish/workflows/CI/badge.svg)](https://github.com/gliderlabs/herokuish/actions?query=workflow%3ACI)
44
[![IRC Channel](https://img.shields.io/badge/irc-%23gliderlabs-blue.svg)](https://kiwiirc.com/client/irc.freenode.net/#gliderlabs)
5-
[![Docker Hub](https://img.shields.io/badge/docker%20hub-v0.9.0-blue)](https://hub.docker.com/r/gliderlabs/herokuish)
5+
[![Docker Hub](https://img.shields.io/badge/docker%20hub-v0.9.1-blue)](https://hub.docker.com/r/gliderlabs/herokuish)
66

77
A command line tool for emulating Heroku build and runtime tasks in containers.
88

@@ -19,7 +19,7 @@ Download and uncompress the latest binary tarball from [releases](https://github
1919
For example, you can do this directly in your Dockerfiles installing into `/bin` as one step:
2020

2121
```shell
22-
RUN curl --location --silent https://github.com/gliderlabs/herokuish/releases/download/v0.9.0/herokuish_0.9.0_linux_x86_64.tgz \
22+
RUN curl --location --silent https://github.com/gliderlabs/herokuish/releases/download/v0.9.1/herokuish_0.9.1_linux_x86_64.tgz \
2323
| tar -xzC /bin
2424
```
2525

include/buildpack.bash

+1
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ buildpack-execute() {
204204
fi
205205
if [[ -f "$build_path/.release" ]]; then
206206
config_vars="$(cat "$build_path/.release" | yaml-get config_vars)"
207+
unprivileged mkdir -p "$build_path/.profile.d"
207208
unprivileged touch "$build_path/.profile.d/00_config_vars.sh"
208209
if [[ "$config_vars" ]]; then
209210
mkdir -p "$build_path/.profile.d"

include/procfile.bash

+12-9
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,16 @@ procfile-load-profile() {
102102
# shellcheck disable=SC1090
103103
source "$file"
104104
done
105-
mkdir -p "$app_path/.profile.d"
106-
# shellcheck disable=SC2154
107-
chown "$unprivileged_user:$unprivileged_group" "$app_path/.profile.d"
108-
for file in "$app_path/.profile.d"/*.sh; do
109-
# shellcheck disable=SC1090
110-
source "$file"
111-
done
105+
if [[ -d "$app_path/.profile.d" ]]; then
106+
# shellcheck disable=SC2154
107+
if [[ "$HEROKUISH_DISABLE_CHOWN" != "true" ]]; then
108+
chown "$unprivileged_user:$unprivileged_group" "$app_path/.profile.d"
109+
fi
110+
for file in "$app_path/.profile.d"/*.sh; do
111+
# shellcheck disable=SC1090
112+
source "$file"
113+
done
114+
fi
112115
if [[ -s "$app_path/.profile" ]]; then
113116
# shellcheck disable=SC1090
114117
source "$app_path/.profile"
@@ -122,8 +125,8 @@ procfile-setup-home() {
122125
# shellcheck disable=SC2154
123126
usermod --home "$app_path" "$unprivileged_user" >/dev/null 2>&1
124127
# shellcheck disable=SC2154
125-
chown "$unprivileged_user:$unprivileged_group" "$app_path"
126-
if [[ "$HEROKUISH_DISABLE_CHOWN" == "true" ]]; then
128+
if [[ "$HEROKUISH_DISABLE_CHOWN" != "true" ]]; then
129+
chown "$unprivileged_user:$unprivileged_group" "$app_path"
127130
# unprivileged_user & unprivileged_group are defined in outer scope
128131
# shellcheck disable=SC2154
129132
find "$app_path" \( \! -user "$unprivileged_user" -o \! -group "$unprivileged_group" \) -print0 | xargs -0 -r chown "$unprivileged_user:$unprivileged_group"

0 commit comments

Comments
 (0)