Skip to content

Commit

Permalink
Add @awly's changes from #3966
Browse files Browse the repository at this point in the history
  • Loading branch information
webvictim committed Jul 8, 2020
1 parent 1dcef8e commit 87cc017
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions build.assets/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ build-binaries: buildbox
# binaries and docs
#
.PHONY:buildbox
buildbox:
buildbox: pam
docker build \
--build-arg UID=$(UID) \
--build-arg GID=$(GID) \
Expand All @@ -72,7 +72,7 @@ buildbox:
# Builds a Docker buildbox for FIPS
#
.PHONY:buildbox-fips
buildbox-fips:
buildbox-fips: pam
docker build \
--build-arg UID=$(UID) \
--build-arg GID=$(GID) \
Expand All @@ -84,7 +84,7 @@ buildbox-fips:
# Builds a Docker container for CentOS 6 builds
#
.PHONY:buildbox-centos6
buildbox-centos6:
buildbox-centos6: pam
docker build \
--build-arg UID=$(UID) \
--build-arg GID=$(GID) \
Expand All @@ -96,7 +96,7 @@ buildbox-centos6:
# Builds a Docker buildbox for CentOS 6 FIPS builds
#
.PHONY:buildbox-centos6-fips
buildbox-centos6-fips:
buildbox-centos6-fips: pam
docker build \
--build-arg UID=$(UID) \
--build-arg GID=$(GID) \
Expand All @@ -122,6 +122,7 @@ docsbox:
clean:
docker image rm --force $(BUILDBOX)
docker image rm --force $(DOCSBOX)
rm -r pam

#
# Runs tests inside a build container
Expand Down Expand Up @@ -234,3 +235,10 @@ release-centos6-fips: buildbox-centos6-fips
release-windows: buildbox
docker run $(DOCKERFLAGS) -i $(NOROOT) $(BUILDBOX) \
/usr/bin/make release -e ADDFLAGS="$(ADDFLAGS)" OS=windows

# Builds the Teleport PAM module for copying into the buildbox.
.PHONY:pam
pam:
make -C ../modules/pam_teleport
rm pam/* || mkdir -p pam
cp ../modules/pam_teleport/pam_teleport.so ../modules/pam_teleport/policy/* pam/

0 comments on commit 87cc017

Please sign in to comment.