Skip to content

Commit

Permalink
feat(slugbuilder): update stack to heroku-20-build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingdon Barrett committed Feb 7, 2021
1 parent 3187fa8 commit 73ecafb
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export GO15VENDOREXPERIMENT=1

LDFLAGS := "-s -X main.version=${VERSION}"
IMAGE_PREFIX ?= hephy
BINDIR := ./rootfs/bin
BINDIR := ./rootfs/usr/bin

include versioning.mk

SHELL_SCRIPTS = $(wildcard _scripts/*.sh) $(wildcard rootfs/bin/*_object) $(wildcard rootfs/bin/*_cache) rootfs/bin/normalize_storage $(wildcard rootfs/builder/*)
SHELL_SCRIPTS = $(wildcard _scripts/*.sh) $(wildcard rootfs/usr/bin/*_object) $(wildcard rootfs/usr/bin/*_cache) rootfs/usr/bin/normalize_storage $(wildcard rootfs/builder/*)

# The following variables describe the containerized development environment
# and other build options
Expand Down
20 changes: 10 additions & 10 deletions rootfs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM heroku/heroku:18-build
FROM heroku/heroku:20-build

ENV DEBIAN_FRONTEND noninteractive
RUN mkdir /app
Expand Down Expand Up @@ -30,16 +30,16 @@ RUN sed -i -e 's/^deb-src/#deb-src/' /etc/apt/sources.list && \

ADD . /
ENV PYTHONPATH $PYTHONPATH:/usr/local/lib/python3/site-packages
ADD https://storage.googleapis.com/hephy-obj-storage-cli/bb8e054/objstorage /bin/objstorage
RUN chmod +x /bin/objstorage && \
ADD https://storage.googleapis.com/hephy-obj-storage-cli/bb8e054/objstorage /usr/bin/objstorage
RUN chmod +x /usr/bin/objstorage && \
chown -R slug:slug /app && \
chown slug:slug /bin/get_object \
/bin/normalize_storage \
/bin/put_object \
/bin/objstorage \
/bin/read_procfile_keys \
/bin/restore_cache \
/bin/store_cache
chown slug:slug /usr/bin/get_object \
/usr/bin/normalize_storage \
/usr/bin/put_object \
/usr/bin/objstorage \
/usr/bin/read_procfile_keys \
/usr/bin/restore_cache \
/usr/bin/store_cache

USER slug
ENV HOME /app
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 73ecafb

Please sign in to comment.