-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
53 lines (45 loc) · 1.58 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
help:
@echo 'clean: TODO cleanup'
@echo 'install: Installs software'
@echo 'test: Runs tests'
@echo 'deploy: Creates manifest, gemspecs, .. and deploys to rubygem'
@echo 'autocomplete: Fills the autocomplete scripts (eg gcutil)'
@echo docker-build: Builds latest Docker image locally
@echo docker-push: Pushes Docker images to palladius/sakura:latest
@echo docker-run: Runs locally in bash for testing
clean:
echo TODO cleanup
install:
sbin/make-install.sh
TEST_SUBDIRS = lib/recipes/ docz/richelp/
# make test a phony target
.PHONY: clean
.PHONY: test
test:
for dir in $(TEST_SUBDIRS); do \
echo "Making1 subdir (pwd=`pwd`): $(MAKE) -C $$dir"; \
$(MAKE) -C $$dir; \
echo "Making2 subdir (pwd=`pwd`): $(MAKE) -C $$dir"; \
done
test-ruby:
gem install echoe
rake test
# pre deploys gem
predeploy:
(rake manifest && rake build_gemspec ) | tee .predeploy.out && verde Correctly built manifests and dependencies. Now commit and run deploy
# deploys gem
deploy:
rake manifest && rake build_gemspec && rake release && rake publish_docs && verde Correctly deployed
autocomplete:
make -C bashrc.d/services.d/autocomplete/gcutil.auto/
docker-build:
docker build -t=palladius/sakura:latest .
docker-push: docker-build
docker push palladius/sakura:latest
# doesnt work
docker-run:
docker run -it -p 22180:80 --name sakura-on-apache2-local22180 palladius/sakura:latest # service apache2 start
docker-run2:
docker run -P --name sakura-on-apache2-anyport49k palladius/sakura:latest
docker: docker-build docker-run
echo Building and running... on port 22180