Skip to content

Commit a607b59

Browse files
Merge pull request #171 from gliderlabs/master
release 0.3.16
2 parents 28a7936 + 5ad5f08 commit a607b59

File tree

6 files changed

+34
-3
lines changed

6 files changed

+34
-3
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ All notable changes to this project will be documented in this file.
1111
### Changed
1212

1313

14+
## [0.3.16] - 2016-07-14
15+
### Added
16+
- @michaelshobbs add named unprivileged user
17+
18+
1419
## [0.3.15] - 2016-07-14
1520
### Fixed
1621
- @joshmanders only delete $app_path if $import_path is not empty. fixes #111
@@ -237,7 +242,8 @@ All notable changes to this project will be documented in this file.
237242
- User for `buildpack-build` is `$USER` or randomized
238243
- User for `procfile-exec` is `$USER` or detected from `/app`
239244

240-
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.15...HEAD
245+
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.16...HEAD
246+
[0.3.16]: https://github.com/gliderlabs/herokuish/compare/v0.3.15...v0.3.16
241247
[0.3.15]: https://github.com/gliderlabs/herokuish/compare/v0.3.14...v0.3.15
242248
[0.3.14]: https://github.com/gliderlabs/herokuish/compare/v0.3.13...v0.3.14
243249
[0.3.13]: https://github.com/gliderlabs/herokuish/compare/v0.3.12...v0.3.13

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM heroku/cedar:14
2-
RUN curl https://github.com/gliderlabs/herokuish/releases/download/v0.3.15/herokuish_0.3.15_linux_x86_64.tgz \
2+
RUN curl https://github.com/gliderlabs/herokuish/releases/download/v0.3.16/herokuish_0.3.16_linux_x86_64.tgz \
33
--silent -L | tar -xzC /bin
44
RUN /bin/herokuish buildpack install \
55
&& ln -s /bin/herokuish /build \
66
&& ln -s /bin/herokuish /start \
77
&& ln -s /bin/herokuish /exec
8+
COPY include/default_user.bash /tmp/default_user.bash
9+
RUN bash /tmp/default_user.bash && rm -f /tmp/default_user.bash

Dockerfile.dev

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ RUN /bin/herokuish buildpack install \
99
&& ln -s /bin/herokuish /build \
1010
&& ln -s /bin/herokuish /start \
1111
&& ln -s /bin/herokuish /exec
12+
COPY include/default_user.bash /tmp/default_user.bash
13+
RUN bash /tmp/default_user.bash && rm -f /tmp/default_user.bash

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NAME = herokuish
22
HARDWARE = $(shell uname -m)
3-
VERSION ?= 0.3.15
3+
VERSION ?= 0.3.16
44
IMAGE_NAME ?= $(NAME)
55
BUILD_TAG ?= dev
66

include/default_user.bash

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
addgroup --quiet --gid "32767" "herokuishgroup" && \
4+
adduser \
5+
--shell /bin/bash \
6+
--disabled-password \
7+
--force-badname \
8+
--no-create-home \
9+
--uid "32767" \
10+
--gid "32767" \
11+
--gecos '' \
12+
--quiet \
13+
--home "/app" \
14+
"herokuishuser"

tests/functional/tests.sh

+7
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ T_slug-generate() {
2525
herokuish slug generate
2626
tar tzf /tmp/slug.tgz"
2727
}
28+
29+
T_default-user() {
30+
_test-user() {
31+
id herokuishuser
32+
}
33+
herokuish-test "test-user" "$(fn-source _test-user)"
34+
}

0 commit comments

Comments
 (0)