Skip to content

Commit

Permalink
add task to copy binaries from container
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMcCullough committed Jun 8, 2022
1 parent 9f8991f commit 60b6f4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 1 addition & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
.idea
ngx_http_auth_jwt_module.so
libjwt.so.0.6.0
libjwt.la
libjwt.a
libjansson.so.4.13.0
libjwt.so.0.7.0
jansson.pc
libjwt.pc
libjansson.so.4.10.0
libjwt.so.0.4.0
bin
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ stop-nginx:
.PHONY: start-nginx
start-nginx:
docker run --rm --name "${DOCKER_IMAGE_NAME}" -d -p 8000:8000 ${DOCKER_ORG_NAME}/${DOCKER_IMAGE_NAME}
docker cp ${DOCKER_IMAGE_NAME}:/usr/lib64/nginx/modules/ngx_http_auth_jwt_module.so .

.PHONY: cp-bin
cp-bin: start-nginx
rm -rf bin
mkdir -p bin
docker exec jwt-nginx sh -c "tar -chf - \
/usr/lib64/nginx/modules/ngx_http_auth_jwt_module.so \
/usr/lib/x86_64-linux-gnu/libjansson.so.* \
/usr/lib/x86_64-linux-gnu/libjwt.*" 2>/dev/null | tar -xf - -C bin &>/dev/null

.PHONY: build-test-runner
build-test-runner:
Expand Down

0 comments on commit 60b6f4b

Please sign in to comment.