Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
download archives before build_on_docker
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Jul 15, 2020
1 parent bcbee38 commit 843a623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SHELL = /usr/bin/env bash -xe
AWSCLI_VERSION := 2.0.30
PWD := $(shell pwd)

build_on_docker:
build_on_docker: archives/awscli-exe-linux-x86_64-$(AWSCLI_VERSION).zip
docker build -t bash-lambda-layer-builder docker/builder
docker run -it -v $(PWD):/root/bash-lambda-layer -v $(PWD)/bin:/opt/bin \
--workdir="/root/bash-lambda-layer" \
Expand Down Expand Up @@ -33,8 +33,8 @@ archives/awscli-exe-linux-x86_64-$(AWSCLI_VERSION).zip:
# Custom runtimes are deployed in the /opt/ directory.
# AWS CLI v2 install path is /opt/bin/awscli
awscli: archives/awscli-exe-linux-x86_64-$(AWSCLI_VERSION).zip
unzip -q archives/awscli-exe-linux-x86_64-$(AWSCLI_VERSION).zip -d /tmp
cd /tmp \
&& unzip -q /root/bash-lambda-layer/archives/awscli-exe-linux-x86_64-$(AWSCLI_VERSION).zip \
&& rm -rf ./aws/dist/awscli/examples \
&& ./aws/install -i /opt/bin/awscli -b /opt/bin --update \
&& rm -rf aws
Expand Down

0 comments on commit 843a623

Please sign in to comment.