-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added docker-squash, removed packages
- Loading branch information
Showing
3 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
.PHONY: default | ||
default: run | ||
|
||
build: | ||
docker build --build-arg VCS_REF="$(shell git rev-parse HEAD)" -t cs50/cli . | ||
docker build --build-arg VCS_REF="$(shell git rev-parse HEAD)" --tag cs50/cli . | ||
$(MAKE) squash | ||
|
||
depends: | ||
pip3 install docker-squash | ||
|
||
rebuild: | ||
docker build --no-cache -t cs50/cli . | ||
docker build --no-cache --tag cs50/cli . | ||
$(MAKE) squash | ||
|
||
run: | ||
docker run --env LANG="$(LANG)" -it -P --rm --security-opt seccomp=unconfined -v "$(PWD)":/home/ubuntu cs50/cli bash --login || true | ||
docker run --env LANG="$(LANG)" --interactive --publish-all --rm --security-opt seccomp=unconfined --tty --volume "$(PWD)":/home/ubuntu cs50/cli bash --login || true | ||
|
||
squash: depends | ||
docker-squash --tag cs50/cli cs50/cli |