Skip to content

Commit

Permalink
Merge pull request #651 from amazonlinux/buildspec-env-tidy
Browse files Browse the repository at this point in the history
Tidy buildspecs to use container environment
  • Loading branch information
jahkeup authored Jan 15, 2020
2 parents e9b8da7 + 2f011e0 commit 5feec64
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
14 changes: 1 addition & 13 deletions tools/infra/buildspec/thar-develop-pipeline-test.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
version: 0.2

env:
variables:
# Path to infra tooling directory.
INFRA_DIR: "./tools/infra"

phases:
install:
runtime-versions:
docker: 18
commands:
- . "${INFRA_DIR}/env/lib/environment-setup"
- . setup-rust-builder
# TODO: rely on libsystemd in build container instead, see #545
- apt install -y libsystemd-dev
pre_build:
commands:
- start-build-environment
- environment-report
- write-build-meta
build:
Expand Down
5 changes: 0 additions & 5 deletions tools/infra/buildspec/thar-pr-build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
version: 0.2

env:
variables:
# Path to infra tooling directory.
INFRA_DIR: "./tools/infra"

phases:
pre_build:
commands:
Expand Down
2 changes: 1 addition & 1 deletion tools/infra/container/Dockerfile.builder
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
FROM amazonlinux:2 as base
RUN yum update -y \
&& yum groupinstall -y 'Development Tools' \
&& yum install -y socat procps-ng awscli jq openssh rsync \
&& yum install -y socat procps-ng awscli jq openssh rsync systemd-devel \
&& amazon-linux-extras enable docker \
&& yum install -y docker amazon-ecr-credential-helper \
&& yum clean all \
Expand Down

0 comments on commit 5feec64

Please sign in to comment.