Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(slug): remove the code to download slug #59

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@ ENV PORT 5000
EXPOSE 5000

ADD ./runner /runner
ADD ./bin /bin
ADD https://storage.googleapis.com/object-storage-cli/bb8e054/objstorage-bb8e054-linux-amd64 /bin/objstorage
RUN chmod +x /bin/objstorage && \
chown slug:slug /app \
/runner/init \
/bin/get_object \
/bin/objstorage
RUN chown slug:slug /app \
/runner/init

USER slug
ENV HOME /app
Expand Down
13 changes: 0 additions & 13 deletions rootfs/bin/get_object

This file was deleted.

5 changes: 0 additions & 5 deletions rootfs/runner/init
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ mkdir -p $HOME

if [[ $(ls -A $HOME) ]]; then
true
elif [[ $SLUG_URL ]]; then
get_object
tar -xzf slug.tgz -C $HOME
rm slug.tgz
unset SLUG_URL
else
cat | tar -xzC $HOME
fi
Expand Down